1#ifndef MIDSX_VOLUME_QUANTITY_H
2#define MIDSX_VOLUME_QUANTITY_H
13enum class VectorVolumeQuantityType {
18namespace VectorVolumeQuantityHelper {
19 std::string toString(VectorVolumeQuantityType type);
25enum class CountVolumeQuantityType {
30namespace CountVolumeQuantityHelper {
31 std::string toString(CountVolumeQuantityType type);
83 VectorVolumeQuantityType type_;
84 bool totaled_ =
false;
134 CountValue getSingleIncoherentScatterValues()
const;
135 CountValue getSingleCoherentScatterValues()
const;
138 CountVolumeQuantityType type_;
139 bool totaled_ =
false;
Class which represents a count quantity. Used by the Tally classes to store simulation data.
std::function< bool(const TempVolumeTallyData &)> ValueExtractor
ValueExtractor is a function that extracts necessary values from a TempVolumeTallyData object for a C...
CountVolumeQuantity(CountVolumeQuantityType type)
Constructor for the CountVolumeQuantity class.
CountVolumeQuantityType getType() const
Returns the type of the CountVolumeQuantity.
CountVolumeQuantity operator+(const CountVolumeQuantity &other) const
Overloads the + operator for CountVolumeQuantity.
void measure(TempVolumeTallyData &temp_volume_tally_data)
Measures the CountVolumeQuantity for a TempVolumeTallyData object.
Class which represents a vector quantity. Used by the Tally classes to store simulation data.
Class which represents a vector quantity for a volume tally.
VectorVolumeQuantity(VectorVolumeQuantityType type)
Constructor for the VectorVolumeQuantity class.
VectorVolumeQuantityType getType() const
Returns the type of the VectorVolumeQuantity.
VectorVolumeQuantity operator+(VectorVolumeQuantity &other) const
Overloads the + operator for VectorVolumeQuantity.
void measure(TempVolumeTallyData &temp_volume_tally_data)
Measures the VectorVolumeQuantity for a TempVolumeTallyData object.
std::function< double(const TempVolumeTallyData &)> ValueExtractor
ValueExtractor is a function that extracts necessary values from a TempVolumeTallyData object for a V...
Struct which represents the temporary data for a volume tally.