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  

RouteLogic Class Reference

#include <route.h>

Inheritance diagram for RouteLogic:

TclObject RouteLogicAlgo SatRouteObject List of all members.

Public Member Functions

 RouteLogic ()
 ~RouteLogic ()
int command (int argc, const char *const *argv)
virtual int lookup_flat (char *asrc, char *adst, int &result)
virtual int lookup_flat (int sid, int did)
int lookup_hier (char *asrc, char *adst, int &result)
int elements_in_level (int *addr, int level)
int domains ()
int domain_size (int domain)
int cluster_size (int domain, int cluster)

Static Public Member Functions

void ns_strtok (char *addr, int *addrstr)

Protected Member Functions

void check (int)
void alloc (int n)
void reset (int src, int dst)
void compute_routes ()
void insert (int src, int dst, double cost)
void insert (int src, int dst, double cost, void *entry)
void reset_all ()
void hier_check (int index)
void hier_alloc (int size)
void hier_init (void)
void str2address (const char *const *address, int *src, int *dst)
void get_address (char *target, int next_hop, int index, int d, int size, int *src)
void hier_insert (int *src, int *dst, int cost)
void hier_reset (int *src, int *dst)
void hier_compute ()
void hier_compute_routes (int index, int d)
void hier_print_hadj ()
void hier_print_route ()

Protected Attributes

adj_entry * adj_
route_entry * route_
int size_
int maxnode_
int ** hadj_
int ** hroute_
int * hsize_
int * cluster_size_
char *** hconnect_
int level_
int * C_
int D_
int Cmax_

Constructor & Destructor Documentation

RouteLogic::RouteLogic (    ) 
 

RouteLogic::~RouteLogic (    ) 
 


Member Function Documentation

void RouteLogic::alloc (  int    n )  [protected]
 

void RouteLogic::check (  int    )  [protected]
 

int RouteLogic::cluster_size (  int    domain,
int    cluster
)  [inline]
 

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

Reimplemented from TclObject.

Reimplemented in SatRouteObject.

void RouteLogic::compute_routes (    )  [protected]
 

int RouteLogic::domain_size (  int    domain )  [inline]
 

int RouteLogic::domains (    )  [inline]
 

int RouteLogic::elements_in_level (  int *    addr,
int    level
) 
 

void RouteLogic::get_address (  char *    target,
int    next_hop,
int    index,
int    d,
int    size,
int *    src
)  [protected]
 

void RouteLogic::hier_alloc (  int    size )  [protected]
 

void RouteLogic::hier_check (  int    index )  [protected]
 

void RouteLogic::hier_compute (    )  [protected]
 

void RouteLogic::hier_compute_routes (  int    index,
int    d
)  [protected]
 

void RouteLogic::hier_init (  void    )  [protected]
 

void RouteLogic::hier_insert (  int *    src,
int *    dst,
int    cost
)  [protected]
 

void RouteLogic::hier_print_hadj (    )  [protected]
 

void RouteLogic::hier_print_route (    )  [protected]
 

void RouteLogic::hier_reset (  int *    src,
int *    dst
)  [protected]
 

void RouteLogic::insert (  int    src,
int    dst,
double    cost,
void *    entry
)  [protected]
 

void RouteLogic::insert (  int    src,
int    dst,
double    cost
)  [protected]
 

int RouteLogic::lookup_flat (  int    sid,
int    did
)  [virtual]
 

int RouteLogic::lookup_flat (  char *    asrc,
char *    adst,
int &    result
)  [virtual]
 

Reimplemented in RouteLogicAlgo.

int RouteLogic::lookup_hier (  char *    asrc,
char *    adst,
int &    result
) 
 

void RouteLogic::ns_strtok (  char *    addr,
int *    addrstr
)  [static]
 

void RouteLogic::reset (  int    src,
int    dst
)  [protected]
 

void RouteLogic::reset_all (    )  [protected]
 

void RouteLogic::str2address (  const char *const *    address,
int *    src,
int *    dst
)  [protected]
 


Member Data Documentation

adj_entry* RouteLogic::adj_ [protected]
 

int* RouteLogic::C_ [protected]
 

int* RouteLogic::cluster_size_ [protected]
 

int RouteLogic::Cmax_ [protected]
 

int RouteLogic::D_ [protected]
 

int** RouteLogic::hadj_ [protected]
 

char*** RouteLogic::hconnect_ [protected]
 

int** RouteLogic::hroute_ [protected]
 

int* RouteLogic::hsize_ [protected]
 

int RouteLogic::level_ [protected]
 

int RouteLogic::maxnode_ [protected]
 

route_entry* RouteLogic::route_ [protected]
 

int RouteLogic::size_ [protected]
 


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