Space3D< T > Class Template Reference

Space3D is a generic three dimentional array. More...

#include <Space3D.h>

Collaboration diagram for Space3D< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Space3D ()
 Space3D (int _szx, int _szy, int _szz)
 ~Space3D ()
void create (int _szx, int _szy, int _szz)
bool isCreated () const
void clear (const T &val=T())
T & axx (int x, int y, int z)
T & axx (Coord3d c)
T & axx (Coord3d c, int factor)
const T & axx (int x, int y, int z) const
const T & axx (Coord3d c) const
const T & axx (Coord3d c, int factor) const

Public Attributes

const int szx
const int szy
const int szz

Private Attributes

int szxTy
 x times y. - used optimization.
T * data

Detailed Description

template<class T>
class Space3D< T >

Space3D is a generic three dimentional array.

It provided optimized access to the elements in it. it is used mostly in the shape generation. it is not yet used in the main solution engine in Cube

See also:
Shape


Constructor & Destructor Documentation

template<class T>
Space3D< T >::Space3D (  )  [inline]

template<class T>
Space3D< T >::Space3D ( int  _szx,
int  _szy,
int  _szz 
) [inline]

template<class T>
Space3D< T >::~Space3D (  )  [inline]


Member Function Documentation

template<class T>
void Space3D< T >::create ( int  _szx,
int  _szy,
int  _szz 
) [inline]

template<class T>
bool Space3D< T >::isCreated (  )  const [inline]

template<class T>
void Space3D< T >::clear ( const T &  val = T()  )  [inline]

template<class T>
T& Space3D< T >::axx ( int  x,
int  y,
int  z 
) [inline]

template<class T>
T& Space3D< T >::axx ( Coord3d  c  )  [inline]

template<class T>
T& Space3D< T >::axx ( Coord3d  c,
int  factor 
) [inline]

template<class T>
const T& Space3D< T >::axx ( int  x,
int  y,
int  z 
) const [inline]

template<class T>
const T& Space3D< T >::axx ( Coord3d  c  )  const [inline]

template<class T>
const T& Space3D< T >::axx ( Coord3d  c,
int  factor 
) const [inline]


Member Data Documentation

template<class T>
const int Space3D< T >::szx

template<class T>
const int Space3D< T >::szy

template<class T>
const int Space3D< T >::szz

template<class T>
int Space3D< T >::szxTy [private]

x times y. - used optimization.

template<class T>
T* Space3D< T >::data [private]


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