Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBcarray Class Template Reference

Objectization of a simple C array. **. More...

#include <CTBcarray.hxx>

Collaboration diagram for CTBcarray:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTBcarray ()
 CTBcarray (T rhs)
 CTBcarray (const CTBcarray< T, DIM > &rhs)
Toperator[] (CTBint i_ind)
const Toperator[] (CTBint i_ind) const
Toperator() (CTBint i_ind)
const Toperator() (CTBint i_ind) const
 operator T * ()
 operator const T * () const
 operator CTBvectorDsc ()
 operator CTBvectorCDsc () const
bool operator== (T rhs)
bool operator== (const CTBcarray< T, DIM > &rhs)
CTBcarray< T, DIM > & operator= (T rhs)
CTBcarray< T, DIM > & operator= (const CTBcarray< T, DIM > &rhs)

Protected Attributes

T m_data [DIM]

Related Functions

(Note that these are not member functions.)

ostream & operator<< (ostream &os, const CTBcarray< T, DIM > &obj)

Detailed Description

template<class T, CTBint DIM>
class CTBcarray< T, DIM >

Objectization of a simple C array. **.

Definition at line 19 of file CTBcarray.hxx.


Constructor & Destructor Documentation

template<class T, CTBint DIM>
CTBcarray< T, DIM >::CTBcarray [inline]
 

Default constructor.

An array of type T and size DIM is constructed, all elements are initialized with the default constructor T().

Note, that the default constructor for elementary data types is simply a no-op. Use in these cases the constructor CTBcarray(T) to get arrays with a well defined initialization

Definition at line 33 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::CTBcarray T rhs [inline, explicit]
 

Construct with scalar initialization.

Definition at line 40 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::CTBcarray const CTBcarray< T, DIM > & rhs [inline]
 

Copy constructor.

Definition at line 49 of file CTBcarray.icc.


Member Function Documentation

template<class T, CTBint DIM>
T & CTBcarray< T, DIM >::operator[] CTBint i_ind [inline]
 

Access element (index checked if CTB__IndexCheck defined).

Definition at line 58 of file CTBcarray.icc.

template<class T, CTBint DIM>
const T & CTBcarray< T, DIM >::operator[] CTBint i_ind const [inline]
 

Constant access element (index checked if CTB__IndexCheck defined).

Definition at line 70 of file CTBcarray.icc.

template<class T, CTBint DIM>
T & CTBcarray< T, DIM >::operator() CTBint i_ind [inline]
 

Access element (index checked if CTB__IndexCheck defined).

Definition at line 82 of file CTBcarray.icc.

template<class T, CTBint DIM>
const T & CTBcarray< T, DIM >::operator() CTBint i_ind const [inline]
 

Constant access element (index checked if CTB__IndexCheck defined).

Definition at line 94 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::operator T * [inline]
 

Convert to pointer.

Definition at line 106 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::operator const T * const [inline]
 

Constant convert to pointer.

Definition at line 115 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::operator CTBvectorDsc< T > [inline]
 

Convert to vector descriptor.

Definition at line 124 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM >::operator CTBvectorCDsc< T > const [inline]
 

Convert to constant vector descriptor.

Definition at line 133 of file CTBcarray.icc.

template<class T, CTBint DIM>
bool CTBcarray< T, DIM >::operator== T rhs [inline]
 

Returns true if all elements are equal to rhs.

Definition at line 142 of file CTBcarray.icc.

template<class T, CTBint DIM>
bool CTBcarray< T, DIM >::operator== const CTBcarray< T, DIM > & rhs [inline]
 

Returns true if array equals rhs in each element.

Definition at line 152 of file CTBcarray.icc.

template<class T, CTBint DIM>
CTBcarray< T, DIM > & CTBcarray< T, DIM >::operator= T rhs [inline]
 

Set all elements to the scalar value rhs.

Definition at line 163 of file CTBcarray.icc.

Referenced by CTBcarray().

template<class T, CTBint DIM>
CTBcarray< T, DIM > & CTBcarray< T, DIM >::operator= const CTBcarray< T, DIM > & rhs [inline]
 

Copy values of array rhs.

Definition at line 173 of file CTBcarray.icc.


Friends And Related Function Documentation

template<class T, CTBint DIM>
ostream & operator<< ostream & os,
const CTBcarray< T, DIM > & obj
[related]
 

ostream insertion.

Definition at line 186 of file CTBcarray.icc.


Member Data Documentation

template<class T, CTBint DIM>
T CTBcarray::m_data[DIM] [protected]
 

Definition at line 47 of file CTBcarray.hxx.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:33 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001