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  

FlowTable Class Reference

#include <flowstruct.h>

List of all members.

Public Member Functions

 FlowTable (int size_=FLOW_TABLE_SIZE)
 ~FlowTable ()
TableEntryoperator[] (int index)
int find (nsaddr_t source, nsaddr_t destination, u_int16_t flow)
int find (nsaddr_t source, nsaddr_t destination, const Path &route)
int createEntry (nsaddr_t source, nsaddr_t destination, u_int16_t flow)
bool defaultFlow (nsaddr_t source, nsaddr_t destination, u_int16_t &flow)
u_int16_t generateNextFlowId (nsaddr_t destination, bool allowDefault)
void noticeDeadLink (const ID &from, const ID &to)
void cleanup ()
void setNetAddr (nsaddr_t net_id)

Private Member Functions

void grow ()

Private Attributes

int size
int maxSize
u_int16_t counter
nsaddr_t net_addr
DRTable DRTab

Constructor & Destructor Documentation

FlowTable::FlowTable int    size_ = FLOW_TABLE_SIZE


Member Function Documentation

void FlowTable::cleanup  

int FlowTable::createEntry nsaddr_t    source,
nsaddr_t    destination,
u_int16_t    flow

bool FlowTable::defaultFlow nsaddr_t    source,
nsaddr_t    destination,
u_int16_t   flow

int FlowTable::find nsaddr_t    source,
nsaddr_t    destination,
const Path   route

int FlowTable::find nsaddr_t    source,
nsaddr_t    destination,
u_int16_t    flow

u_int16_t FlowTable::generateNextFlowId nsaddr_t    destination,
bool    allowDefault

void FlowTable::grow   [private]

void FlowTable::noticeDeadLink const ID   from,
const ID   to

TableEntry & FlowTable::operator[] int    index

void FlowTable::setNetAddr nsaddr_t    net_id

Member Data Documentation

u_int16_t FlowTable::counter [private]

DRTable FlowTable::DRTab [private]

int FlowTable::maxSize [private]

nsaddr_t FlowTable::net_addr [private]

int FlowTable::size [private]

TableEntry* FlowTable::table [private]

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