Public Types | |
enum | EPriority { EPriority::kUser = 0, EPriority::kValFile = 1, EPriority::kRootFile = 2, EPriority::kDefault = 999999 } |
Public Member Functions | |
GValue () | |
GValue (const char *name) | |
GValue (const char *name, double value, EPriority priority=EPriority::kUser) | |
GValue (const GValue &val) | |
bool | AppendValue (GValue *) |
void | Copy (TObject &obj) const override |
const char * | GetInfo () const |
double | GetValue () |
void | Print (Option_t *opt="") const override |
std::string | PrintToString () const |
bool | ReplaceValue (GValue *) |
void | SetInfo (const char *temp) |
void | SetValue (double value) |
Static Public Member Functions | |
static bool | AddValue (GValue *, Option_t *opt="") |
static TList * | AllValues () |
static void | Clear () |
static GValue * | FindValue (const std::string &="") |
static GValue * | Get (std::string name="") |
static GValue * | GetDefaultValue () |
static int | ReadValFile (const char *filename="", Option_t *opt="replace") |
static void | SetReplaceValue (const std::string &name, double value, EPriority priority=EPriority::kUser) |
static int | Size () |
static double | Value (const std::string &) |
static std::string | WriteToBuffer (Option_t *opt="") |
static int | WriteValFile (const std::string &filename="", Option_t *opt="") |
Private Member Functions | |
ClassDefOverride (GValue, 1) | |
Static Private Member Functions | |
static int | ParseInputData (const std::string &input, EPriority priority, Option_t *opt="") |
static void | trim (std::string *, const std::string &trimChars=" \\\) |
Private Attributes | |
EPriority | fPriority |
double | fValue {0.} |
std::string | info |
Static Private Attributes | |
static GValue * | fDefaultValue = new GValue("GValue", sqrt(-1)) |
static std::map< std::string, GValue * > | fValueVector |
#include <GValue.h>
|
strong |
GValue::GValue | ( | ) |
Definition at line 16 of file GValue.cxx.
References kDefault.
Referenced by ParseInputData(), and SetReplaceValue().
GValue::GValue | ( | const char * | name | ) |
Definition at line 25 of file GValue.cxx.
References kDefault.
GValue::GValue | ( | const char * | name, |
double | value, | ||
EPriority | priority = EPriority::kUser |
||
) |
Definition at line 20 of file GValue.cxx.
GValue::GValue | ( | const GValue & | val | ) |
Definition at line 29 of file GValue.cxx.
References Copy().
|
static |
Definition at line 103 of file GValue.cxx.
References FindValue(), fValueVector, and ReplaceValue().
Referenced by ParseInputData(), and SetReplaceValue().
|
inlinestatic |
Definition at line 34 of file GValue.h.
References fValueVector.
bool GValue::AppendValue | ( | GValue * | oldvalue | ) |
Definition at line 73 of file GValue.cxx.
References fPriority, GetInfo(), GetValue(), SetInfo(), and SetValue().
Referenced by ParseInputData().
|
private |
|
static |
Definition at line 182 of file GValue.cxx.
References fValueVector.
|
override |
Definition at line 34 of file GValue.cxx.
References fPriority, and fValue.
Referenced by GValue(), and ReplaceValue().
|
static |
Definition at line 61 of file GValue.cxx.
References fValueVector, and GetDefaultValue().
Referenced by AddValue(), Get(), ParseInputData(), and SetReplaceValue().
|
inlinestatic |
Definition at line 32 of file GValue.h.
References FindValue().
Referenced by TAnalysisWriteLoop::Write(), TFragWriteLoop::Write(), TFragHistLoop::Write(), and TAnalysisHistLoop::Write().
|
inlinestatic |
|
inline |
|
inline |
|
staticprivate |
Definition at line 228 of file GValue.cxx.
References AddValue(), AppendValue(), FindValue(), fPriority, GValue(), SetInfo(), SetValue(), and trim().
Referenced by ReadValFile().
|
override |
Definition at line 141 of file GValue.cxx.
References PrintToString().
std::string GValue::PrintToString | ( | ) | const |
|
static |
Definition at line 192 of file GValue.cxx.
References kValFile, and ParseInputData().
Referenced by TGRSIint::SetupPipeline(), and TGRSISelector::SlaveBegin().
bool GValue::ReplaceValue | ( | GValue * | oldvalue | ) |
Definition at line 94 of file GValue.cxx.
References Copy(), and fPriority.
Referenced by AddValue().
|
inline |
Definition at line 23 of file GValue.h.
References info.
Referenced by AppendValue(), and ParseInputData().
|
static |
Definition at line 49 of file GValue.cxx.
References AddValue(), FindValue(), fPriority, GValue(), and SetValue().
|
inline |
Definition at line 22 of file GValue.h.
References fValue.
Referenced by AppendValue(), ParseInputData(), and SetReplaceValue().
|
inlinestatic |
Definition at line 55 of file GValue.h.
References fValueVector.
Referenced by TGRSISelector::SlaveBegin(), TAnalysisWriteLoop::Write(), TFragWriteLoop::Write(), TFragHistLoop::Write(), TAnalysisHistLoop::Write(), and WriteToBuffer().
|
staticprivate |
Definition at line 317 of file GValue.cxx.
Referenced by ParseInputData().
|
static |
Definition at line 41 of file GValue.cxx.
References fValueVector.
Referenced by TRuntimeObjects::GetVariable().
|
static |
Definition at line 168 of file GValue.cxx.
References fValueVector, and Size().
|
static |
Definition at line 146 of file GValue.cxx.
References fValueVector.
Definition at line 64 of file GValue.h.
Referenced by GetDefaultValue().
|
private |
Definition at line 62 of file GValue.h.
Referenced by AppendValue(), Copy(), ParseInputData(), ReplaceValue(), and SetReplaceValue().
|
private |
Definition at line 61 of file GValue.h.
Referenced by Copy(), GetValue(), PrintToString(), and SetValue().
|
staticprivate |
Definition at line 65 of file GValue.h.
Referenced by AddValue(), AllValues(), Clear(), FindValue(), Size(), Value(), WriteToBuffer(), and WriteValFile().
|
private |
Definition at line 63 of file GValue.h.
Referenced by GetInfo(), PrintToString(), and SetInfo().