Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
micros_swarm::Singleton< T > Class Template Reference

#include <singleton.h>

Public Member Functions

 ~Singleton ()
 

Static Public Member Functions

static void deleteSingleton ()
 
static boost::shared_ptr< T > getExistedSingleton ()
 
static boost::shared_ptr< T > getSingleton ()
 
template<class P1 >
static boost::shared_ptr< T > getSingleton (P1 p1)
 
template<class P1 , class P2 >
static boost::shared_ptr< T > getSingleton (P1 p1, P2 p2)
 
template<class P1 , class P2 , class P3 >
static boost::shared_ptr< T > getSingleton (P1 p1, P2 p2, P3 p3)
 
static void makeSingleton (boost::shared_ptr< T > &existed_ptr)
 
static int use_count ()
 

Private Member Functions

 Singleton ()
 

Static Private Attributes

static boost::mutex singleton_mutex_
 
static boost::shared_ptr< T > singleton_object_
 

Detailed Description

template<class T>
class micros_swarm::Singleton< T >

Definition at line 36 of file singleton.h.

Constructor & Destructor Documentation

template<class T >
micros_swarm::Singleton< T >::~Singleton ( )
inline

Definition at line 126 of file singleton.h.

template<class T >
micros_swarm::Singleton< T >::Singleton ( )
inlineprivate

Definition at line 128 of file singleton.h.

Member Function Documentation

template<class T >
static void micros_swarm::Singleton< T >::deleteSingleton ( )
inlinestatic

Definition at line 61 of file singleton.h.

template<class T >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getExistedSingleton ( )
inlinestatic

Definition at line 52 of file singleton.h.

template<class T >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getSingleton ( )
inlinestatic

Definition at line 70 of file singleton.h.

template<class T >
template<class P1 >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getSingleton ( P1  p1)
inlinestatic

Definition at line 83 of file singleton.h.

template<class T >
template<class P1 , class P2 >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getSingleton ( P1  p1,
P2  p2 
)
inlinestatic

Definition at line 96 of file singleton.h.

template<class T >
template<class P1 , class P2 , class P3 >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getSingleton ( P1  p1,
P2  p2,
P3  p3 
)
inlinestatic

Definition at line 109 of file singleton.h.

template<class T >
static void micros_swarm::Singleton< T >::makeSingleton ( boost::shared_ptr< T > &  existed_ptr)
inlinestatic

Definition at line 39 of file singleton.h.

template<class T >
static int micros_swarm::Singleton< T >::use_count ( )
inlinestatic

Definition at line 121 of file singleton.h.

Member Data Documentation

template<class T >
boost::mutex micros_swarm::Singleton< T >::singleton_mutex_
staticprivate

Definition at line 131 of file singleton.h.

template<class T >
boost::shared_ptr< T > micros_swarm::Singleton< T >::singleton_object_
staticprivate

Definition at line 130 of file singleton.h.


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


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06