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  

Path Class Reference

#include <path.h>

List of all members.

Public Member Functions

 Path ()
 Path (int route_len, const ID *route=NULL)
 Path (const Path &old)
 Path (const struct sr_addr *addrs, int len)
 Path (struct hdr_sr *srh)
 ~Path ()
void fillSR (struct hdr_sr *srh)
ID & next ()
void resetIterator ()
void reset ()
void setIterator (int i)
void setLength (int l)
ID & operator[] (int n) const
void operator= (const Path &rhs)
bool operator== (const Path &rhs)
void appendToPath (const ID &id)
void appendPath (Path &p)
bool member (const ID &id) const
bool member (const ID &net_id, const ID &MAC_id) const
Path copy () const
void copyInto (Path &to) const
Path reverse () const
void reverseInPlace ()
void removeSection (int from, int to)
bool full () const
int length () const
int index () const
int & index ()
int size () const
void unparse (FILE *out) const
char * dump () const
ID & owner ()
void checkpath (void) const

Private Attributes

int len
int cur_index
ID * path
ID path_owner

Friends

void compressPath (Path &path)
void CopyIntoPath (Path &to, const Path &from, int start, int stop)


Constructor & Destructor Documentation

Path::Path (    ) 
 

Path::Path (  int    route_len,
const ID *    route = NULL
) 
 

Path::Path (  const Path &    old ) 
 

Path::Path (  const struct sr_addr *    addrs,
int    len
) 
 

Path::Path (  struct hdr_sr *    srh ) 
 

Path::~Path (    ) 
 


Member Function Documentation

void Path::appendPath (  Path &    p ) 
 

void Path::appendToPath (  const ID &    id )  [inline]
 

void Path::checkpath (  void    )  const
 

Path Path::copy (    )  const
 

void Path::copyInto (  Path &    to )  const
 

char * Path::dump (    )  const
 

void Path::fillSR (  struct hdr_sr *    srh ) 
 

bool Path::full (    )  const [inline]
 

int& Path::index (    )  [inline]
 

int Path::index (    )  const [inline]
 

int Path::length (    )  const [inline]
 

bool Path::member (  const ID &    net_id,
const ID &    MAC_id
)  const
 

bool Path::member (  const ID &    id )  const
 

ID& Path::next (    )  [inline]
 

void Path::operator= (  const Path &    rhs ) 
 

bool Path::operator== (  const Path &    rhs ) 
 

ID& Path::operator[] (  int    n )  const [inline]
 

ID& Path::owner (    )  [inline]
 

void Path::removeSection (  int    from,
int    to
) 
 

void Path::reset (    )  [inline]
 

void Path::resetIterator (    )  [inline]
 

Path Path::reverse (    )  const
 

void Path::reverseInPlace (    ) 
 

void Path::setIterator (  int    i )  [inline]
 

void Path::setLength (  int    l )  [inline]
 

int Path::size (    )  const
 

void Path::unparse (  FILE *    out )  const
 


Friends And Related Function Documentation

void compressPath (  Path &    path )  [friend]
 

void CopyIntoPath (  Path &    to,
const Path &    from,
int    start,
int    stop
)  [friend]
 


Member Data Documentation

int Path::cur_index [private]
 

int Path::len [private]
 

ID* Path::path [private]
 

ID Path::path_owner [private]
 


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