keep track of a set of node pointers. More...
#include <node-container.h>
Public Types | |
typedef std::vector< Ptr< Node > >::const_iterator | Iterator |
Public Member Functions | |
NodeContainer () | |
NodeContainer (Ptr< Node > node) | |
NodeContainer (const NodeContainer &a, const NodeContainer &b) | |
NodeContainer (const NodeContainer &a, const NodeContainer &b, const NodeContainer &c) | |
NodeContainer (const NodeContainer &a, const NodeContainer &b, const NodeContainer &c, const NodeContainer &d) | |
NodeContainer (const NodeContainer &a, const NodeContainer &b, const NodeContainer &c, const NodeContainer &d, const NodeContainer &e) | |
Iterator | Begin (void) const |
Iterator | End (void) const |
uint32_t | GetN (void) const |
Ptr< Node > | Get (uint32_t i) const |
void | Create (uint32_t n) |
void | Add (NodeContainer other) |
void | Add (Ptr< Node > node) |
Static Public Member Functions | |
static NodeContainer | GetGlobal (void) |
Private Attributes | |
std::vector< Ptr< Node > > | m_nodes |
keep track of a set of node pointers.
Definition at line 33 of file node-container.h.
typedef std::vector<Ptr<Node> >::const_iterator ns3::NodeContainer::Iterator |
Definition at line 36 of file node-container.h.
ns3::NodeContainer::NodeContainer | ( | ) |
Create an empty NodeContainer.
Definition at line 25 of file node-container.cc.
node | a node to add to the container |
Create a NodeContainer with exactly one node.
Definition at line 28 of file node-container.cc.
References m_nodes.
ns3::NodeContainer::NodeContainer | ( | const NodeContainer & | a, | |
const NodeContainer & | b | |||
) |
a | a node container | |
b | another node container |
Create a node container which is a concatenation of the two input NodeContainers.
Definition at line 32 of file node-container.cc.
References Add().
ns3::NodeContainer::NodeContainer | ( | const NodeContainer & | a, | |
const NodeContainer & | b, | |||
const NodeContainer & | c | |||
) |
Definition at line 37 of file node-container.cc.
References Add().
ns3::NodeContainer::NodeContainer | ( | const NodeContainer & | a, | |
const NodeContainer & | b, | |||
const NodeContainer & | c, | |||
const NodeContainer & | d | |||
) |
Definition at line 44 of file node-container.cc.
References Add().
ns3::NodeContainer::NodeContainer | ( | const NodeContainer & | a, | |
const NodeContainer & | b, | |||
const NodeContainer & | c, | |||
const NodeContainer & | d, | |||
const NodeContainer & | e | |||
) |
Definition at line 53 of file node-container.cc.
References Add().
node | a node pointer |
Append the input node pointer at the end of this NodeContainer.
Definition at line 102 of file node-container.cc.
References m_nodes.
void ns3::NodeContainer::Add | ( | NodeContainer | other | ) |
other | another NodeContainer |
Append the node pointers from the input NodeContainer at the end of this NodeContainer.
Definition at line 94 of file node-container.cc.
References Begin(), End(), and m_nodes.
Referenced by GetGlobal(), and NodeContainer().
NodeContainer::Iterator ns3::NodeContainer::Begin | ( | void | ) | const |
Definition at line 65 of file node-container.cc.
References m_nodes.
Referenced by Add(), ns3::MobilityHelper::EnableAscii(), ns3::EmuHelper::EnableAscii(), ns3::EmuHelper::EnablePcap(), ns3::WifiHelper::Install(), ns3::V4PingHelper::Install(), ns3::PacketSocketHelper::Install(), ns3::MobilityHelper::Install(), ns3::EmuHelper::Install(), and ns3::GlobalRouteManagerImpl::SelectRouterNodes().
void ns3::NodeContainer::Create | ( | uint32_t | n | ) |
n | the number of nodes to create |
Create n nodes and append pointers to them to the end of this NodeContainer.
Definition at line 86 of file node-container.cc.
References m_nodes.
NodeContainer::Iterator ns3::NodeContainer::End | ( | void | ) | const |
Definition at line 70 of file node-container.cc.
References m_nodes.
Referenced by Add(), ns3::MobilityHelper::EnableAscii(), ns3::EmuHelper::EnableAscii(), ns3::EmuHelper::EnablePcap(), GetGlobal(), ns3::WifiHelper::Install(), ns3::V4PingHelper::Install(), ns3::PacketSocketHelper::Install(), ns3::MobilityHelper::Install(), ns3::EmuHelper::Install(), and ns3::GlobalRouteManagerImpl::SelectRouterNodes().
i | the index of the requested node pointer. |
Definition at line 81 of file node-container.cc.
References m_nodes.
Referenced by ns3::PointToPointHelper::EnqueueEvent(), ns3::CsmaHelper::EnqueueEvent(), and ns3::PointToPointHelper::Install().
NodeContainer ns3::NodeContainer::GetGlobal | ( | void | ) | [static] |
Definition at line 108 of file node-container.cc.
References Add(), ns3::NodeList::Begin(), and End().
Referenced by ns3::MobilityHelper::EnableAsciiAll(), ns3::EmuHelper::EnableAsciiAll(), ns3::InternetStackHelper::EnablePcapAll(), ns3::EmuHelper::EnablePcapAll(), and ns3::MobilityHelper::InstallAll().
uint32_t ns3::NodeContainer::GetN | ( | void | ) | const |
Definition at line 76 of file node-container.cc.
References m_nodes.
Referenced by ns3::PointToPointHelper::Install().
std::vector<Ptr<Node> > ns3::NodeContainer::m_nodes [private] |
Definition at line 117 of file node-container.h.
Referenced by Add(), Begin(), Create(), End(), Get(), GetN(), and NodeContainer().