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
- 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:
- src/simulator/simulation-singleton.h