CTBvectorDsc for description).
More...
#include <CTBvectorDsc.hxx>
Inheritance diagram for CTBvectorCDsc:


Public Methods | |
| CTBvectorCDsc () | |
| CTBvectorCDsc (const T *p_data, CTBint i_size, CTBint i_stride=1) | |
| CTBvectorCDsc (const T *p_data, CTBrange ran) | |
| CTBvectorCDsc (const T *p_data, CTBint i_stride, CTBrange ran) | |
| const T * | Data () const |
| CTBint | Size () const |
| CTBint | Stride () const |
| void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
| const T & | operator[] (CTBint i_ind) const |
| const T & | operator() (CTBint i_ind) const |
| bool | operator! () const |
| operator void * () const | |
Protected Attributes | |
| T * | mp_data |
| CTBint | mi_size |
| CTBint | mi_stride |
Related Functions | |
| (Note that these are not member functions.) | |
| ostream & | operator<< (ostream &os, CTBvectorCDsc< T > obj) |
CTBvectorDsc for description).
bool conversion operator. This lead to allowed the compiler to resolve the assignment of a CTBvectorCDsc to a CTBvector<int> asboolbool to intbool conversion was replaced with a void* conversion. This prevents the above problem but allows `non-empty' checks like if(vectordsc) .
Definition at line 19 of file CTBvectorDsc.hxx.
|
|||||||||
|
Construct descriptor for empty (size=0) vector.
Definition at line 41 of file CTBvectorDsc.icc. |
|
||||||||||||||||||||||||||
|
Construct descriptor from data pointer p_data and size i_size.
The value of p_data is ignored and a Definition at line 57 of file CTBvectorDsc.icc. |
|
|||||||||||||||||||
|
Construct descriptor from data pointer p_data and range ran. Creates a vector descriptor representing the sequence p_data[ran.Begin()], ... p_data[ran.End()]. Note that ranges can describe ascending or decending index ranges, but never an empty index range. Definition at line 73 of file CTBvectorDsc.icc. |
|
||||||||||||||||||||||||||
|
Construct descriptor from pointer p_data , stride and range ran. Assumes a vector starting at p_data with a stride i_stride and creates a vector descriptor representing the range [ran.Begin(), ... [ran.End()]. Note that ranges can describe ascending or decending index ranges, but never an empty index range. Definition at line 95 of file CTBvectorDsc.icc. |
|
|||||||||
|
Returns pointer to first element of vector.
Reimplemented in CTBvectorDsc. Definition at line 112 of file CTBvectorDsc.icc. Referenced by CTBvectorDsc::operator=().
|
|
|||||||||
|
Returns size of vector.
Definition at line 121 of file CTBvectorDsc.icc. Referenced by CTBprintfVD::Dimension1(), CTBvectorDsc::operator=(), and CTBvector::operator=().
|
|
|||||||||
|
Returns stride of vector.
Definition at line 130 of file CTBvectorDsc.icc. Referenced by CTBvectorDsc::operator=().
|
|
||||||||||||||||||||||||||
|
Dump.
Definition at line 139 of file CTBvectorDsc.icc. |
|
||||||||||
|
Constant access element (index checked if CTB__IndexCheck defined).
Reimplemented in CTBvectorDsc. Definition at line 157 of file CTBvectorDsc.icc. |
|
||||||||||
|
Constant access element (index checked if CTB__IndexCheck defined).
Reimplemented in CTBvectorDsc. Definition at line 169 of file CTBvectorDsc.icc. |
|
|||||||||
|
Returns
Definition at line 181 of file CTBvectorDsc.icc. |
|
|||||||||
|
Returns 0 if vector empty, otherwise a non zero pointer.
Definition at line 190 of file CTBvectorDsc.icc. |
|
|||||||||||||||||||
|
ostream insertion.
Definition at line 202 of file CTBvectorDsc.icc. |
|
|||||
|
pointer to data.
Definition at line 44 of file CTBvectorDsc.hxx. |
|
|||||
|
vector size.
Definition at line 45 of file CTBvectorDsc.hxx. |
|
|||||
|
vector stride.
Definition at line 46 of file CTBvectorDsc.hxx. |
1.2.9-20010812 written by Dimitri van Heesch,
© 1997-2001