24 #include "ns3/names.h" 
   36   static TypeId tid = 
TypeId (
"ns3::EnergyHarvesterContainer")
 
   38     .SetGroupName (
"Energy")
 
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 "...
 
Iterator Begin(void) const 
Get an iterator which refers to the first EnergyHarvester pointer in the container. 
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
virtual void DoInitialize(void)
Calls Object::Initialize () for all EnergySource objects. 
 
void Add(EnergyHarvesterContainer container)
 
uint32_t GetN(void) const 
Get the number of Ptr stored in this container. 
 
Ptr< EnergyHarvester > Get(uint32_t i) const 
Get the i-th Ptr stored in this container. 
 
EnergyHarvesterContainer()
Creates an empty EnergyHarvesterContainer. 
 
std::vector< Ptr< EnergyHarvester > >::const_iterator Iterator
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
static TypeId GetTypeId(void)
 
Holds a vector of ns3::EnergyHarvester pointers. 
 
virtual void DoDispose(void)
Destructor implementation. 
 
void Clear(void)
Removes all elements in the container. 
 
std::vector< Ptr< EnergyHarvester > > m_harvesters
 
~EnergyHarvesterContainer()
 
Iterator End(void) const 
Get an iterator which refers to the last EnergyHarvester pointer in the container. 
 
A base class which provides memory management and object aggregation. 
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId.