Chombo + EB
3.2
|
Allocator for an array of vectors contiguous in memory. More...
#include <CHArray.H>
Public Member Functions | |
ArrayOfVectorAlloc () | |
void | define (const USz_t a_n) |
CHVector * | allocate (const USz_t size) |
void | deallocate (CHVector *p, const USz_t size) |
Private Attributes | |
Real * | vectorData |
USz_t | n |
bool | defined |
Allocator for an array of vectors contiguous in memory.
Useful for allocating an array of vectors which can be easily passed to Fortran, etc.
Example - 1D Array of 2 size 3 vectors
* * CHArray<CHVector, 1, ArZeroRow, ArSp::ArrayOfVectorAlloc> AV; * AV.getAllocator().define(3); * AV.define(2); * AV(0) = 1.1; * AV(1) = 1.9; * std::cout << AV << std::endl; *
|
inline |
|
inline |
References CH_assert, and CHArray< T, Rank, ArConf, Alloc >::define().
References IntVect::p().
|
private |
|
private |
|
private |