ERC CISST - cisst software
vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >::ConstSubvector< _subSize > Class Template Reference
#include <vctFixedSizeConstVectorBase.h>
List of all members.
Detailed Description
template<vct::size_type _size, vct::stride_type _stride, class _elementType, class _dataPtrType>
template<size_type _subSize>
class vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >::ConstSubvector< _subSize >
``Syntactic sugar'' to simplify the creation of a reference to a subvector. This class declares a const subvector type. To declare a subvector object, here's an example.
typedef vctFixedSizeVector<double, 9> Vector9; Vector9 v; Vector9::ConstSubvector<3>::Type first3(v, 0); // first 3 elements of v Vector9::ConstSubvector<3>::Type mid3(v, 0); // middle 3 elements of v Vector9::ConstSubvector<3>::Type last3(v, 6); // last 3 elements of v
- Parameters:
-
| _subSize | the size of the subvector |
- Note:
- the stride of the subvector with respect to its parent container is always 1. That is, the memory strides of the subvector and the parent container are equal. For more sophisticated subsequences, the user has to write customized code.
Definition at line 1060 of file vctFixedSizeConstVectorBase.h.
Public Types
The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu