22 #include "ns3/simulator.h"
23 #include "ns3/object-vector.h"
24 #include "ns3/config.h"
26 #include "ns3/assert.h"
68 .AddAttribute (
"NodeList",
"The list of all nodes created during the simulation.",
71 MakeObjectVectorChecker<Node> ())
89 ptr = CreateObject<NodeListPriv> ();
132 uint32_t index =
m_nodes.size ();
162 " is out of range (only have " <<
m_nodes.size () <<
" nodes).");
Ptr< const AttributeAccessor > MakeObjectVectorAccessor(U T::*memberContainer)
#define NS_LOG_FUNCTION(parameters)
static uint32_t GetNNodes(void)
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
static Ptr< Node > GetNode(uint32_t n)
Time TimeStep(uint64_t ts)
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
Ptr< Node > GetNode(uint32_t n)
static TypeId GetTypeId(void)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
static Ptr< NodeListPriv > Get(void)
void UnregisterRootNamespaceObject(Ptr< Object > obj)
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
NodeList::Iterator End(void) const
static Iterator End(void)
static uint32_t Add(Ptr< Node > node)
static void ScheduleWithContext(uint32_t context, Time const &time, MEM mem_ptr, OBJ obj)
Schedule an event with the given context.
std::vector< Ptr< Node > > m_nodes
std::vector< Ptr< Node > >::const_iterator Iterator
private implementation detail of the NodeList API.
void RegisterRootNamespaceObject(Ptr< Object > obj)
#define NS_ASSERT_MSG(condition, message)
NodeList::Iterator Begin(void) const
static Iterator Begin(void)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
void Initialize(void)
This method calls the virtual DoInitialize method on all the objects aggregated to this object...
static EventId ScheduleDestroy(MEM mem_ptr, OBJ obj)
Schedule an event to expire at Destroy time.
a base class which provides memory management and object aggregation
static Ptr< NodeListPriv > * DoGet(void)
contain a set of ns3::Object pointers.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
void Dispose(void)
Run the DoDispose methods of this object and all the objects aggregated to it.
uint32_t Add(Ptr< Node > node)