![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
This class is intended as a base class for singletons, especially those that are written to file. The Get() function is written such that it reads the class from file if needed. This is the case if it hasn't been read yet, or if the gDirectory has been changed. This means in a loop over different input files, Get() will always return the info of the current file.
Definition at line 31 of file TSingleton.h.
Static Public Member Functions | |
static T * | AddCurrent () |
static T * | Get (bool verbose=false) |
static T * | GetAll () |
static void | PrintDirectory () |
static void | Set (T *val) |
Protected Member Functions | |
TSingleton ()=default | |
TSingleton (const TSingleton &)=default | |
TSingleton (TSingleton &&) noexcept=default | |
~TSingleton ()=default | |
TSingleton & | operator= (const TSingleton &)=default |
TSingleton & | operator= (TSingleton &&) noexcept=default |
Static Private Attributes | |
static TDirectory * | fDir = nullptr |
static T * | fSingleton = nullptr |
|
protecteddefault |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
protecteddefault |
|
inlinestatic |
Definition at line 141 of file TSingleton.h.
References CYAN, TSingleton< T >::fDir, TSingleton< T >::fSingleton, TSingleton< T >::Get(), and RESET_COLOR.
|
inlinestatic |
Definition at line 33 of file TSingleton.h.
References CYAN, TSingleton< T >::fDir, TSingleton< T >::fSingleton, RESET_COLOR, and TSingleton< T >::Set().
Referenced by TSingleton< T >::AddCurrent(), and TSingleton< T >::GetAll().
|
inlinestatic |
Definition at line 66 of file TSingleton.h.
References TSingleton< T >::fDir, TSingleton< T >::fSingleton, and TSingleton< T >::Get().
|
protecteddefault |
|
protecteddefaultnoexcept |
|
inlinestatic |
Definition at line 171 of file TSingleton.h.
References TSingleton< T >::fDir, and TSingleton< T >::fSingleton.
Referenced by TRunInfo::Print().
|
inlinestatic |
Definition at line 133 of file TSingleton.h.
References TSingleton< T >::fSingleton.
Referenced by TSingleton< T >::Get().