|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
19 #include "ns3/simulator.h"
20 #include "ns3/object-vector.h"
21 #include "ns3/config.h"
23 #include "ns3/assert.h"
111 .SetGroupName(
"Network")
112 .AddAttribute (
"ChannelList",
"The list of all channels created during the simulation.",
115 MakeObjectVectorChecker<Channel> ())
134 ptr = CreateObject<ChannelListPriv> ();
209 " is out of range (only have " <<
m_channels.size () <<
" channels).");
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
private implementation detail of the ChannelList API.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
static EventId ScheduleDestroy(FUNC f, Ts &&... args)
Schedule an event to run at the end of the simulation, when Simulator::Destroy() is called.
Ptr< const AttributeAccessor > MakeObjectVectorAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< Ptr< Channel > >::const_iterator Iterator
Channel container iterator.
static Ptr< ChannelListPriv > Get(void)
Get the channel list object.
static Iterator Begin(void)
static void Delete(void)
Delete the channel list object.
static Ptr< ChannelListPriv > * DoGet(void)
Get the channel list object.
void RegisterRootNamespaceObject(Ptr< Object > obj)
Container for a set of ns3::Object pointers.
std::vector< Ptr< Channel > > m_channels
channel objects container
static TypeId GetTypeId(void)
Get the type ID.
uint32_t Add(Ptr< Channel > channel)
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< Channel > GetChannel(uint32_t n)
A base class which provides memory management and object aggregation.
static uint32_t Add(Ptr< Channel > channel)
static Ptr< Channel > GetChannel(uint32_t n)
static uint32_t GetNChannels(void)
void UnregisterRootNamespaceObject(Ptr< Object > obj)
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
ChannelList::Iterator Begin(void) const
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
uint32_t GetNChannels(void)
ChannelList::Iterator End(void) const
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
static Iterator End(void)
virtual void DoDispose(void)
Dispose the channels in the list.
virtual void DoDispose(void)
Destructor implementation.