12 #ifndef ROOT_TParameter
13 #define ROOT_TParameter
24 #ifndef ROOT_Riostream
36 #ifndef ROOT_TCollection
48 template <
class AParamType>
79 void SetVal(
const AParamType &val) { fVal = val; }
90 if (mergemode ==
'*') {
92 }
else if (mergemode ==
'M') {
94 }
else if (mergemode ==
'm') {
96 }
else if (mergemode ==
'f') {
98 }
else if (mergemode ==
'l') {
108 if (
this == obj)
return 0;
115 std::cout <<
"OBJ: " <<
IsA()->
GetName() <<
"\t" << fName <<
" = " << fVal << std::endl;
121 std::cout <<
IsA()->
GetName() <<
"\t" << fName <<
" = " << fVal << std::endl;
129 template <
class AParamType>
139 if (fVal != c->
GetVal()) ResetBit(kIsConst);
143 }
else if (TestBit(kMax)) {
146 }
else if (TestBit(kMin)) {
149 }
else if (TestBit(kLast)) {
152 }
else if (!TestBit(kFirst)) {
179 }
else if (TestBit(kLast)) {
182 }
else if (!TestBit(kFirst) || TestBit(kMax)) {
virtual void ls(Option_t *) const
The ls function lists the contents of a class on stdout.
TParameter(const char *name, const AParamType &val, char mergemode)
void SetVal(const AParamType &val)
virtual Int_t Merge(TCollection *in)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual ULong_t Hash() const
Return hash value for this object.
#define ClassDef(name, id)
TParameter(const char *name, const AParamType &val)
void SetMergeMode(char mergemode= '+')
Named parameter, streamable and storable.
virtual Bool_t IsSortable() const
const char * GetName() const
Returns name of object.
Collection abstract base class.
Bool_t TestBit(UInt_t f) const
virtual const char * GetName() const
Returns name of object.
virtual void Print(Option_t *) const
This method must be overridden when a class wants to print itself.
virtual const char * GetName() const
Returns name of object.
virtual Int_t Compare(const TObject *obj) const
Compare abstract method.
Mother of all ROOT objects.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
const AParamType & GetVal() const
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.