ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


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

MediaPage Class Reference

#include <mcache.h>

Inheritance diagram for MediaPage:

ClientPage Page List of all members.

Public Types

enum  { FETCHLOCK = 1, XMITLOCK = 2 }

Public Member Functions

 MediaPage (const char *n, int s, double mt, double et, double a, int l)
virtual ~MediaPage ()
virtual WebPageType type () const
virtual void print_info (char *buf)
int num_layer () const
HitCountget_hit_count (int layer)
void hit_layer (int layer)
int layer_size (int layer)
void add_segment (int layer, const MediaSegment &s)
int evict_tail_segment (int layer, int size)
void add_layer (int layer)
char * print_layer (int layer)
MediaSegmentList is_available (int layer, const MediaSegment &s)
MediaSegment next_available (int layer, const MediaSegment &s)
MediaSegment next_overlap (int layer, const MediaSegment &s)
void lock ()
void unlock ()
int is_locked ()
void tlock ()
void tunlock ()
int is_tlocked ()
int is_complete ()
void set_complete ()
void create ()
int realsize () const

Protected Member Functions

void set_complete_layer (int layer)
int is_complete_layer (int layer)

Protected Attributes

MediaSegmentList layer_ [MAX_LAYER]
int flags_ [MAX_LAYER]
HitCounthc_ [MAX_LAYER]
int num_layer_
int locked_
int realsize_

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
FETCHLOCK 
XMITLOCK 


Constructor & Destructor Documentation

MediaPage::MediaPage const char *    n,
int    s,
double    mt,
double    et,
double    a,
int    l
 

MediaPage::~MediaPage   [virtual]
 


Member Function Documentation

void MediaPage::add_layer int    layer [inline]
 

void MediaPage::add_segment int    layer,
const MediaSegment   s
 

void MediaPage::create  
 

int MediaPage::evict_tail_segment int    layer,
int    size
 

HitCount* MediaPage::get_hit_count int    layer [inline]
 

void MediaPage::hit_layer int    layer [inline]
 

MediaSegmentList MediaPage::is_available int    layer,
const MediaSegment   s
[inline]
 

int MediaPage::is_complete  
 

int MediaPage::is_complete_layer int    layer [inline, protected]
 

int MediaPage::is_locked   [inline]
 

int MediaPage::is_tlocked   [inline]
 

int MediaPage::layer_size int    layer [inline]
 

void MediaPage::lock   [inline]
 

MediaSegment MediaPage::next_available int    layer,
const MediaSegment   s
[inline]
 

MediaSegment MediaPage::next_overlap int    layer,
const MediaSegment   s
[inline]
 

int MediaPage::num_layer   const [inline]
 

void MediaPage::print_info char *    buf [virtual]
 

Reimplemented from ClientPage.

char* MediaPage::print_layer int    layer [inline]
 

int MediaPage::realsize   const [inline]
 

void MediaPage::set_complete  
 

void MediaPage::set_complete_layer int    layer [inline, protected]
 

void MediaPage::tlock   [inline]
 

void MediaPage::tunlock   [inline]
 

virtual WebPageType MediaPage::type   const [inline, virtual]
 

Reimplemented from ClientPage.

void MediaPage::unlock   [inline]
 


Member Data Documentation

int MediaPage::flags_[MAX_LAYER] [protected]
 

HitCount* MediaPage::hc_[MAX_LAYER] [protected]
 

MediaSegmentList MediaPage::layer_[MAX_LAYER] [protected]
 

int MediaPage::locked_ [protected]
 

int MediaPage::num_layer_ [protected]
 

int MediaPage::realsize_ [protected]
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.