Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepTypeTree.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
3#include <iostream>
4
6
7using namespace std;
8using namespace HEPREP;
9
10/**
11 * @author Mark Donszelmann
12 */
13namespace cheprep {
14
16 : DefaultHepRepTreeID(typeTree->getName(), typeTree->getVersion()) {
17 delete typeTree;
18}
19
21 for (vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
22 delete (*i1);
23 }
24}
25
27 cerr << "DefaultHepRepTypeTree::copy() not implemented." << endl;
28 return NULL;
29}
30
32 // FIXME should check if type already exists
33 types.push_back(type);
34}
35
37 return types;
38}
39
41 cerr << "DefaultHepRepTypeTree::getType(string) not implemented." << endl;
42 return NULL;
43}
44
45} // cheprep
HEPREP::HepRepTypeTree * copy()
std::vector< HEPREP::HepRepType * > getTypeList()
DefaultHepRepTypeTree(HEPREP::HepRepTreeID *typeTree)
HEPREP::HepRepType * getType(std::string name)
void addType(HEPREP::HepRepType *type)