#include <Material.h>
Definition at line 26 of file Material.h.
◆ ElementFraction() [1/3]
Trk::ElementFraction::ElementFraction |
( |
| ) |
|
|
inline |
Default Constructor.
Definition at line 29 of file Material.h.
29 : 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 32 of file Material.h.
33 : 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 36 of file Material.h.
37 : std::pair<unsigned char, unsigned char>(iz, ifrac) {}
◆ element()
unsigned int Trk::ElementFraction::element |
( |
| ) |
const |
|
inline |
Return in a nice format.
Definition at line 49 of file Material.h.
50 return static_cast<unsigned int>((*this).first);
◆ fraction()
double Trk::ElementFraction::fraction |
( |
| ) |
const |
|
inline |
Return in a nice format.
Definition at line 54 of file Material.h.
55 return (
static_cast<unsigned int>((*this).second)) * s_oneOverUcharMax;
◆ operator=()
ElementFraction& Trk::ElementFraction::operator= |
( |
const std::pair< unsigned char, unsigned char > & |
ef | ) |
|
|
inline |
assignment operator from base class
Definition at line 40 of file Material.h.
43 std::pair<unsigned char, unsigned char>::operator=(
ef);
The documentation for this class was generated from the following file: