ATLAS Offline Software
Static Public Member Functions | Private Attributes | List of all members
ExpressionParsing::ProxyLoaderSingleton Class Reference

#include <ProxyLoaderSingleton.h>

Inheritance diagram for ExpressionParsing::ProxyLoaderSingleton:
Collaboration diagram for ExpressionParsing::ProxyLoaderSingleton:

Static Public Member Functions

static IProxyLoadergetInstance ()
 
static void setInstance (IProxyLoader *proxyLoader)
 
static const EncapsulatingSingletongetSingleton ()
 

Private Attributes

IProxyLoaderm_pointer
 

Detailed Description

Definition at line 25 of file ProxyLoaderSingleton.h.

Member Function Documentation

◆ getInstance()

static IProxyLoader * ExpressionParsing::EncapsulatingSingleton< IProxyLoader >::getInstance
inlinestaticinherited

Definition at line 24 of file EncapsulatingSingleton.h.

24  {
26  if (!instance.m_pointer) {
27  throw std::runtime_error("EncapsulatingSingleton: Error - no instance loaded.");
28  }
29  return instance.m_pointer;
30  }

◆ getSingleton()

Definition at line 40 of file EncapsulatingSingleton.h.

40  {
41  static const EncapsulatingSingleton instance;
42  return instance;
43  }

◆ setInstance()

static void ExpressionParsing::EncapsulatingSingleton< IProxyLoader >::setInstance ( IProxyLoader proxyLoader)
inlinestaticinherited

Definition at line 32 of file EncapsulatingSingleton.h.

32  {
34  if (instance.m_pointer) {
35  delete instance.m_pointer;
36  }
37  instance.m_pointer = proxyLoader;
38  }

Member Data Documentation

◆ m_pointer

Definition at line 60 of file EncapsulatingSingleton.h.


The documentation for this class was generated from the following file:
ExpressionParsing::EncapsulatingSingleton< IProxyLoader >::EncapsulatingSingleton
EncapsulatingSingleton()
Definition: EncapsulatingSingleton.h:46
instance
std::map< std::string, double > instance
Definition: Run_To_Get_Tags.h:8
ExpressionParsing::EncapsulatingSingleton< IProxyLoader >::getSingleton
static const EncapsulatingSingleton & getSingleton()
Definition: EncapsulatingSingleton.h:40