PHX::ContiguousAllocator< AlignmentT > Class Template Reference

Class that allocates a contiguous chunk of memory for all fields. More...

#include <Phalanx_Allocator_Contiguous.hpp>

List of all members.

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

Detailed Description

template<typename AlignmentT>
class PHX::ContiguousAllocator< AlignmentT >

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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Friends
Generated on Wed Apr 13 10:05:54 2011 for Phalanx by  doxygen 1.6.3