A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::NodeList Class Reference

the list of simulation nodes. More...

#include <node-list.h>

Public Types

typedef std::vector< Ptr< Node >
>::const_iterator 
Iterator
 Node container iterator. More...
 

Static Public Member Functions

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

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

Node container iterator.

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

Member Function Documentation

uint32_t ns3::NodeList::Add ( Ptr< Node node)
static
Parameters
nodenode 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 222 of file node-list.cc.

References ns3::NodeListPriv::Get(), and NS_LOG_FUNCTION.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References ns3::NodeListPriv::Get(), and NS_LOG_FUNCTION.

Referenced by ns3::AnimationInterface::AppendXMLRemainingEnergy(), ns3::PyViz::FindNetDeviceStatistics(), ns3::dsr::DsrRouting::GetIDfromIP(), ns3::dsr::DsrOptions::GetIDfromIP(), ns3::dsr::DsrRouting::GetIPfromID(), ns3::dsr::DsrRouting::GetIPfromMAC(), ns3::AnimationInterface::GetIpv4Address(), ns3::dsr::DsrRouting::GetNetDeviceFromContext(), ns3::GlobalRoutingLSA::GetNode(), ns3::AnimationInterface::GetNodeFromContext(), ns3::dsr::DsrRouting::GetNodeWithAddress(), ns3::dsr::DsrOptions::GetNodeWithAddress(), main(), ns3::Ipv4RoutingHelper::PrintRoutingTableAllAt(), ns3::Ipv6RoutingHelper::PrintRoutingTableAllAt(), ns3::Ipv4RoutingHelper::PrintRoutingTableAllEvery(), ns3::Ipv6RoutingHelper::PrintRoutingTableAllEvery(), ns3::dsr::DsrOptionSR::Process(), ns3::GrantedTimeWindowMpiInterface::ReceiveMessages(), ns3::NullMessageMpiInterface::ReceiveMessages(), ns3::AnimationInterface::RecursiveIpv4RoutePathSearch(), ns3::GrantedTimeWindowMpiInterface::SendPacket(), ns3::NullMessageMpiInterface::SendPacket(), ns3::AnimationInterface::ShowNode(), ns3::AnimationInterface::StartAnimation(), ns3::PyViz::TraceDevQueueDrop(), ns3::PyViz::TraceNetDevRxCommon(), ns3::PyViz::TraceNetDevTxCommon(), ns3::AnimationInterface::TrackIpv4RoutePaths(), ns3::AnimationInterface::UpdateNodeColor(), ns3::AnimationInterface::UpdateNodeDescription(), and ns3::AnimationInterface::WifiPhyRxBeginTrace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: