#include <simulation-singleton.h>
Static Public Member Functions | |
static T * | Get (void) |
Static Private Member Functions | |
static T ** | GetObject (void) |
static void | DeleteObject (void) |
This singleton class template ensures that the type for which we want a singleton has a lifetime bounded by the simulation lifetime. That it, the underlying type will be automatically deleted upon a users' call to Simulator::Destroy.
Definition at line 33 of file simulation-singleton.h.
void ns3::SimulationSingleton< T >::DeleteObject | ( | void | ) | [inline, static, private] |
Definition at line 78 of file simulation-singleton.h.
References ns3::SimulationSingleton< T >::GetObject().
T * ns3::SimulationSingleton< T >::Get | ( | void | ) | [inline, static] |
This instance will be automatically deleted when the user calls ns3::Simulator::Destroy.
Definition at line 57 of file simulation-singleton.h.
References ns3::SimulationSingleton< T >::GetObject().
T ** ns3::SimulationSingleton< T >::GetObject | ( | void | ) | [inline, static, private] |
Definition at line 65 of file simulation-singleton.h.
References ns3::Simulator::ScheduleDestroy().
Referenced by ns3::SimulationSingleton< T >::DeleteObject(), and ns3::SimulationSingleton< T >::Get().