|
MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which represents a container for surface quantities. More...
#include <surface_quantity_container.h>
Public Member Functions | |
| void | addVectorQuantity (const VectorSurfaceQuantity &quantity) |
| Adds a vector quantity to the container. | |
| void | addCountQuantity (const CountSurfaceQuantity &quantity) |
| Adds a count quantity to the container. | |
| void | measureAll (TempSurfaceTallyData &temp_tally_data) |
| Measures all quantities in the container for a TempSurfaceTallyData object. | |
| SurfaceQuantityContainer | operator+ (SurfaceQuantityContainer &other) const |
| Overloads the + operator for SurfaceQuantityContainer. | |
| void | clear () |
| Clears the container of all quantities. | |
| std::unordered_map< VectorSurfaceQuantityType, VectorSurfaceQuantity > & | getVectorQuantities () |
| Gets the map of vector quantities in the container. | |
| std::unordered_map< CountSurfaceQuantityType, CountSurfaceQuantity > & | getCountQuantities () |
| Gets the map of count quantities in the container. | |
| void | setArea (double area) |
| Sets the area of the surface tally. | |
| double | getArea () const |
| Gets the area of the surface tally. | |
Private Attributes | |
| std::unordered_map< VectorSurfaceQuantityType, VectorSurfaceQuantity > | vector_quantities_ |
| std::unordered_map< CountSurfaceQuantityType, CountSurfaceQuantity > | count_quantities_ |
| double | area_ |
Class which represents a container for surface quantities.
Essentially a wrapper around a map of SurfaceQuantityType to their respective SurfaceQuantity objects. Allows users to specify which quantities they want to measure for a surface tally.
Definition at line 14 of file surface_quantity_container.h.
| void SurfaceQuantityContainer::addCountQuantity | ( | const CountSurfaceQuantity & | quantity | ) |
Adds a count quantity to the container.
| quantity | The count quantity to add to the container. |
| void SurfaceQuantityContainer::addVectorQuantity | ( | const VectorSurfaceQuantity & | quantity | ) |
Adds a vector quantity to the container.
| quantity | The vector quantity to add to the container. |
| double SurfaceQuantityContainer::getArea | ( | ) | const |
Gets the area of the surface tally.
| std::unordered_map< CountSurfaceQuantityType, CountSurfaceQuantity > & SurfaceQuantityContainer::getCountQuantities | ( | ) |
Gets the map of count quantities in the container.
| std::unordered_map< VectorSurfaceQuantityType, VectorSurfaceQuantity > & SurfaceQuantityContainer::getVectorQuantities | ( | ) |
Gets the map of vector quantities in the container.
| void SurfaceQuantityContainer::measureAll | ( | TempSurfaceTallyData & | temp_tally_data | ) |
Measures all quantities in the container for a TempSurfaceTallyData object.
| temp_tally_data | The TempSurfaceTallyData object to measure the quantities for. |
| SurfaceQuantityContainer SurfaceQuantityContainer::operator+ | ( | SurfaceQuantityContainer & | other | ) | const |
Overloads the + operator for SurfaceQuantityContainer.
| other | The SurfaceQuantityContainer to add to this SurfaceQuantityContainer. |
| void SurfaceQuantityContainer::setArea | ( | double | area | ) |
Sets the area of the surface tally.
| area | The area of the surface tally. |
|
private |
Definition at line 81 of file surface_quantity_container.h.
|
private |
Definition at line 80 of file surface_quantity_container.h.
|
private |
Definition at line 79 of file surface_quantity_container.h.