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  

MediaSegment Class Reference

#include <media-app.h>

Inheritance diagram for MediaSegment:

DoubleListElem List of all members.

Public Types

enum  { MS_LAST = 1, MS_PREF = 2 }

Public Member Functions

 MediaSegment ()
 MediaSegment (int start, int end)
 MediaSegment (const HttpMediaData &d)
 MediaSegment (const MediaSegment &s)
int start () const
int end () const
int datasize () const
MediaSegment * next () const
MediaSegment * prev () const
void set_start (int d)
void set_end (int d)
void set_datasize (int d)
void advance (int size)
int in (const MediaSegment &s) const
int before (const MediaSegment &s) const
int overlap (const MediaSegment &s) const
int merge (const MediaSegment &s)
int evict_tail (int sz)
int evict_head (int sz)
int is_empty () const
int is_last () const
void set_last ()
int is_pref () const
void set_pref ()

Private Attributes

int start_
int end_
int flags_

Member Enumeration Documentation

anonymous enum

Enumeration values:

Constructor & Destructor Documentation

MediaSegment::MediaSegment   [inline]

MediaSegment::MediaSegment int    start,
int    end

MediaSegment::MediaSegment const HttpMediaData   d

MediaSegment::MediaSegment const MediaSegment &    s [inline]

Member Function Documentation

void MediaSegment::advance int    size [inline]

int MediaSegment::before const MediaSegment &    s const [inline]

int MediaSegment::datasize   const [inline]

int MediaSegment::end   const [inline]

int MediaSegment::evict_head int    sz [inline]

int MediaSegment::evict_tail int    sz [inline]

int MediaSegment::in const MediaSegment &    s const [inline]

int MediaSegment::is_empty   const [inline]

int MediaSegment::is_last   const [inline]

int MediaSegment::is_pref   const [inline]

int MediaSegment::merge const MediaSegment &    s [inline]

MediaSegment* MediaSegment::next   const [inline]

Reimplemented from DoubleListElem.

int MediaSegment::overlap const MediaSegment &    s const [inline]

MediaSegment* MediaSegment::prev   const [inline]

Reimplemented from DoubleListElem.

void MediaSegment::set_datasize int    d [inline]

void MediaSegment::set_end int    d [inline]

void MediaSegment::set_last   [inline]

void MediaSegment::set_pref   [inline]

void MediaSegment::set_start int    d [inline]

int MediaSegment::start   const [inline]

Member Data Documentation

int MediaSegment::end_ [private]

int MediaSegment::flags_ [private]

int MediaSegment::start_ [private]

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