ERC CISST - cisst software

vctFixedSizeVectorBase< _size, _stride, _elementType, _dataPtrType >::Subvector< _subSize > Class Template Reference

#include <vctFixedSizeVectorBase.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 vctFixedSizeVectorBase< _size, _stride, _elementType, _dataPtrType >::Subvector< _subSize >

``Syntactic sugar'' to simplify the creation of a reference to a subvector. This class declares a non-const subvector type. To declare a subvector object, here's an example.

typedef vctFixedSizeVector<double, 9> Vector9; Vector9 v; Vector9::Subvector<3>::Type first3(v, 0); // first 3 elements of v Vector9::Subvector<3>::Type mid3(v, 0); // middle 3 elements of v Vector9::Subvector<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 cusomized code.

Definition at line 1389 of file vctFixedSizeVectorBase.h.

Public Types


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu