|
MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which represents a container for volume quantities. More...
#include <volume_quantity_container.h>
Public Member Functions | |
| void | addVectorQuantity (const VectorVolumeQuantity &quantity) |
| Adds a vector quantity to the container. | |
| void | addCountQuantity (const CountVolumeQuantity &quantity) |
| Adds a count quantity to the container. | |
| void | measureAll (TempVolumeTallyData &temp_tally_data) |
| Measures all quantities in the container for a TempVolumeTallyData object. | |
| VolumeQuantityContainer | operator+ (VolumeQuantityContainer &other) const |
| Overloads the + operator for VolumeQuantityContainer. | |
| void | clear () |
| Clears the container of all quantities. | |
| std::unordered_map< VectorVolumeQuantityType, VectorVolumeQuantity > & | getVectorQuantities () |
| Gets the map of vector quantities in the container. | |
| std::unordered_map< CountVolumeQuantityType, CountVolumeQuantity > & | getCountQuantities () |
| Gets the map of count quantities in the container. | |
| void | setVolume (double volume) |
| Sets the volume of the volume tally. | |
| double | getVolume () const |
| Gets the volume of the volume tally. | |
Private Attributes | |
| std::unordered_map< VectorVolumeQuantityType, VectorVolumeQuantity > | vector_quantities_ |
| std::unordered_map< CountVolumeQuantityType, CountVolumeQuantity > | count_quantities_ |
| double | volume_ |
Class which represents a container for volume quantities.
Essentially a wrapper around a map of VolumeQuantityType to their respective VolumeQuantity objects. Allows users to specify which quantities they want to measure for a volume tally.
Definition at line 15 of file volume_quantity_container.h.
| void VolumeQuantityContainer::addCountQuantity | ( | const CountVolumeQuantity & | quantity | ) |
Adds a count quantity to the container.
| quantity | The count quantity to add to the container. |
| void VolumeQuantityContainer::addVectorQuantity | ( | const VectorVolumeQuantity & | quantity | ) |
Adds a vector quantity to the container.
| quantity | The vector quantity to add to the container. |
| std::unordered_map< CountVolumeQuantityType, CountVolumeQuantity > & VolumeQuantityContainer::getCountQuantities | ( | ) |
Gets the map of count quantities in the container.
| std::unordered_map< VectorVolumeQuantityType, VectorVolumeQuantity > & VolumeQuantityContainer::getVectorQuantities | ( | ) |
Gets the map of vector quantities in the container.
| double VolumeQuantityContainer::getVolume | ( | ) | const |
Gets the volume of the volume tally.
| void VolumeQuantityContainer::measureAll | ( | TempVolumeTallyData & | temp_tally_data | ) |
Measures all quantities in the container for a TempVolumeTallyData object.
| temp_tally_data | The TempVolumeTallyData object to measure the quantities for. |
| VolumeQuantityContainer VolumeQuantityContainer::operator+ | ( | VolumeQuantityContainer & | other | ) | const |
Overloads the + operator for VolumeQuantityContainer.
| other | The VolumeQuantityContainer to add to this VolumeQuantityContainer. |
| void VolumeQuantityContainer::setVolume | ( | double | volume | ) |
Sets the volume of the volume tally.
| volume | The volume of the volume tally. |
|
private |
Definition at line 81 of file volume_quantity_container.h.
|
private |
Definition at line 80 of file volume_quantity_container.h.
|
private |
Definition at line 82 of file volume_quantity_container.h.