Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
JSONSingleton< T > Class Template Reference

#include <JSONSingleton.h>

Static Public Member Functions

static T get (void)
 
static void set (T p)
 
static T get (void)
 
static void set (T p)
 

Private Member Functions

 JSONSingleton ()
 
 JSONSingleton (const JSONSingleton< T > &)
 
JSONSingleton< T > operator= (const JSONSingleton< T > &)
 
 JSONSingleton ()
 
 JSONSingleton (const JSONSingleton< T > &)
 
JSONSingleton< T > operator= (const JSONSingleton< T > &)
 

Static Private Member Functions

static JSONSingleton< T > * get_singleton (void)
 
static JSONSingleton< T > * get_singleton (void)
 

Private Attributes

ptr
 

Constructor & Destructor Documentation

template<typename T>
JSONSingleton< T >::JSONSingleton ( )
inlineprivate
13 : ptr(NULL) { }
T ptr
Definition: JSONSingleton.h:20
template<typename T>
JSONSingleton< T >::JSONSingleton ( const JSONSingleton< T > &  )
private
template<typename T>
JSONSingleton< T >::JSONSingleton ( )
inlineprivate
13 : ptr(NULL) { }
T ptr
Definition: JSONSingleton.h:20
template<typename T>
JSONSingleton< T >::JSONSingleton ( const JSONSingleton< T > &  )
private

Member Function Documentation

template<typename T>
static T JSONSingleton< T >::get ( void  )
inlinestatic

References JSONSingleton< T >::get_singleton(), and JSONSingleton< T >::ptr.

6  {
7  return get_singleton() -> ptr;
8  }
T ptr
Definition: JSONSingleton.h:20
static JSONSingleton< T > * get_singleton(void)
Definition: JSONSingleton.h:16

Here is the call graph for this function:

template<typename T>
static T JSONSingleton< T >::get ( void  )
inlinestatic

References JSONSingleton< T >::get_singleton(), and JSONSingleton< T >::ptr.

6  {
7  return get_singleton() -> ptr;
8  }
T ptr
Definition: JSONSingleton.h:20
static JSONSingleton< T > * get_singleton(void)
Definition: JSONSingleton.h:16

Here is the call graph for this function:

template<typename T>
static JSONSingleton<T>* JSONSingleton< T >::get_singleton ( void  )
inlinestaticprivate
16  {
17  static JSONSingleton<T> instance;
18  return &instance;
19  }
Definition: JSONSingleton.h:4
template<typename T>
static JSONSingleton<T>* JSONSingleton< T >::get_singleton ( void  )
inlinestaticprivate

Referenced by JSONSingleton< T >::get(), and JSONSingleton< T >::set().

16  {
17  static JSONSingleton<T> instance;
18  return &instance;
19  }
Definition: JSONSingleton.h:4

Here is the caller graph for this function:

template<typename T>
JSONSingleton<T> JSONSingleton< T >::operator= ( const JSONSingleton< T > &  )
private
template<typename T>
JSONSingleton<T> JSONSingleton< T >::operator= ( const JSONSingleton< T > &  )
private
template<typename T>
static void JSONSingleton< T >::set ( p)
inlinestatic

References JSONSingleton< T >::get_singleton(), and JSONSingleton< T >::ptr.

9  {
10  get_singleton() -> ptr = p;
11  }
T ptr
Definition: JSONSingleton.h:20
static JSONSingleton< T > * get_singleton(void)
Definition: JSONSingleton.h:16

Here is the call graph for this function:

template<typename T>
static void JSONSingleton< T >::set ( p)
inlinestatic

References JSONSingleton< T >::get_singleton(), and JSONSingleton< T >::ptr.

9  {
10  get_singleton() -> ptr = p;
11  }
T ptr
Definition: JSONSingleton.h:20
static JSONSingleton< T > * get_singleton(void)
Definition: JSONSingleton.h:16

Here is the call graph for this function:

Member Data Documentation

template<typename T>
T JSONSingleton< T >::ptr
private

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