Geant4_10
DefaultHepRepInstanceTree.cc
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 
4 
5 using namespace std;
6 using namespace HEPREP;
7 
12 namespace cheprep {
13 
14 DefaultHepRepInstanceTree::DefaultHepRepInstanceTree(string aName, string aVersion, HepRepTreeID* aTypeTree)
15  : DefaultHepRepTreeID(aName, aVersion), typeTree(aTypeTree) {
16 }
17 
19  for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
20  delete (*i1);
21  }
22  instances.clear();
23 }
24 
26  cerr << "DefaultHepRepInstanceTree::overlay(HepRepInstanceTree * instanceTree) not implemented." << endl;
27 }
28 
30  cerr << "DefaultHepRepInstanceTree::copy(HepRepTypeTree*, HepRepSelectFilter*) not implemented." << endl;
31  return NULL;
32 }
33 
35  instances.push_back(instance);
36 }
37 
39  cerr << "DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) not implemented." << endl;
40 }
41 
42 vector<HepRepInstance*> DefaultHepRepInstanceTree::getInstances() {
43  return instances;
44 }
45 
47  instanceTrees.push_back(treeID);
48 }
49 
51  return typeTree;
52 }
53 
55  return instanceTrees;
56 }
57 
58 } // cheprep
59 
std::vector< HEPREP::HepRepTreeID * > getInstanceTreeList()
std::vector< HEPREP::HepRepInstance * > getInstances()
void overlay(HEPREP::HepRepInstanceTree *instanceTree)
void addInstanceTree(HEPREP::HepRepTreeID *treeID)
void addInstance(HEPREP::HepRepInstance *instance)
void removeInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstanceTree * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepSelectFilter *filter)