cisst-saw
Loading...
Searching...
No Matches
vctFixedSizeConstVectorRef.h File Reference

Declaration of vctFixedSizeConstVectorRef. More...

Go to the source code of this file.

Macros

#define _vctFixedSizeConstVectorRef_h

Functions

 vctFixedSizeConstVectorRef ()
 An implementation of the ``abstract'' vctFixedSizeConstVectorBase.
 vctFixedSizeConstVectorRef (pointer p)
 vctFixedSizeConstVectorRef (const_pointer p)
template<size_type __size, class __dataPtrType>
 vctFixedSizeConstVectorRef (const vctFixedSizeConstVectorBase< __size, _stride, _elementType, __dataPtrType > &otherVector, size_type startPosition=0)
template<class __vectorOwnerType>
 vctFixedSizeConstVectorRef (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector, size_type startPosition=0)
void SetRef (pointer p)
void SetRef (const_pointer p)
template<size_type __size, class __dataPtrType>
void SetRef (const vctFixedSizeConstVectorBase< __size, _stride, _elementType, __dataPtrType > &otherVector, size_type startPosition=0)
template<class __vectorOwnerType>
void SetRef (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector, size_type startPosition=0)

Detailed Description

Macro Definition Documentation

◆ _vctFixedSizeConstVectorRef_h

#define _vctFixedSizeConstVectorRef_h

Function Documentation

◆ SetRef() [1/4]

template<class __vectorOwnerType>
void SetRef ( const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & otherVector,
size_type startPosition = 0 )

Set a fixed size reference to a dynamic vector.

Note
the stride of the input vector must be identical to the stride of this vector (otherwise cmnThrow is used to throw std::runtime_error).
this vector must be contained in the input vector, that is, startPos+_size <= __size (otherwise cmnThrow is used to throw std::out_of_range).

◆ SetRef() [2/4]

template<size_type __size, class __dataPtrType>
void SetRef ( const vctFixedSizeConstVectorBase< __size, _stride, _elementType, __dataPtrType > & otherVector,
size_type startPosition = 0 )

Set a fixed size reference to a fixed-size vector.

Note
the stride of the input vector must be identical to the stride of this vector (this is enforced by the template parameters).
this vector must be contained in the input vector, that is, startPos+_size <= __size (otherwise cmnThrow is used to throw std::out_of_range).

◆ SetRef() [3/4]

void SetRef ( const_pointer p)

Assign the vector start with a const pointer. This requires const_cast.

◆ SetRef() [4/4]

void SetRef ( pointer p)

Assign the vector start with a (non-const) pointer

◆ vctFixedSizeConstVectorRef() [1/4]

template<class __vectorOwnerType>
vctFixedSizeConstVectorRef ( const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & otherVector,
size_type startPosition = 0 )
explicit

Initialize a fixed size reference to a dynamic vector.

Note
This constructor is declared as explicit, since it is atypical.

◆ vctFixedSizeConstVectorRef() [2/4]

template<size_type __size, class __dataPtrType>
vctFixedSizeConstVectorRef ( const vctFixedSizeConstVectorBase< __size, _stride, _elementType, __dataPtrType > & otherVector,
size_type startPosition = 0 )

Initialize a fixed size reference to a fixed-size vector.

Note
There is no need to declare this constructor as explicit, because a vctFixedSizeConstVectorRef protects the content.
The stride values are taken from the fixed size vector.

◆ vctFixedSizeConstVectorRef() [3/4]

vctFixedSizeConstVectorRef ( const_pointer p)

Initialize the vector with a const pointer. This requires const_cast.

◆ vctFixedSizeConstVectorRef() [4/4]

vctFixedSizeConstVectorRef ( pointer p)

Initialize the vector with a (non-const) pointer