ns3::SimulationSingleton< T > Class Template Reference

#include <simulation-singleton.h>

List of all members.

Static Public Member Functions

static T * Get (void)

Static Private Member Functions

static T ** GetObject (void)
static void DeleteObject (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   )  [inline, static, private]

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

References ns3::SimulationSingleton< T >::GetObject().

template<typename T >
T * ns3::SimulationSingleton< T >::Get ( void   )  [inline, static]
Returns:
the instance underlying this singleton.

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().

template<typename T >
T ** ns3::SimulationSingleton< T >::GetObject ( void   )  [inline, static, private]

The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:12:16 2009 for NS-3 by  doxygen 1.6.3