22 template ostream &
operator <<
23 (ostream & stream,
const RegistryItem<RgBool> & r);
24 template ostream &
operator <<
25 (ostream & stream,
const RegistryItem<RgInt> & r);
26 template ostream &
operator <<
27 (ostream & stream,
const RegistryItem<RgDbl> & r);
28 template ostream &
operator <<
29 (ostream & stream,
const RegistryItem<RgStr> & r);
30 template ostream &
operator <<
31 (ostream & stream,
const RegistryItem<RgAlg> & r);
32 template ostream &
operator <<
33 (ostream & stream,
const RegistryItem<RgH1F> & r);
34 template ostream &
operator <<
35 (ostream & stream,
const RegistryItem<RgH2F> & r);
36 template ostream &
operator <<
37 (ostream & stream,
const RegistryItem<RgTree> & r);
40 ostream & operator << (ostream & stream, const RegistryItem<T> & rec)
68 if (fItem)
delete fItem;
73 if (fItem)
delete fItem;
78 if (fItem)
delete fItem;
129 stream << ((fIsLocked) ?
"[ locked]" :
"[unlocked]")
131 << ((fIsLocal) ?
"[l]" :
"[g]")
138 stream << ((fIsLocked) ?
"[ locked]" :
"[unlocked]")
140 << ((fIsLocal) ?
"[l]" :
"[g]")
147 TH1F * histo =
dynamic_cast<TH1F *
>(fItem);
148 if(!histo) stream <<
"*** NULL RgH1F ***";
150 stream << ((fIsLocked) ?
"[ locked]" :
"[unlocked]")
152 << ((fIsLocal) ?
"[l]" :
"[g]")
154 << (histo ? histo->GetName() :
"NULL");
159 TH2F * histo =
dynamic_cast<TH2F *
>(fItem);
160 if(!histo) stream <<
"*** NULL RgH2F ***";
162 stream << ((fIsLocked) ?
"[ locked]" :
"[unlocked]")
164 << ((fIsLocal) ?
"[l]" :
"[g]")
166 << (histo ? histo->GetName() :
"NULL");
171 TTree * tree =
dynamic_cast<TTree *
>(fItem);
172 if(!tree) stream <<
"*** NULL RgTree ***";
174 stream << ((fIsLocked) ?
"[ locked]" :
"[unlocked]")
176 << ((fIsLocal) ?
"[l]" :
"[g]")
178 << (tree ? tree->GetName() :
"NULL");
enum genie::ERgType RgType_t
void Print(ostream &stream) const
RgType_t TypeInfo(void) const
RegistryItemI * Clone(void) const
A templated concrete implementation of the RegistryItemI interface. Provides an arbitrary basic type ...