Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepInstanceTree.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
4
5using namespace std;
6using namespace HEPREP;
7
8/**
9 * @author Mark Donszelmann
10 */
11namespace cheprep {
12
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
41vector<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
std::vector< HEPREP::HepRepInstance * > getInstances()
void overlay(HEPREP::HepRepInstanceTree *instanceTree)
void removeInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepTreeID * > getInstanceTreeList()
void addInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstanceTree * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepSelectFilter *filter)
DefaultHepRepInstanceTree(std::string name, std::string version, HEPREP::HepRepTreeID *typeTree)
void addInstanceTree(HEPREP::HepRepTreeID *treeID)