Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CMyArray< T1 > Class Template Reference

A multidimensional Array. More...

#include <cutility.h>

Inheritance diagram for CMyArray< T1 >:

CMyArray2D< T1 > CMyArray3D< T1 > List of all members.


Public Member Functions

  CMyArray (int numDim, int dim[])
  ~CMyArray ()
T1  get (int indices[])
void  set (int indices[], T1 d)
void  init (T1 initVal)
int  getSize ()
void  set1D (int index1d, T1 d)
T1  get1D (int index1d)


Protected Member Functions

  CMyArray ()
void  initialize (int numDim, int dim[])


Protected Attributes

T1 *  data
int *  dim
int  numDim
int  size

Detailed Description

template<typename T1>

class CMyArray< T1 >

A multidimensional Array.

Stores an one dimensional array of Type T1, and provides the simulation of a multi-dimensional array. The number of dimensions and the size of each dimension is given to the constructor. There are accessing functions for one dimensional an multidimensional indices.


Constructor & Destructor Documentation

template<typename T1>
CMyArray< T1 >::CMyArray  )  [inline, protected]
 
template<typename T1>
CMyArray< T1 >::CMyArray int  numDim,
int  dim[]
[inline]
 
template<typename T1>
CMyArray< T1 >::~CMyArray  )  [inline]
 

Member Function Documentation

template<typename T1>
T1 CMyArray< T1 >::get int  indices[]  )  [inline]
 
template<typename T1>
T1 CMyArray< T1 >::get1D int  index1d  )  [inline]
 
template<typename T1>
int CMyArray< T1 >::getSize  )  [inline]
 
template<typename T1>
void CMyArray< T1 >::init T1  initVal  )  [inline]
 
template<typename T1>
void CMyArray< T1 >::initialize int  numDim,
int  dim[]
[inline, protected]
 
template<typename T1>
void CMyArray< T1 >::set int  indices[],
T1  d
[inline]
 
template<typename T1>
void CMyArray< T1 >::set1D int  index1d,
T1  d
[inline]
 

Member Data Documentation

template<typename T1>
T1* CMyArray< T1 >::data [protected]
 
template<typename T1>
int* CMyArray< T1 >::dim [protected]
 
template<typename T1>
int CMyArray< T1 >::numDim [protected]
 
template<typename T1>
int CMyArray< T1 >::size [protected]
 

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