#include <CTBvectorDsc.hxx>
Inheritance diagram for CTBvectorDsc:


Public Methods | |
| CTBvectorDsc () | |
| CTBvectorDsc (T *p_data, CTBint i_size, CTBint i_stride=1) | |
| CTBvectorDsc (T *p_data, CTBrange ran) | |
| CTBvectorDsc (T *p_data, CTBint i_stride, CTBrange ran) | |
| T * | Data () const |
| T & | operator[] (CTBint i_ind) const |
| T & | operator() (CTBint i_ind) const |
| const CTBvectorDsc< T > & | operator= (const T &rhs) const |
| const CTBvectorDsc< T > & | operator= (const CTBvectorDsc< T > &rhs) const |
| const CTBvectorDsc< T > & | operator= (const CTBvectorCDsc< T > &rhs) const |
The classes CTBvectorDsc and CTBvectorCDsc can describe any indexable array of elements of type T. They are mainly used to represent subsets of vectors and matrices.
Vector descriptors are in many ways similar to C++ references, but rather refering to a whole object they just refer to a part of an object. The key semantics of vector descriptors is like for C++ references:
Definition at line 55 of file CTBvectorDsc.hxx.
|
|||||||||
|
Construct descriptor for empty (size=0) vector. 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 244 of file CTBvectorDsc.icc. |
|
||||||||||||||||||||||||||
|
Construct descriptor from data pointer p_data and size i_size.
The value of p_data and a Definition at line 258 of file CTBvectorDsc.icc. |
|
|||||||||||||||||||
|
Construct descriptor from data pointer p_data and range ran.
Definition at line 266 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 280 of file CTBvectorDsc.icc. |
|
|||||||||
|
Returns pointer to first element of vector.
Reimplemented from CTBvectorCDsc. Definition at line 288 of file CTBvectorDsc.icc. |
|
||||||||||
|
Access element (index checked if CTB__IndexCheck defined).
Reimplemented from CTBvectorCDsc. Definition at line 297 of file CTBvectorDsc.icc. |
|
||||||||||
|
Access element (index checked if CTB__IndexCheck defined).
Reimplemented from CTBvectorCDsc. Definition at line 309 of file CTBvectorDsc.icc. |
|
||||||||||
|
Set all elements to the scalar value rhs.
Definition at line 321 of file CTBvectorDsc.icc. Referenced by operator=().
|
|
||||||||||
|
Copy elements rhs (conformity checked if CTB__ConformityCheck).
Definition at line 343 of file CTBvectorDsc.icc. |
|
||||||||||
|
Copy elements rhs (conformity checked if CTB__ConformityCheck).
Definition at line 353 of file CTBvectorDsc.icc. |
1.2.9-20010812 written by Dimitri van Heesch,
© 1997-2001