#include <Material.h>
Definition at line 61 of file Material.h.
◆ MaterialComposition() [1/6]
| Trk::MaterialComposition::MaterialComposition |
( |
| ) |
|
|
inline |
default constructors
Definition at line 64 of file Material.h.
64: std::vector<ElementFraction>() {}
◆ MaterialComposition() [2/6]
| Trk::MaterialComposition::MaterialComposition |
( |
const MaterialComposition & | | ) |
|
|
default |
◆ MaterialComposition() [3/6]
| Trk::MaterialComposition::MaterialComposition |
( |
MaterialComposition && | | ) |
|
|
default |
◆ ~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 72 of file Material.h.
73 {
75 for (std::size_t elvc = 0; elvc < iel.size() && !ifrac.empty(); ++elvc)
76 push_back(ElementFraction(iel.at(elvc), ifrac.at(elvc)));
77 }
virtual void reserve(size_t sz) override
Change the capacity of all aux data vectors.
◆ 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 80 of file Material.h.
81 {
83 for (
auto& efracIt : efracs)
push_back(efracIt);
84 }
◆ MaterialComposition() [6/6]
Copy constructor from base class.
Definition at line 87 of file Material.h.
88 : std::vector<ElementFraction>(mc) {}
◆ operator=() [1/4]
◆ operator=() [2/4]
assignment operator from base class
Definition at line 91 of file Material.h.
91 {
92 if (this != &mc) {
93 std::vector<ElementFraction>::operator=(mc);
94 }
95 return (*this);
96 }
◆ 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 99 of file Material.h.
100 {
103 for (
auto& efracIt : efracs)
push_back(efracIt);
104 return (*this);
105 }
void clear()
Empty the pool.
◆ operator=() [4/4]
◆ elements
| T std::vector< T >::elements |
|
inherited |
The documentation for this struct was generated from the following file: