ns3::NodeList Class Reference
[Node]

the list of simulation nodes. More...

#include <node-list.h>

List of all members.

Public Types

typedef std::vector< Ptr< Node >
>::const_iterator 
Iterator

Static Public Member Functions

static uint32_t Add (Ptr< Node > node)
static Iterator Begin (void)
static Iterator End (void)
static Ptr< NodeGetNode (uint32_t n)
static uint32_t GetNNodes (void)

Detailed Description

the list of simulation nodes.

Every Node created is automatically added to this list.

Definition at line 40 of file node-list.h.


Member Typedef Documentation

typedef std::vector< Ptr<Node> >::const_iterator ns3::NodeList::Iterator

Definition at line 43 of file node-list.h.


Member Function Documentation

uint32_t ns3::NodeList::Add ( Ptr< Node node  )  [static]
Parameters:
node node to add
Returns:
index of node in list.

This method is called automatically from Node::Node so the user has little reason to call it himself.

Definition at line 159 of file node-list.cc.

References ns3::TimeStepPrecision::Get().

Referenced by ns3::Node::Construct().

NodeList::Iterator ns3::NodeList::Begin ( void   )  [static]
NodeList::Iterator ns3::NodeList::End ( void   )  [static]
uint32_t ns3::NodeList::GetNNodes ( void   )  [static]
Returns:
the number of nodes currently in the list.

Definition at line 179 of file node-list.cc.

References ns3::TimeStepPrecision::Get().

Ptr< Node > ns3::NodeList::GetNode ( uint32_t  n  )  [static]
Parameters:
n index of requested node.
Returns:
the Node associated to index n.

Definition at line 174 of file node-list.cc.

References ns3::TimeStepPrecision::Get().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:12:04 2009 for NS-3 by  doxygen 1.6.3