A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::SimulationSingleton< T > Class Template Reference

This singleton class template ensures that the type for which we want a singleton has a lifetime bounded by the simulation lifetime. More...

#include <simulation-singleton.h>

Static Public Member Functions

static T * Get (void)
 

Static Private Member Functions

static void DeleteObject (void)
 
static T ** GetObject (void)
 

Detailed Description

template<typename T>
class ns3::SimulationSingleton< T >

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.

Member Function Documentation

template<typename T >
void ns3::SimulationSingleton< T >::DeleteObject ( void  )
staticprivate

Definition at line 78 of file simulation-singleton.h.

template<typename T >
T ** ns3::SimulationSingleton< T >::GetObject ( void  )
staticprivate

Definition at line 65 of file simulation-singleton.h.

References ns3::Simulator::ScheduleDestroy().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: