#include <Material.h>
Definition at line 60 of file Material.h.
◆ MaterialComposition() [1/6]
Trk::MaterialComposition::MaterialComposition |
( |
| ) |
|
|
inline |
default constructors
Definition at line 63 of file Material.h.
63 : std::vector<ElementFraction>() {}
◆ MaterialComposition() [2/6]
◆ MaterialComposition() [3/6]
◆ ~MaterialComposition()
Trk::MaterialComposition::~MaterialComposition |
( |
| ) |
|
|
inline |
◆ MaterialComposition() [4/6]
Trk::MaterialComposition::MaterialComposition |
( |
const std::vector< unsigned char > & |
iel, |
|
|
const std::vector< unsigned char > & |
ifrac |
|
) |
| |
|
inline |
constructor for persistency (1), size optimized
Definition at line 71 of file Material.h.
74 for (std::size_t elvc = 0; elvc < iel.size() && !ifrac.empty(); ++elvc)
75 push_back(ElementFraction(iel[elvc], ifrac[elvc]));
◆ MaterialComposition() [5/6]
Trk::MaterialComposition::MaterialComposition |
( |
const std::vector< std::pair< unsigned char, unsigned char > > & |
efracs | ) |
|
|
inline |
constructor for persistency (2), size optimized
Definition at line 79 of file Material.h.
81 reserve(efracs.size());
82 for (
auto& efracIt : efracs) push_back(efracIt);
◆ MaterialComposition() [6/6]
Copy constructor from base class.
Definition at line 86 of file Material.h.
87 : std::vector<ElementFraction>(
mc) {}
◆ operator=() [1/4]
◆ operator=() [2/4]
assignment operator from base class
Definition at line 90 of file Material.h.
92 std::vector<ElementFraction>::operator=(
mc);
◆ operator=() [3/4]
MaterialComposition& Trk::MaterialComposition::operator= |
( |
const std::vector< std::pair< unsigned char, unsigned char > > & |
efracs | ) |
|
|
inline |
assignment operator for persistency (2)
Definition at line 98 of file Material.h.
101 reserve(efracs.size());
102 for (
auto& efracIt : efracs) push_back(efracIt);
◆ operator=() [4/4]
◆ elements
T std::vector< T >::elements |
|
inherited |
The documentation for this struct was generated from the following file: