Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

MediaCache::RegInfo Struct Reference

#include <mcache.h>

Collaboration diagram for MediaCache::RegInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RegInfo ()
 ~RegInfo ()
void add_pref (int layer, const MediaSegment &s)
int pref_size (int layer, const MediaSegment &s) const

Public Attributes

char name_ [20]
HttpAppclient_
int hl_
unsigned int pb_ [MAX_LAYER]
unsigned int eb_ [MAX_LAYER]
unsigned int db_ [MAX_LAYER]
MediaSegmentList pref_ [MAX_LAYER]

Constructor & Destructor Documentation

MediaCache::RegInfo::RegInfo  )  [inline]
 

Definition at line 263 of file mcache.h.

References client_, db_, eb_, hl_, MAX_LAYER, and pb_.

00263                           : client_(NULL), hl_(-1) {
00264                         memset(pb_, 0, sizeof(unsigned int)*MAX_LAYER);
00265                         memset(db_, 0, sizeof(unsigned int)*MAX_LAYER);
00266                         memset(eb_, 0, sizeof(unsigned int)*MAX_LAYER);
00267                 }

MediaCache::RegInfo::~RegInfo  )  [inline]
 

Definition at line 268 of file mcache.h.

References MediaSegmentList::destroy(), MAX_LAYER, and pref_.

00268                            {
00269                         for (int i = 0; i < MAX_LAYER; i++)
00270                                 pref_[i].destroy();
00271                 }

Here is the call graph for this function:


Member Function Documentation

void MediaCache::RegInfo::add_pref int  layer,
const MediaSegment s
[inline]
 

Definition at line 285 of file mcache.h.

References MediaSegmentList::add(), MAX_LAYER, and pref_.

Referenced by MediaCache::process_data().

00285                                                                 {
00286                         assert((layer >= 0) && (layer < MAX_LAYER));
00287                         pref_[layer].add(s);
00288                 }

Here is the call graph for this function:

int MediaCache::RegInfo::pref_size int  layer,
const MediaSegment s
const [inline]
 

Definition at line 289 of file mcache.h.

References MAX_LAYER, MediaSegmentList::overlap_size(), and pref_.

Referenced by MediaCache::get_data().

00289                                                                       { 
00290                         assert((layer >= 0) && (layer < MAX_LAYER));
00291                         return pref_[layer].overlap_size(s);
00292                 }

Here is the call graph for this function:


Member Data Documentation

HttpApp* MediaCache::RegInfo::client_
 

Definition at line 274 of file mcache.h.

Referenced by MediaCache::command(), and RegInfo().

unsigned int MediaCache::RegInfo::db_[MAX_LAYER]
 

Definition at line 281 of file mcache.h.

Referenced by MediaCache::command(), MediaCache::get_data(), and RegInfo().

unsigned int MediaCache::RegInfo::eb_[MAX_LAYER]
 

Definition at line 279 of file mcache.h.

Referenced by MediaCache::command(), MediaCache::get_data(), and RegInfo().

int MediaCache::RegInfo::hl_
 

Definition at line 275 of file mcache.h.

Referenced by MediaCache::command(), MediaCache::get_data(), and RegInfo().

char MediaCache::RegInfo::name_[20]
 

Definition at line 273 of file mcache.h.

Referenced by MediaCache::command().

unsigned int MediaCache::RegInfo::pb_[MAX_LAYER]
 

Definition at line 277 of file mcache.h.

Referenced by MediaCache::command(), MediaCache::process_data(), and RegInfo().

MediaSegmentList MediaCache::RegInfo::pref_[MAX_LAYER]
 

Definition at line 282 of file mcache.h.

Referenced by add_pref(), pref_size(), and ~RegInfo().


The documentation for this struct was generated from the following file:
Generated on Tue Apr 20 12:59:47 2004 for NS2.26SourcesOriginal by doxygen 1.3.3