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

#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

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