ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepInstanceTree.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DefaultHepRepInstanceTree.cc
1 // Copyright FreeHEP, 2005.
2 
4 
5 using namespace std;
6 using namespace HEPREP;
7 
11 namespace cheprep {
12 
13 DefaultHepRepInstanceTree::DefaultHepRepInstanceTree(string aName, string aVersion, HepRepTreeID* aTypeTree)
14  : DefaultHepRepTreeID(aName, aVersion), typeTree(aTypeTree) {
15 }
16 
18  for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
19  delete (*i1);
20  }
21  instances.clear();
22 }
23 
25  cerr << "DefaultHepRepInstanceTree::overlay(HepRepInstanceTree * instanceTree) not implemented." << endl;
26 }
27 
29  cerr << "DefaultHepRepInstanceTree::copy(HepRepTypeTree*, HepRepSelectFilter*) not implemented." << endl;
30  return NULL;
31 }
32 
34  instances.push_back(instance);
35 }
36 
38  cerr << "DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) not implemented." << endl;
39 }
40 
41 vector<HepRepInstance*> DefaultHepRepInstanceTree::getInstances() {
42  return instances;
43 }
44 
46  instanceTrees.push_back(treeID);
47 }
48 
50  return typeTree;
51 }
52 
54  return instanceTrees;
55 }
56 
57 } // cheprep
58