Geant4 9.6.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 * @version $Id: DefaultHepRepInstanceTree.cc,v 1.11 2005-06-02 21:28:45 duns Exp $
11 */
12namespace cheprep {
13
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
42vector<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::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)