ns3::SimulationSingleton< T > Class Template Reference

#include <simulation-singleton.h>

List of all members.

Static Public Member Functions

static T * Get (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.

Member Function Documentation

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.


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

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8