Overture  Version 25
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SparseArray< T > Class Template Reference

#include <SparseArray.h>

Collaboration diagram for SparseArray< T >:
Collaboration graph
[legend]

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]
 
defaultValue
 

Member Typedef Documentation

template<class T>
typedef SPARSE_MAP<int, T, std::less<int> > SparseArray< T >::SmapType

Constructor & Destructor Documentation

template<class T >
SparseArray< T >::SparseArray ( int  n0 = 0,
int  n1 = 1,
int  n2 = 1,
int  n3 = 1,
int  n4 = 1,
int  n5 = 1 
)
template<class T >
SparseArray< T >::~SparseArray ( )

Member Function Documentation

template<class T >
int SparseArray< T >::boundsCheck ( int  i0,
int  i1,
int  i2,
int  i3,
int  i4,
int  i5 
) const
protected
template<class T >
void SparseArray< T >::clear ( )
template<class T >
void SparseArray< T >::destroy ( )
template<class T >
T & SparseArray< T >::get ( int  i0 = 0,
int  i1 = 0,
int  i2 = 0,
int  i3 = 0,
int  i4 = 0,
int  i5 = 0 
)
template<class T >
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.

template<class T >
void SparseArray< T >::redim ( int  n0,
int  n1 = 1,
int  n2 = 1,
int  n3 = 1,
int  n4 = 1,
int  n5 = 1 
)
template<class T>
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.

template<class T>
void SparseArray< T >::setDefaultValue ( const T &  value)
template<class T >
int SparseArray< T >::size ( ) const
template<class T >
int SparseArray< T >::size ( int  d) const

References MAX_SPARSE_ARRAY_DIMS.

template<class T >
int SparseArray< T >::sparseSize ( ) const

Member Data Documentation

template<class T>
T SparseArray< T >::defaultValue
protected
template<class T>
int SparseArray< T >::dims[MAX_SPARSE_ARRAY_DIMS]
protected
template<class T>
SPARSE_MAP<int, T, std::less<int> > SparseArray< T >::smap
protected

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