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
5
#include "
cheprep/DefaultHepRepTypeTree.h
"
6
7
using namespace
std;
8
using 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
*/
14
namespace
cheprep
{
15
16
DefaultHepRepTypeTree::DefaultHepRepTypeTree
(
HepRepTreeID
* typeTree)
17
:
DefaultHepRepTreeID
(typeTree->getName(), typeTree->getVersion()) {
18
delete
typeTree;
19
}
20
21
DefaultHepRepTypeTree::~DefaultHepRepTypeTree
() {
22
for
(vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
23
delete
(*i1);
24
}
25
}
26
27
HepRepTypeTree
*
DefaultHepRepTypeTree::copy
() {
28
cerr <<
"DefaultHepRepTypeTree::copy() not implemented."
<< endl;
29
return
NULL;
30
}
31
32
void
DefaultHepRepTypeTree::addType
(
HepRepType
* type) {
33
// FIXME should check if type already exists
34
types.push_back(type);
35
}
36
37
vector<HepRepType*>
DefaultHepRepTypeTree::getTypeList
() {
38
return
types;
39
}
40
41
HepRepType
*
DefaultHepRepTypeTree::getType
(
string
/*typeName*/
) {
42
cerr <<
"DefaultHepRepTypeTree::getType(string) not implemented."
<< endl;
43
return
NULL;
44
}
45
46
}
// cheprep
DefaultHepRepTypeTree.h
HEPREP::HepRepTreeID
Definition:
HepRepTreeID.h:21
HEPREP::HepRepTypeTree
Definition:
HepRepTypeTree.h:26
HEPREP::HepRepType
Definition:
HepRepType.h:24
cheprep::DefaultHepRepTreeID
Definition:
DefaultHepRepTreeID.h:17
cheprep::DefaultHepRepTypeTree::copy
HEPREP::HepRepTypeTree * copy()
Definition:
DefaultHepRepTypeTree.cc:27
cheprep::DefaultHepRepTypeTree::~DefaultHepRepTypeTree
~DefaultHepRepTypeTree()
Definition:
DefaultHepRepTypeTree.cc:21
cheprep::DefaultHepRepTypeTree::getTypeList
std::vector< HEPREP::HepRepType * > getTypeList()
Definition:
DefaultHepRepTypeTree.cc:37
cheprep::DefaultHepRepTypeTree::DefaultHepRepTypeTree
DefaultHepRepTypeTree(HEPREP::HepRepTreeID *typeTree)
Definition:
DefaultHepRepTypeTree.cc:16
cheprep::DefaultHepRepTypeTree::getType
HEPREP::HepRepType * getType(std::string name)
Definition:
DefaultHepRepTypeTree.cc:41
cheprep::DefaultHepRepTypeTree::addType
void addType(HEPREP::HepRepType *type)
Definition:
DefaultHepRepTypeTree.cc:32
HEPREP
Definition:
HasHepRep.h:12
cheprep
Definition:
AbstractXMLWriter.h:13
geant4-v9.6.0
source
visualization
HepRep
src
DefaultHepRepTypeTree.cc
Generated by
1.9.6