|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| FullArray (std::vector< std::size_t > const &a_shape) | |
| FullArray (std::vector< std::size_t > const &a_shape, std::vector< double > const &a_flattenedValues) | |
| ~FullArray () | |
| std::size_t | size () const |
Public Attributes | |
| std::vector< std::size_t > | m_shape |
| std::vector< double > | m_flattenedValues |
The class for storing any GNDS array as a flattened full array. It is the array returned by the Array.constructArray method. Note, this class is never used to store a GNDS array node, but to provide a convenient way to access data in any of the ways an array can be stored compactly in GNDS.
| GIDI::Array::FullArray::FullArray | ( | std::vector< std::size_t > const & | a_shape | ) |
Constructs a FullArray using the arguments a_shape. The values for m_flattenedValues are set to 0.0.
| a_shape | [in] The shape of the full array. |
Definition at line 53 of file GIDI_arrays.cc.
| GIDI::Array::FullArray::FullArray | ( | std::vector< std::size_t > const & | a_shape, |
| std::vector< double > const & | a_flattenedValues ) |
Constructs a FullArray using the arguments a_shape and a_flattenedValues.
| a_shape | [in] The shape of the full array. |
| a_flattenedValues | [in] The values of the array. Its size must be the same has that specified by a_shape. |
Definition at line 68 of file GIDI_arrays.cc.
|
inline |
Definition at line 900 of file GIDI.hpp.
Referenced by MCGIDI::Distributions::CoherentElasticTNSL::CoherentElasticTNSL(), FullArray(), and FullArray().
| std::vector<double> GIDI::Array::FullArray::m_flattenedValues |
A std::vector<double> representing the flattened arrary.
Definition at line 898 of file GIDI.hpp.
Referenced by MCGIDI::Distributions::CoherentElasticTNSL::CoherentElasticTNSL(), FullArray(), FullArray(), and size().
| std::vector<std::size_t> GIDI::Array::FullArray::m_shape |
The shape of the array.
Definition at line 897 of file GIDI.hpp.
Referenced by FullArray(), and FullArray().