#include <ElementTable.h>
Definition at line 24 of file ElementTable.h.
◆ ElementTable() [1/2]
Trk::ElementTable::ElementTable |
( |
| ) |
|
|
inline |
Empty constructor.
Definition at line 27 of file ElementTable.h.
29 m_names(
static_cast<size_t>(UCHAR_MAX), std::string(
"None")) {}
◆ ElementTable() [2/2]
◆ ~ElementTable()
Trk::ElementTable::~ElementTable |
( |
| ) |
|
◆ addElement() [1/2]
void Trk::ElementTable::addElement |
( |
const Material & |
mat, |
|
|
const std::string & |
mname = "" |
|
) |
| |
|
inline |
Add material to the Table - if the elment is already filled ignore.
Definition at line 75 of file ElementTable.h.
76 unsigned int Zint = (
unsigned int)
mat.Z;
◆ addElement() [2/2]
void Trk::ElementTable::addElement |
( |
std::unique_ptr< Material > |
mat, |
|
|
const std::string & |
mname |
|
) |
| |
|
inline |
Version that takes ownership of a pointer.
Definition at line 84 of file ElementTable.h.
85 unsigned int Zint = (
unsigned int)
mat->Z;
◆ contains()
bool Trk::ElementTable::contains |
( |
unsigned int |
Z | ) |
const |
|
inline |
◆ element()
const Material* Trk::ElementTable::element |
( |
unsigned int |
Z | ) |
const |
|
inline |
Get the material.
- it can be 0 - if the entry in the table is not filled
Definition at line 71 of file ElementTable.h.
◆ elementName()
const std::string& Trk::ElementTable::elementName |
( |
unsigned int |
Z | ) |
const |
|
inline |
◆ operator+=()
Adding two tables : add table entries from another table.
Definition at line 60 of file ElementTable.h.
61 for (
size_t ie = 0;
ie < size_t(UCHAR_MAX); ++
ie) {
◆ operator=()
Assignment operator.
Definition at line 44 of file ElementTable.h.
48 for (; elIter !=
m_table.end();
delete (*elIter), ++elIter)
51 for (
size_t im = 0;
im <
et.m_table.size(); ++
im) {
◆ size()
size_t Trk::ElementTable::size |
( |
| ) |
const |
|
inline |
◆ m_names
std::vector<std::string> Trk::ElementTable::m_names |
|
private |
◆ m_table
std::vector<Material*> Trk::ElementTable::m_table |
|
private |
The documentation for this class was generated from the following files: