ATLAS Offline Software
Static Public Member Functions | Static Private Attributes | List of all members
ExpressionParsing::Singleton< T_Derived > Class Template Reference

#include <Utils.h>

Collaboration diagram for ExpressionParsing::Singleton< T_Derived >:

Static Public Member Functions

static T_Derived & instance ()
 

Static Private Attributes

static CxxUtils::CachedUniquePtrT< T_Derived > s_instance ATLAS_THREAD_SAFE
 

Detailed Description

template<class T_Derived>
class ExpressionParsing::Singleton< T_Derived >

Definition at line 88 of file PhysicsAnalysis/CommonTools/ExpressionEvaluation/src/Utils.h.

Member Function Documentation

◆ instance()

template<class T_Derived >
static T_Derived& ExpressionParsing::Singleton< T_Derived >::instance ( )
inlinestatic

Definition at line 90 of file PhysicsAnalysis/CommonTools/ExpressionEvaluation/src/Utils.h.

90  {
91  if (!s_instance) {
92  s_instance.set(std::make_unique<T_Derived>());
93  }
94  return *s_instance;
95  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

template<class T_Derived >
CxxUtils::CachedUniquePtrT<T_Derived> s_instance ExpressionParsing::Singleton< T_Derived >::ATLAS_THREAD_SAFE
staticprivate

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