MFEM v2.0
|
Base class for array container. More...
#include <array.hpp>
Protected Member Functions | |
BaseArray () | |
BaseArray (int asize, int ainc, int elmentsize) | |
Creates array of asize elements of size elementsize. | |
~BaseArray () | |
Free the allocated memory. | |
void | GrowSize (int minsize, int elementsize) |
Protected Attributes | |
void * | data |
Pointer to data. | |
int | size |
Size of the array. | |
int | allocsize |
Size of the allocated memory. | |
int | inc |
BaseArray::BaseArray | ( | int | asize, |
int | ainc, | ||
int | elmentsize | ||
) | [protected] |
BaseArray::~BaseArray | ( | ) | [protected] |
void BaseArray::GrowSize | ( | int | minsize, |
int | elementsize | ||
) | [protected] |
int BaseArray::allocsize [protected] |
Size of the allocated memory.
Definition at line 32 of file array.hpp.
Referenced by BaseArray(), GrowSize(), Array< T >::MakeRef(), Swap(), and ~BaseArray().
void* BaseArray::data [protected] |
Pointer to data.
Definition at line 28 of file array.hpp.
Referenced by BaseArray(), GrowSize(), Array< T >::MakeRef(), Swap(), and ~BaseArray().
int BaseArray::inc [protected] |
Increment of allocated memory on overflow, inc = 0 doubles the array
Definition at line 35 of file array.hpp.
Referenced by BaseArray(), GrowSize(), Array< T >::MakeRef(), and Swap().
int BaseArray::size [protected] |
Size of the array.
Definition at line 30 of file array.hpp.
Referenced by BaseArray(), GrowSize(), Array< T >::MakeRef(), and Swap().