Geant4 9.6.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 * @version $Id: DefaultHepRepTypeTree.cc,v 1.7 2005-06-02 21:28:45 duns Exp $
13 */
14namespace cheprep {
15
17 : DefaultHepRepTreeID(typeTree->getName(), typeTree->getVersion()) {
18 delete typeTree;
19}
20
22 for (vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
23 delete (*i1);
24 }
25}
26
28 cerr << "DefaultHepRepTypeTree::copy() not implemented." << endl;
29 return NULL;
30}
31
33 // FIXME should check if type already exists
34 types.push_back(type);
35}
36
38 return types;
39}
40
42 cerr << "DefaultHepRepTypeTree::getType(string) not implemented." << endl;
43 return NULL;
44}
45
46} // cheprep
HEPREP::HepRepTypeTree * copy()
std::vector< HEPREP::HepRepType * > getTypeList()
DefaultHepRepTypeTree(HEPREP::HepRepTreeID *typeTree)
HEPREP::HepRepType * getType(std::string name)
void addType(HEPREP::HepRepType *type)