#include <Material.h>
Definition at line 27 of file Material.h.
◆ ElementFraction() [1/3]
| Trk::ElementFraction::ElementFraction |
( |
| ) |
|
|
inline |
Default Constructor.
Definition at line 30 of file Material.h.
30: std::pair<unsigned char, unsigned char>(0, 0) {}
◆ ElementFraction() [2/3]
| Trk::ElementFraction::ElementFraction |
( |
const std::pair< unsigned char, unsigned char > & | ef | ) |
|
|
inline |
Copy Constructor from base class.
Definition at line 33 of file Material.h.
34 : std::pair<unsigned char, unsigned char>(ef) {}
◆ ElementFraction() [3/3]
| Trk::ElementFraction::ElementFraction |
( |
unsigned char | iz, |
|
|
unsigned char | ifrac ) |
|
inline |
Constructor from arguments.
Definition at line 37 of file Material.h.
38 : std::pair<unsigned char, unsigned char>(iz, ifrac) {}
◆ element()
| unsigned int Trk::ElementFraction::element |
( |
| ) |
const |
|
inline |
Return in a nice format.
Definition at line 50 of file Material.h.
50 {
51 return static_cast<unsigned int>((*this).first);
52 }
◆ fraction()
| double Trk::ElementFraction::fraction |
( |
| ) |
const |
|
inline |
Return in a nice format.
Definition at line 55 of file Material.h.
55 {
57 }
static const double s_oneOverUcharMax
◆ operator=()
| ElementFraction & Trk::ElementFraction::operator= |
( |
const std::pair< unsigned char, unsigned char > & | ef | ) |
|
|
inline |
assignment operator from base class
Definition at line 41 of file Material.h.
42 {
43 if (this != &ef) {
44 std::pair<unsigned char, unsigned char>::operator=(ef);
45 }
46 return (*this);
47 }
◆ first_type
| T1 std::pair< T1, T2 >::first_type |
|
inherited |
◆ second_type
| T2 std::pair< T1, T2 >::second_type |
|
inherited |
The documentation for this class was generated from the following file: