Public Member Functions | Protected Member Functions | Protected Attributes

Array2DSlice< T > Class Template Reference

access-tool to another ArrayND with higher dimensionality. More...

Inheritance diagram for Array2DSlice< T >:
Array2D< T > ArrayNDSliceBase ArrayND< T >

List of all members.

Public Member Functions

 Array2DSlice (ArrayND< T > &)
 Array2DSlice (const ArrayND< T > &)
 ~Array2DSlice ()
get (int, int) const
void set (int, int, T)
const Array2DInfoinfo () const
bool isSettable () const

Protected Member Functions

const ValueSeries< T > * getStorage_ () const

Protected Attributes

bool writable_
ArrayND< T > & source_
OffsetValueSeries< T > * storage_

Detailed Description

template<class T>
class Array2DSlice< T >

access-tool to another ArrayND with higher dimensionality.

ArrayXDSlice is an ArrayND that is an access-tool to another ArrayND with higher dimensionality. It can be used to get Array1D through a Array3D cube. Use setPos(int,int) to set the fixed positions and leave out the positions that should vary. When all positions are set, call init().

To unset a position, set it to -1. If positions are unset, init has to be called prior to dataaccesing functions.


Constructor & Destructor Documentation

template<class T >
Array2DSlice< T >::Array2DSlice ( ArrayND< T > &  source  )  [inline]
template<class T >
Array2DSlice< T >::Array2DSlice ( const ArrayND< T > &  source  )  [inline]
template<class T >
Array2DSlice< T >::~Array2DSlice (  )  [inline]

Member Function Documentation

template<class T >
T Array2DSlice< T >::get ( int  pos0,
int  pos1 
) const [inline]
template<class T >
const ValueSeries< T > * Array2DSlice< T >::getStorage_ (  )  const [inline, protected]
template<class T >
const Array2DInfo & Array2DSlice< T >::info (  )  const [inline]
template<class T >
bool Array2DSlice< T >::isSettable (  )  const [inline]
template<class T >
void Array2DSlice< T >::set ( int  pos0,
int  pos1,
val 
) [inline]

Member Data Documentation

template<class T >
ArrayND<T>& Array2DSlice< T >::source_ [protected]
template<class T >
OffsetValueSeries<T>* Array2DSlice< T >::storage_ [mutable, protected]
template<class T >
bool Array2DSlice< T >::writable_ [protected]