Public Member Functions | Protected Attributes

Array3DSubSelection< T > Class Template Reference

Inheritance diagram for Array3DSubSelection< T >:
Array3D< T > ArrayND< T >

List of all members.

Public Member Functions

 Array3DSubSelection (int start0, int start1, int start2, int sz0, int sz1, int sz2, Array3D< T > &data)
get (int, int, int) const
void set (int, int, int, T)
bool isOK () const
const Array3DInfoinfo () const

Protected Attributes

int start_ [3]
Array3DInfoImpl info_
Array3D< T > & src_

Detailed Description

template<class T>
class Array3DSubSelection< T >

Makes a subselection of an Array3D cube.


Constructor & Destructor Documentation

template<class T >
Array3DSubSelection< T >::Array3DSubSelection ( int  start0,
int  start1,
int  start2,
int  sz0,
int  sz1,
int  sz2,
Array3D< T > &  data 
)
Parameters:
start0 position of the subselection in data.
start1 position of the subselection in data.
start2 position of the subselection in data.
sz0 size of the subselection.
sz1 size of the subselection.
sz2 size of the subselection.
data The array in which the subselection is done.

Member Function Documentation

template<class T >
T Array3DSubSelection< T >::get ( int  s0,
int  s1,
int  s2 
) const [virtual]

Implements Array3D< T >.

template<class T >
const Array3DInfo & Array3DSubSelection< T >::info (  )  const [virtual]

Implements Array3D< T >.

template<class T >
bool Array3DSubSelection< T >::isOK (  )  const [virtual]

Reimplemented from ArrayND< T >.

template<class T >
void Array3DSubSelection< T >::set ( int  s0,
int  s1,
int  s2,
val 
) [virtual]

Implements Array3D< T >.


Member Data Documentation

template<class T >
Array3DInfoImpl Array3DSubSelection< T >::info_ [protected]
template<class T >
Array3D<T>& Array3DSubSelection< T >::src_ [protected]
template<class T >
int Array3DSubSelection< T >::start_[3] [protected]