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

#include <singleton.h>

List of all members.

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 ( ) [inline, private]

Definition at line 128 of file singleton.h.


Member Function Documentation

template<class T >
static void micros_swarm::Singleton< T >::deleteSingleton ( ) [inline, static]

Definition at line 61 of file singleton.h.

template<class T >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getExistedSingleton ( ) [inline, static]

Definition at line 52 of file singleton.h.

template<class T >
static boost::shared_ptr<T> micros_swarm::Singleton< T >::getSingleton ( ) [inline, static]

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) [inline, static]

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 
) [inline, static]

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 
) [inline, static]

Definition at line 109 of file singleton.h.

template<class T >
static void micros_swarm::Singleton< T >::makeSingleton ( boost::shared_ptr< T > &  existed_ptr) [inline, static]

Definition at line 39 of file singleton.h.

template<class T >
static int micros_swarm::Singleton< T >::use_count ( ) [inline, static]

Definition at line 121 of file singleton.h.


Member Data Documentation

template<class T >
boost::mutex micros_swarm::Singleton< T >::singleton_mutex_ [static, private]

Definition at line 131 of file singleton.h.

template<class T >
boost::shared_ptr< T > micros_swarm::Singleton< T >::singleton_object_ [static, private]

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 Thu Jun 6 2019 18:52:14