|
cisst-saw
|
#include <vctDynamicConstVectorBase.h>
Public Types | |
| typedef vctDynamicConstVectorRef< value_type > | Type |
Define a ConstSubvector class for compatibility with the fixed size vectors. A const subvector has the same stride as the parent container.
Example:
typedef vctDynamicVector<double> VectorType; VectorType v(9); VectorType::ConstSubvector::Type first4(v, 0, 4); VectorType::ConstSubvector::Type last5(v, 4, 5);
vctFixedSizeConstVectorRef<double, 3 /( add stride here if necessary )/> firstThree(v, 0); vctFixedSizeConstVectorRef<double, 3 /( add stride here if necessary )/> lastThree(v, 6);