MFEM  v3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Protected Member Functions | Protected Attributes | List of all members
mfem::BaseArray Class Reference

Base class for array container. More...

#include <array.hpp>

Inherited by mfem::Array< bool >, mfem::Array< char >, mfem::Array< Dependency >, mfem::Array< double * >, mfem::Array< int >, mfem::Array< IntegrationPoint >, mfem::Array< ItemT * >, mfem::Array< mfem::BilinearFormIntegrator * >, mfem::Array< mfem::Coefficient * >, mfem::Array< mfem::Element * >, mfem::Array< mfem::IntegerSet * >, mfem::Array< mfem::IntegrationRule * >, mfem::Array< mfem::KnotVector * >, mfem::Array< mfem::LinearFormIntegrator * >, mfem::Array< mfem::Mesh::FaceInfo >, mfem::Array< mfem::NCMesh::Element * >, mfem::Array< mfem::NCMesh::Face * >, mfem::Array< mfem::NCMesh::Node * >, mfem::Array< mfem::NCMesh::RefStackItem >, mfem::Array< mfem::NonlinearFormIntegrator * >, mfem::Array< mfem::NURBSPatch * >, mfem::Array< mfem::Operator * >, mfem::Array< mfem::Poly_1D::Basis * >, mfem::Array< mfem::RefinementData * >, mfem::Array< mfem::SparseMatrix * >, mfem::Array< mfem::Vector * >, mfem::Array< mfem::Vertex >, mfem::Array< Option >, and mfem::Array< T >.

Protected Member Functions

 BaseArray ()
 
 BaseArray (int asize, int ainc, int elmentsize)
 Creates array of asize elements of size elementsize. More...
 
 ~BaseArray ()
 Free the allocated memory. More...
 
void GrowSize (int minsize, int elementsize)
 

Protected Attributes

void * data
 Pointer to data. More...
 
int size
 Size of the array. More...
 
int allocsize
 Size of the allocated memory. More...
 
int inc
 

Detailed Description

Base class for array container.

Definition at line 26 of file array.hpp.

Constructor & Destructor Documentation

mfem::BaseArray::BaseArray ( )
inlineprotected

Definition at line 39 of file array.hpp.

mfem::BaseArray::BaseArray ( int  asize,
int  ainc,
int  elmentsize 
)
protected

Creates array of asize elements of size elementsize.

Definition at line 20 of file array.cpp.

mfem::BaseArray::~BaseArray ( )
protected

Free the allocated memory.

Definition at line 35 of file array.cpp.

Member Function Documentation

void mfem::BaseArray::GrowSize ( int  minsize,
int  elementsize 
)
protected

Increases the allocsize of the array to be at least minsize. The current content of the array is copied to the newly allocated space. minsize must be > abs(allocsize).

Definition at line 41 of file array.cpp.

Member Data Documentation

int mfem::BaseArray::allocsize
protected

Size of the allocated memory.

Definition at line 34 of file array.hpp.

void* mfem::BaseArray::data
protected

Pointer to data.

Definition at line 30 of file array.hpp.

int mfem::BaseArray::inc
protected

Increment of allocated memory on overflow, inc = 0 doubles the array

Definition at line 37 of file array.hpp.

int mfem::BaseArray::size
protected

Size of the array.

Definition at line 32 of file array.hpp.


The documentation for this class was generated from the following files: