Class Reference for E1039 Core & Analysis Software
VariableArrayContainer.cc
Go to the documentation of this file.
2 #include "VariableArray.h"
3 
4 #include <TObjArray.h>
5 
7 
8 using namespace std;
9 
11 {
12  arraycontainer = new TObjArray();
13  return;
14 }
15 
17 {
18  TObjArrayIter *iter = new TObjArrayIter(arraycontainer);
19  while(VariableArray *vararray = dynamic_cast<VariableArray *> (iter->Next()))
20  {
21  delete vararray;
22  }
23  delete iter;
24  delete arraycontainer;
25  return;
26 }
27 
28 void
30 {
31  os << "contain ObjCont" << endl;
32  return;
33 }
34 
35 void
37 {
38  arraycontainer->Add(var);
39  cout << "Adding " << var->GetName() << endl;
40  return;
41 }
42 
43 void
45 {
46  TObjArrayIter *iter = new TObjArrayIter(arraycontainer);
47  while(VariableArray *vararray = dynamic_cast<VariableArray *> (iter->Next()))
48  {
49  vararray->Reset();
50  }
51  delete iter;
52  return;
53 }
ClassImp(VariableArrayContainer) using namespace std
void AddVarArray(VariableArray *var)
void identify(std::ostream &os=std::cout) const