Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
n
o
p
r
s
t
z
Variables
Typedefs
b
d
f
g
h
i
n
p
s
t
u
y
Enumerations
Enumerator
_
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Enumerations
c
d
e
f
g
l
m
o
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
a
b
c
d
g
h
i
k
o
q
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
m
n
o
p
r
s
t
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
Enumerations
b
c
d
e
g
j
l
m
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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