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  

MCastClassifier Class Reference

#include <classifier-mcast.h>

Inheritance diagram for MCastClassifier:

Classifier NsObject TclObject Handler MCastBSTClassifier List of all members.

Public Member Functions

 MCastClassifier ()
 ~MCastClassifier ()

Static Public Attributes

const char STARSYM [] = "x"

Protected Types

enum  { HASHSIZE = 256 }

Protected Member Functions

virtual int command (int argc, const char *const *argv)
virtual int classify (Packet *p)
int findslot ()
int hash (nsaddr_t src, nsaddr_t dst) const
void set_hash (hashnode *ht[], nsaddr_t src, nsaddr_t dst, int slot, int iface)
void clearAll ()
void clearHash (hashnode *h[], int size)
hashnode * lookup (nsaddr_t src, nsaddr_t dst, int iface=iface_literal::ANY_IFACE) const
hashnode * lookup_star (nsaddr_t dst, int iface=iface_literal::ANY_IFACE) const
void change_iface (nsaddr_t src, nsaddr_t dst, int oldiface, int newiface)
void change_iface (nsaddr_t dst, int oldiface, int newiface)

Protected Attributes

hashnode * ht_ [HASHSIZE]
hashnode * ht_star_ [HASHSIZE]

Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
HASHSIZE 


Constructor & Destructor Documentation

MCastClassifier::MCastClassifier (    ) 
 

MCastClassifier::~MCastClassifier (    ) 
 


Member Function Documentation

void MCastClassifier::change_iface (  nsaddr_t    dst,
int    oldiface,
int    newiface
)  [protected]
 

void MCastClassifier::change_iface (  nsaddr_t    src,
nsaddr_t    dst,
int    oldiface,
int    newiface
)  [protected]
 

int MCastClassifier::classify (  Packet *    p )  [protected, virtual]
 

Reimplemented from Classifier.

Reimplemented in MCastBSTClassifier.

void MCastClassifier::clearAll (    )  [protected]
 

void MCastClassifier::clearHash (  hashnode *    h[],
int    size
)  [protected]
 

int MCastClassifier::command (  int    argc,
const char *const *    argv
)  [protected, virtual]
 

Reimplemented from Classifier.

int MCastClassifier::findslot (    )  [protected]
 

int MCastClassifier::hash (  nsaddr_t    src,
nsaddr_t    dst
)  const [inline, protected]
 

MCastClassifier::hashnode * MCastClassifier::lookup (  nsaddr_t    src,
nsaddr_t    dst,
int    iface = iface_literal::ANY_IFACE
)  const [protected]
 

MCastClassifier::hashnode * MCastClassifier::lookup_star (  nsaddr_t    dst,
int    iface = iface_literal::ANY_IFACE
)  const [protected]
 

void MCastClassifier::set_hash (  hashnode *    ht[],
nsaddr_t    src,
nsaddr_t    dst,
int    slot,
int    iface
)  [protected]
 


Member Data Documentation

hashnode* MCastClassifier::ht_[HASHSIZE] [protected]
 

hashnode* MCastClassifier::ht_star_[HASHSIZE] [protected]
 

const char MCastClassifier::STARSYM = "x" [static]
 

Reimplemented in MCastBSTClassifier.


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