MFEM  v3.3
Finite element discretization library
 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< double >, mfem::Array< HYPRE_Int >, mfem::Array< HYPRE_ParVector >, mfem::Array< int >, mfem::Array< IntegrationPoint >, mfem::Array< ItemT * >, mfem::Array< mfem::Array< int > * >, mfem::Array< mfem::BilinearFormIntegrator * >, mfem::Array< mfem::Coefficient * >, mfem::Array< mfem::Connection >, mfem::Array< mfem::DenseMatrix * >, mfem::Array< mfem::Element * >, mfem::Array< mfem::Embedding >, mfem::Array< mfem::IntegerSet * >, mfem::Array< mfem::IntegrationRule * >, mfem::Array< mfem::KnotVector * >, mfem::Array< mfem::LinearFormIntegrator * >, mfem::Array< mfem::Mesh::FaceInfo >, mfem::Array< mfem::Mesh::NCFaceInfo >, mfem::Array< mfem::MeshOperator * >, mfem::Array< mfem::NCMesh::Element * >, mfem::Array< mfem::NCMesh::ElemRefType >, mfem::Array< mfem::NCMesh::Face * >, mfem::Array< mfem::NCMesh::Node * >, mfem::Array< mfem::NonlinearFormIntegrator * >, mfem::Array< mfem::NURBSPatch * >, mfem::Array< mfem::Operator * >, mfem::Array< mfem::Poly_1D::Basis * >, mfem::Array< mfem::Refinement >, mfem::Array< mfem::SparseMatrix * >, mfem::Array< mfem::Vector * >, mfem::Array< mfem::Vertex >, mfem::Array< Option >, mfem::Array< socketstream * >, mfem::Array< unsigned char >, 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 27 of file array.hpp.

Constructor & Destructor Documentation

mfem::BaseArray::BaseArray ( )
inlineprotected

Definition at line 40 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 43 of file array.cpp.

Member Data Documentation

int mfem::BaseArray::allocsize
protected

Size of the allocated memory.

Definition at line 35 of file array.hpp.

void* mfem::BaseArray::data
protected

Pointer to data.

Definition at line 31 of file array.hpp.

int mfem::BaseArray::inc
protected

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

Definition at line 38 of file array.hpp.

int mfem::BaseArray::size
protected

Size of the array.

Definition at line 33 of file array.hpp.


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