22 #include "ns3/simulator.h" 
   23 #include "ns3/object-vector.h" 
   24 #include "ns3/config.h" 
   26 #include "ns3/assert.h" 
  114     .SetGroupName(
"Network")
 
  115     .AddAttribute (
"NodeList", 
"The list of all nodes created during the simulation.",
 
  118                    MakeObjectVectorChecker<Node> ())
 
  136       ptr = CreateObject<NodeListPriv> ();
 
  179   uint32_t index = 
m_nodes.size ();
 
  209                  " is out of range (only have " << 
m_nodes.size () << 
" nodes).");
 
void Dispose(void)
Dispose of this Object. 
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
static uint32_t GetNNodes(void)
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
static Ptr< Node > GetNode(uint32_t n)
 
void UnregisterRootNamespaceObject(Ptr< Object > obj)
 
Ptr< const AttributeAccessor > MakeObjectVectorAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector. 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
Ptr< Node > GetNode(uint32_t n)
 
static void Delete(void)
Delete the nodes list object. 
 
static TypeId GetTypeId(void)
Get the type ID. 
 
static Ptr< NodeListPriv > Get(void)
Get the node list object. 
 
virtual void DoDispose(void)
Destructor implementation. 
 
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function. 
 
void RegisterRootNamespaceObject(Ptr< Object > obj)
 
NodeList::Iterator End(void) const 
 
NS_ASSERT_MSG(false,"Ipv4AddressGenerator::MaskToIndex(): Impossible")
 
static Iterator End(void)
 
static uint32_t Add(Ptr< Node > node)
 
std::vector< Ptr< Node > > m_nodes
node objects container 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator. 
 
private implementation detail of the NodeList API. 
 
Time TimeStep(uint64_t ts)
 
static void ScheduleWithContext(uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event with the given context. 
 
NodeList::Iterator Begin(void) const 
 
static Iterator Begin(void)
 
virtual void DoDispose(void)
Dispose the nodes in the list. 
 
static EventId ScheduleDestroy(MEM mem_ptr, OBJ obj)
Schedule an event to expire when Simulator::Destroy is called. 
 
A base class which provides memory management and object aggregation. 
 
static Ptr< NodeListPriv > * DoGet(void)
Get the node list object. 
 
Container for a set of ns3::Object pointers. 
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId. 
 
void Initialize(void)
Invoke DoInitialize on all Objects aggregated to this one. 
 
uint32_t Add(Ptr< Node > node)