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) |
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.
|
staticprivate |
Definition at line 78 of file simulation-singleton.h.
|
static |
This instance will be automatically deleted when the user calls ns3::Simulator::Destroy.
Definition at line 57 of file simulation-singleton.h.
Referenced by ns3::Ipv4AddressGenerator::AddAllocated(), ns3::Ipv6AddressGenerator::AddAllocated(), ns3::GlobalRouteManager::BuildGlobalRoutingDatabase(), ns3::GlobalRouteManager::DeleteGlobalRoutes(), ns3::Ipv4AddressGenerator::GetAddress(), ns3::Ipv6AddressGenerator::GetAddress(), ns3::Ipv4AddressGenerator::GetNetwork(), ns3::Ipv6AddressGenerator::GetNetwork(), ns3::Ipv4AddressGenerator::Init(), ns3::Ipv6AddressGenerator::Init(), ns3::Ipv4AddressGenerator::InitAddress(), ns3::Ipv6AddressGenerator::InitAddress(), ns3::GlobalRouteManager::InitializeRoutes(), ns3::Ipv4AddressGenerator::NextAddress(), ns3::Ipv6AddressGenerator::NextAddress(), ns3::Ipv4AddressGenerator::NextNetwork(), ns3::Ipv6AddressGenerator::NextNetwork(), ns3::Ipv4AddressGenerator::Reset(), ns3::Ipv6AddressGenerator::Reset(), ns3::Ipv4AddressGenerator::TestMode(), and ns3::Ipv6AddressGenerator::TestMode().
|
staticprivate |
Definition at line 65 of file simulation-singleton.h.
References ns3::Simulator::ScheduleDestroy().