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

#include <Karto.h>

Public Member Functions

T * Get ()
 
 Singleton ()
 
virtual ~Singleton ()
 

Private Member Functions

const Singletonoperator= (const Singleton &)
 
 Singleton (const Singleton &)
 

Private Attributes

T * m_pPointer
 

Detailed Description

template<class T>
class karto::Singleton< T >

Singleton class ensures only one instance of T is created

Definition at line 209 of file Karto.h.

Constructor & Destructor Documentation

◆ Singleton() [1/2]

template<class T>
karto::Singleton< T >::Singleton ( )
inline

Constructor

Definition at line 215 of file Karto.h.

◆ ~Singleton()

template<class T>
virtual karto::Singleton< T >::~Singleton ( )
inlinevirtual

Destructor

Definition at line 223 of file Karto.h.

◆ Singleton() [2/2]

template<class T>
karto::Singleton< T >::Singleton ( const Singleton< T > &  )
private

Member Function Documentation

◆ Get()

template<class T>
T* karto::Singleton< T >::Get ( )
inline

Gets the singleton

Returns
singleton

Definition at line 232 of file Karto.h.

◆ operator=()

template<class T>
const Singleton& karto::Singleton< T >::operator= ( const Singleton< T > &  )
private

Member Data Documentation

◆ m_pPointer

template<class T>
T* karto::Singleton< T >::m_pPointer
private

Definition at line 246 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Sat Oct 3 2020 03:51:02