Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

xchen::SimpleArray< T, dims > Class Template Reference

A fixed size multi array. More...

#include <SimpleArray.H>

List of all members.

Public Types

typedef SimpleArrayIterator<
T, dims > 
iterator

Public Methods

 SimpleArray (int sz,...)
 1st arg is array size in dimension 'dims-1'.

 SimpleArray (int *sz)
 array size in dim 'i' is sz[i].

ListAssignmentCheckSzRt< T,
iterator
operator= (T const &x)
 Assignment from a list.

void SetIndexStartAt (int arg1,...)
int GetIndexStart () const
int GetSize () const
SubArrayType & operator[] (int i)
T & operator[] (Vector< int, dims >const &i)
iterator Iterate ()

Friends

class SuperArrayType
class SimpleArrayIterator< T, dims+1 >
class vector
ostream & operator<< (ostream &os, const SimpleArray &)


Detailed Description

template<typename T, int dims>
class xchen::SimpleArray< T, dims >

A fixed size multi array.


Member Typedef Documentation

template<typename T, int dims>
typedef SimpleArrayIterator<T,dims> xchen::SimpleArray< T, dims >::iterator
 


Constructor & Destructor Documentation

template<typename T, int dims>
xchen::SimpleArray< T, dims >::SimpleArray int    sz,
...   
[inline]
 

1st arg is array size in dimension 'dims-1'.

template<typename T, int dims>
xchen::SimpleArray< T, dims >::SimpleArray int *    sz [inline]
 

array size in dim 'i' is sz[i].


Member Function Documentation

template<typename T, int dims>
int xchen::SimpleArray< T, dims >::GetIndexStart   const [inline]
 

template<typename T, int dims>
int xchen::SimpleArray< T, dims >::GetSize   const [inline]
 

template<typename T, int dims>
iterator xchen::SimpleArray< T, dims >::Iterate   [inline]
 

template<typename T, int dims>
ListAssignmentCheckSzRt< T, SimpleArrayIterator< T, dims > > xchen::SimpleArray< T, dims >::operator= T const &    x [inline]
 

Assignment from a list.

template<typename T, int dims>
T& xchen::SimpleArray< T, dims >::operator[] Vector< int, dims >const &    i [inline]
 

template<typename T, int dims>
SubArrayType& xchen::SimpleArray< T, dims >::operator[] int    i [inline]
 

template<typename T, int dims>
void xchen::SimpleArray< T, dims >::SetIndexStartAt int    arg1,
...   
[inline]
 


Friends And Related Function Documentation

template<typename T, int dims>
ostream& operator<< ostream &    os,
const SimpleArray< T, dims > &    ar
[friend]
 

template<typename T, int dims>
friend class SimpleArrayIterator< T, dims+1 > [friend]
 

template<typename T, int dims>
friend class SuperArrayType [friend]
 

template<typename T, int dims>
friend class vector [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 7 21:40:51 2004 by doxygen1.2.18