MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which represents a vector quantity for a volume tally. More...
#include <volume_quantity.h>
Public Types | |
using | ValueExtractor = std::function<double(const TempVolumeTallyData&)> |
ValueExtractor is a function that extracts necessary values from a TempVolumeTallyData object for a VectorVolumeQuantity. | |
Public Member Functions | |
VectorVolumeQuantity (VectorVolumeQuantityType type) | |
Constructor for the VectorVolumeQuantity class. | |
VectorVolumeQuantity | operator+ (VectorVolumeQuantity &other) const |
Overloads the + operator for VectorVolumeQuantity. | |
void | measure (TempVolumeTallyData &temp_volume_tally_data) |
Measures the VectorVolumeQuantity for a TempVolumeTallyData object. | |
VectorVolumeQuantityType | getType () const |
Returns the type of the VectorVolumeQuantity. | |
VectorValue & | getTotalValues () |
VectorValue & | getPrimaryValues () |
VectorValue & | getSingleIncoherentScatterValues () |
VectorValue & | getSingleCoherentScatterValues () |
VectorValue & | getMultipleScatterValues () |
Private Attributes | |
VectorVolumeQuantityType | type_ |
bool | totaled_ = false |
VectorValue | total_values_ |
VectorValue | primary_values_ |
VectorValue | single_incoherent_scatter_values_ |
VectorValue | single_coherent_scatter_values_ |
VectorValue | multiple_scatter_values_ |
ValueExtractor | valueExtractor_ |
Class which represents a vector quantity for a volume tally.
Essentially a wrapper around the VectorValue class but is specific to a measurement type
Definition at line 39 of file volume_quantity.h.
using VectorVolumeQuantity::ValueExtractor = std::function<double(const TempVolumeTallyData&)> |
ValueExtractor is a function that extracts necessary values from a TempVolumeTallyData object for a VectorVolumeQuantity.
temp_volume_tally_data | The TempVolumeTallyData object to extract the value from. |
Definition at line 47 of file volume_quantity.h.
|
explicit |
Constructor for the VectorVolumeQuantity class.
type | The type of the VectorVolumeQuantity to be measured. |
VectorVolumeQuantityType VectorVolumeQuantity::getType | ( | ) | const |
Returns the type of the VectorVolumeQuantity.
void VectorVolumeQuantity::measure | ( | TempVolumeTallyData & | temp_volume_tally_data | ) |
Measures the VectorVolumeQuantity for a TempVolumeTallyData object.
temp_volume_tally_data | The TempVolumeTallyData object to measure the VectorVolumeQuantity for. |
VectorVolumeQuantity VectorVolumeQuantity::operator+ | ( | VectorVolumeQuantity & | other | ) | const |
Overloads the + operator for VectorVolumeQuantity.
other | The VectorVolumeQuantity to add to this VectorVolumeQuantity. |
|
private |
Definition at line 89 of file volume_quantity.h.
|
private |
Definition at line 86 of file volume_quantity.h.
|
private |
Definition at line 88 of file volume_quantity.h.
|
private |
Definition at line 87 of file volume_quantity.h.
|
private |
Definition at line 85 of file volume_quantity.h.
|
private |
Definition at line 84 of file volume_quantity.h.
|
private |
Definition at line 83 of file volume_quantity.h.
|
private |
Definition at line 90 of file volume_quantity.h.