Class that allocates a contiguous chunk of memory for all fields. More...
#include <Phalanx_Allocator_Contiguous.hpp>
Public Member Functions | |
| void | reset () |
| void | addRequiredChunk (std::size_t size_of_data_type, std::size_t num_elements) |
| data_type_size is the size of a single element of the data type and num_elements is the number of elements of the data type that need to be allocated. | |
| void | setup () |
| Called after all byte requirements are registered. Allocates the contiguous array. | |
| template<class DataT > | |
| Teuchos::ArrayRCP< DataT > | allocate (std::size_t num_elements) |
| int | getTotalBytes () const |
Class that allocates a contiguous chunk of memory for all fields.
This class will allocate all fields for all data types in one contiguous chunk of memory. It is templated on AlignmentT which is the size that all variables should be aligned on.
1.7.6.1