MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which represents a count quantity for a surface tally. More...
#include <surface_quantity.h>
Public Types | |
using | ValueExtractor = std::function<bool(const TempSurfaceTallyData&)> |
ValueExtractor is a function that extracts necessary values from a TempSurfaceTallyData object for a CountSurfaceQuantity. | |
Public Member Functions | |
CountSurfaceQuantity (CountSurfaceQuantityType type) | |
Constructor for the CountSurfaceQuantity class. | |
CountSurfaceQuantity | operator+ (const CountSurfaceQuantity &other) const |
Overloads the + operator for CountSurfaceQuantity. | |
void | measure (TempSurfaceTallyData &temp_surface_tally_data) |
Measures the CountSurfaceQuantity for a TempSurfaceTallyData object. | |
CountSurfaceQuantityType | getType () const |
Returns the type of the CountSurfaceQuantity. | |
CountValue | getTotalValues () |
CountValue | getPrimaryValues () const |
CountValue | getSingleIncoherentScatterValues () const |
CountValue | getSingleCoherentScatterValues () const |
CountValue | getMultipleScatterValues () const |
Private Attributes | |
CountSurfaceQuantityType | type_ |
bool | totaled_ = false |
CountValue | total_values_ |
CountValue | primary_values_ |
CountValue | single_incoherent_scatter_values_ |
CountValue | single_coherent_scatter_values_ |
CountValue | multiple_scatter_values_ |
ValueExtractor | valueExtractor_ |
Class which represents a count quantity for a surface tally.
Essentially a wrapper around the CountValue class but is specific to a measurement type
Definition at line 102 of file surface_quantity.h.
using CountSurfaceQuantity::ValueExtractor = std::function<bool(const TempSurfaceTallyData&)> |
ValueExtractor is a function that extracts necessary values from a TempSurfaceTallyData object for a CountSurfaceQuantity.
temp_surface_tally_data | The TempSurfaceTallyData object to extract the value from. |
Definition at line 110 of file surface_quantity.h.
|
explicit |
Constructor for the CountSurfaceQuantity class.
type | The type of the CountSurfaceQuantity to be measured. |
CountSurfaceQuantityType CountSurfaceQuantity::getType | ( | ) | const |
Returns the type of the CountSurfaceQuantity.
void CountSurfaceQuantity::measure | ( | TempSurfaceTallyData & | temp_surface_tally_data | ) |
Measures the CountSurfaceQuantity for a TempSurfaceTallyData object.
temp_surface_tally_data | The TempSurfaceTallyData object to measure the CountSurfaceQuantity for. |
CountSurfaceQuantity CountSurfaceQuantity::operator+ | ( | const CountSurfaceQuantity & | other | ) | const |
Overloads the + operator for CountSurfaceQuantity.
other | The CountSurfaceQuantity to add to this CountSurfaceQuantity. |
|
private |
Definition at line 154 of file surface_quantity.h.
|
private |
Definition at line 151 of file surface_quantity.h.
|
private |
Definition at line 153 of file surface_quantity.h.
|
private |
Definition at line 152 of file surface_quantity.h.
|
private |
Definition at line 150 of file surface_quantity.h.
|
private |
Definition at line 149 of file surface_quantity.h.
|
private |
Definition at line 148 of file surface_quantity.h.
|
private |
Definition at line 155 of file surface_quantity.h.