Overture
Version 25
|
#include <SparseArray.h>
Public Types | |
typedef SPARSE_MAP< int, T, std::less< int > > | SmapType |
Public Member Functions | |
SparseArray (int n0=0, int n1=1, int n2=1, int n3=1, int n4=1, int n5=1) | |
~SparseArray () | |
const T & | operator() (int i0, int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const |
void | clear () |
void | destroy () |
T & | get (int i0=0, int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) |
void | redim (int n0, int n1=1, int n2=1, int n3=1, int n4=1, int n5=1) |
void | set (const T &value, int i0, int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) |
void | setDefaultValue (const T &value) |
int | size () const |
int | size (int d) const |
int | sparseSize () const |
Protected Member Functions | |
int | boundsCheck (int i0, int i1, int i2, int i3, int i4, int i5) const |
Protected Attributes | |
SPARSE_MAP< int, T, std::less < int > > | smap |
int | dims [MAX_SPARSE_ARRAY_DIMS] |
T | defaultValue |
typedef SPARSE_MAP<int, T, std::less<int> > SparseArray< T >::SmapType |
SparseArray< T >::SparseArray | ( | int | n0 = 0 , |
int | n1 = 1 , |
||
int | n2 = 1 , |
||
int | n3 = 1 , |
||
int | n4 = 1 , |
||
int | n5 = 1 |
||
) |
SparseArray< T >::~SparseArray | ( | ) |
|
protected |
References Overture::abort(), i2, and MAX_SPARSE_ARRAY_DIMS.
void SparseArray< T >::clear | ( | ) |
void SparseArray< T >::destroy | ( | ) |
T & SparseArray< T >::get | ( | int | i0 = 0 , |
int | i1 = 0 , |
||
int | i2 = 0 , |
||
int | i3 = 0 , |
||
int | i4 = 0 , |
||
int | i5 = 0 |
||
) |
References SPARSE_INDEX.
Referenced by CompositeGridData::convertLocalInterpolationData(), Mapping::findNearestGridPoint(), ParallelOverlappingGridInterpolator::initializeExplicitInterpolation(), InterpolatePointsOnAGrid::initializeExplicitInterpolation(), Mapping::inverseMapS(), DataPointMapping::mapS(), InterpolatePointsOnAGrid::parallelSetup(), and ParallelOverlappingGridInterpolator::setup().
const T & SparseArray< T >::operator() | ( | int | i0, |
int | i1 = 0 , |
||
int | i2 = 0 , |
||
int | i3 = 0 , |
||
int | i4 = 0 , |
||
int | i5 = 0 |
||
) | const |
References i2, and SPARSE_INDEX.
void SparseArray< T >::redim | ( | int | n0, |
int | n1 = 1 , |
||
int | n2 = 1 , |
||
int | n3 = 1 , |
||
int | n4 = 1 , |
||
int | n5 = 1 |
||
) |
void SparseArray< T >::set | ( | const T & | value, |
int | i0, | ||
int | i1 = 0 , |
||
int | i2 = 0 , |
||
int | i3 = 0 , |
||
int | i4 = 0 , |
||
int | i5 = 0 |
||
) |
References SPARSE_INDEX.
void SparseArray< T >::setDefaultValue | ( | const T & | value | ) |
int SparseArray< T >::size | ( | ) | const |
References MAX_SPARSE_ARRAY_DIMS.
Referenced by ParallelOverlappingGridInterpolator::destroy(), and InterpolatePointsOnAGrid::destroy().
int SparseArray< T >::size | ( | int | d | ) | const |
References MAX_SPARSE_ARRAY_DIMS.
int SparseArray< T >::sparseSize | ( | ) | const |
|
protected |
|
protected |
|
protected |