Overture
Version 25
|
simple multidimensional arrays More...
#include <ArraySimple.h>
Public Member Functions | |
ArraySimple () | |
default constructor | |
ArraySimple (const ArraySimple< T > &a) | |
copy constructor | |
template<int d1, int d2, int d3, int d4, int d5> | |
ArraySimple (const ArraySimpleFixed< T, d1, d2, d3, d4, d5 > &a) | |
copy from an ArraySimpleFixed | |
EXPLICIT | ArraySimple (int n1) |
EXPLICIT | ArraySimple (int n1, int n2) |
EXPLICIT | ArraySimple (int n1, int n2, int n3) |
EXPLICIT | ArraySimple (int n1, int n2, int n3, int n4) |
EXPLICIT | ArraySimple (int n1, int n2, int n3, int n4, int n5) |
~ArraySimple () | |
int | size () const |
int | size (const int &r_) const |
int | rank () const |
void | copy (const ArraySimple< T > &a) |
void | reference (ArraySimple< T > &a) |
T * | ptr () |
ArraySimple< T > & | operator= (const ArraySimple< T > &a) |
ArraySimple< T > & | operator= (const T &a) |
T & | operator[] (const int &i) |
const T & | operator[] (const int &i) const |
T & | operator() (const int &i0) |
const T & | operator() (const int &i0) const |
T & | operator() (const int &i0, const int &i1) |
const T & | operator() (const int &i0, const int &i1) const |
T & | operator() (int i0, int i1, int i2) |
const T & | operator() (int i0, int i1, int i2) const |
T & | operator() (int i0, int i1, int i2, int i3) |
const T & | operator() (int i0, int i1, int i2, int i3) const |
T & | operator() (int i0, int i1, int i2, int i3, int i4) |
const T & | operator() (int i0, int i1, int i2, int i3, int i4) const |
void | resize (int n1, int n2=-1, int n3=-1, int n4=-1, int n5=-1) |
resize the array, copying the data | |
void | redim (int n1, int n2=-1, int n3=-1, int n4=-1, int n5=-1) |
Protected Member Functions | |
void | allocate () |
void | destroy () |
Protected Member Functions inherited from AS_ReferenceCounting | |
AS_ReferenceCounting (bool startCounting=TRUE) | |
AS_ReferenceCounting (const AS_ReferenceCounting &ref) | |
~AS_ReferenceCounting () | |
int | numberOfReferences () const |
AS_ReferenceCounting & | operator= (const AS_ReferenceCounting &ref) |
int | breakReference () |
int | decrement () |
int | increment () |
simple multidimensional arrays
ArraySimple provides a simple array class for dealing with small arrays ( ~10x10 or so) Range checking is available by defining OV_DEBUG. The constructor sets the rank of an array which becomes immutable until a copy constructor is called or the array is destroyed. operator(), overloaded for the various ranks available (up to 4), provides Fortran like indexing. For arrays with a rank>1, it will be more efficient to compute the index inside the loop and use operator[] to access the element (no range checking is done, essentially the rank is ignored for []). This approach provides the compilers with a more easily optimizable loop.
|
inline |
default constructor
create a blank array, suitable only for copying to
|
inline |
copy constructor
|
inline |
copy from an ArraySimpleFixed
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by AdvancingFront::gatherExistingCandidates(), intersect2D(), and NurbsMapping::mapS().
|
inline |
|
inline |
Referenced by AdvancingFront::destroyFront(), AdvancingFront::initialize(), and Ugen::sealHoles3D().
|
inline |
|
inline |
resize the array, copying the data
Referenced by AdvancingFront::addPoint(), AdvancingFront::advanceFront(), UnstructuredGeometry::computeGeometry(), AdvancingFront::computeVertexCandidates(), MappedGridData::getUnstructuredPeriodicBC(), NurbsMapping::interpolateVolume(), NurbsMapping::mapS(), AdvancingFront::removeUnusedNodes(), CompositeGrid::setHybridConnectivity(), and unstructuredLink().
|
inline |
Referenced by UnstructuredMapping::addEntity(), AdvancingFront::advanceFront(), ArraySimple< int >::allocate(), ArraySimple< int >::ArraySimple(), AdvancingFront::computeFaceNormal(), AdvancingFront::computeTransformationAtPoint(), AdvancingFront::computeVertexCandidates(), ArraySimple< int >::copy(), UnstructuredMapping::entitiesAreEquivalent(), Face::Face(), idealVertexIteration(), insertFace(), AdvancingFront::isFaceConsistent2D(), AdvancingFront::isFaceConsistent3D(), makeTriTetFromNewVertex(), SimpleCurve::numberOfPoints(), ArraySimple< int >::operator=(), ArraySimple< int >::operator[](), optimize_one_node_move_to_center(), optimize_one_node_newton_fv(), optimize_one_node_steepest_descent(), ArraySimple< int >::resize(), CompositeGrid::setHybridConnectivity(), and unstructuredLink().
|
inline |