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).");
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
ChannelList::Iterator End(void) const
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
NS_ASSERT_MSG(false, "Ipv4AddressGenerator::MaskToIndex(): Impossible")
void UnregisterRootNamespaceObject(Ptr< Object > obj)
static uint32_t GetNChannels(void)
Ptr< Channel > GetChannel(uint32_t n)
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.
virtual void DoDispose(void)
Dispose the channels in the list.
static Ptr< ChannelListPriv > Get(void)
Get the channel list object.
virtual void DoDispose(void)
Destructor implementation.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
uint32_t GetNChannels(void)
void RegisterRootNamespaceObject(Ptr< Object > obj)
static Ptr< ChannelListPriv > * DoGet(void)
Get the channel list object.
ChannelList::Iterator Begin(void) const
std::vector< Ptr< Channel > > m_channels
channel objects container
uint32_t Add(Ptr< Channel > channel)
std::vector< Ptr< Channel > >::const_iterator Iterator
Channel container iterator.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Iterator Begin(void)
private implementation detail of the ChannelList API.
static void Delete(void)
Delete the channel list object.
static uint32_t Add(Ptr< Channel > channel)
static EventId ScheduleDestroy(MEM mem_ptr, OBJ obj)
Schedule an event to expire when Simulator::Destroy is called.
static Iterator End(void)
A base class which provides memory management and object aggregation.
Container for a set of ns3::Object pointers.
static Ptr< Channel > GetChannel(uint32_t n)
static TypeId GetTypeId(void)
Get the type ID.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.