Public Member Functions | Protected Member Functions | Protected Attributes

Array1DSlice< T > Class Template Reference

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

Inheritance diagram for Array1DSlice< T >:
Array1D< T > ArrayNDSliceBase ArrayND< T > ValueSeries< T >

List of all members.

Public Member Functions

 Array1DSlice (ArrayND< T > &)
 Array1DSlice (const ArrayND< T > &)
 ~Array1DSlice ()
ValueSeries< T > * clone () const
get (int) const
void set (int, T)
const Array1DInfoinfo () 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 Array1DSlice< 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 >
Array1DSlice< T >::Array1DSlice ( ArrayND< T > &  source  )  [inline]
template<class T >
Array1DSlice< T >::Array1DSlice ( const ArrayND< T > &  source  )  [inline]
template<class T >
Array1DSlice< T >::~Array1DSlice (  )  [inline]

Member Function Documentation

template<class T >
ValueSeries< T > * Array1DSlice< T >::clone (  )  const [inline]
template<class T >
T Array1DSlice< T >::get ( int  pos  )  const [inline]
template<class T >
const ValueSeries< T > * Array1DSlice< T >::getStorage_ (  )  const [inline, protected]
template<class T >
const Array1DInfo & Array1DSlice< T >::info (  )  const [inline]
template<class T >
bool Array1DSlice< T >::isSettable (  )  const [inline]
template<class T >
void Array1DSlice< T >::set ( int  pos,
val 
) [inline]

Member Data Documentation

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