GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
GranOO3::Core::Singleton< T > Class Template Reference

#include <Singleton.hpp>

Inheritance diagram for GranOO3::Core::Singleton< T >:
Inheritance graph
[legend]

Static Public Member Functions

static bool exist ()
 
static T & get ()
 
static void instanciate ()
 
static void delete_me ()
 

Protected Member Functions

 Singleton ()
 
virtual ~Singleton ()
 

Static Protected Attributes

static T * _me = nullptr
 

Constructor & Destructor Documentation

◆ Singleton()

template<class T >
GranOO3::Core::Singleton< T >::Singleton
protected

◆ ~Singleton()

template<class T >
GranOO3::Core::Singleton< T >::~Singleton
protectedvirtual

Member Function Documentation

◆ delete_me()

template<class T >
void GranOO3::Core::Singleton< T >::delete_me
static

◆ exist()

template<class T >
bool GranOO3::Core::Singleton< T >::exist
static

◆ get()

template<class T >
T & GranOO3::Core::Singleton< T >::get
static

◆ instanciate()

template<class T >
void GranOO3::Core::Singleton< T >::instanciate
static

Member Data Documentation

◆ _me

template<class T >
T * GranOO3::Core::Singleton< T >::_me = nullptr
staticprotected

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