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

#include <UnitInterpreterSingleton.h>

Inheritance diagram for ExpressionParsing::UnitInterpreterSingleton:
Collaboration diagram for ExpressionParsing::UnitInterpreterSingleton:

Static Public Member Functions

static IUnitInterpretergetInstance ()
 
static void setInstance (IUnitInterpreter *proxyLoader)
 
static const EncapsulatingSingletongetSingleton ()
 

Private Attributes

IUnitInterpreterm_pointer
 

Detailed Description

Definition at line 25 of file UnitInterpreterSingleton.h.

Member Function Documentation

◆ getInstance()

static IUnitInterpreter * ExpressionParsing::EncapsulatingSingleton< IUnitInterpreter >::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< IUnitInterpreter >::setInstance ( IUnitInterpreter 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< IUnitInterpreter >::EncapsulatingSingleton
EncapsulatingSingleton()
Definition: EncapsulatingSingleton.h:46
instance
std::map< std::string, double > instance
Definition: Run_To_Get_Tags.h:8
ExpressionParsing::EncapsulatingSingleton< IUnitInterpreter >::getSingleton
static const EncapsulatingSingleton & getSingleton()
Definition: EncapsulatingSingleton.h:40