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

Declaration of vctFixedSizeVectorRef. More...

Go to the source code of this file.

Macros

#define _vctFixedSizeVectorRef_h

Functions

 vctFixedSizeVectorRef ()
 An implementation of the ``abstract'' vctFixedSizeVectorBase.
 vctFixedSizeVectorRef (pointer p)
 vctFixedSizeVectorRef (const ThisType &other)
template<size_type __size, class __dataPtrType>
 vctFixedSizeVectorRef (vctFixedSizeVectorBase< __size, _stride, _elementType, __dataPtrType > &otherVector, size_type startPosition=0)
template<class __vectorOwnerType>
 vctFixedSizeVectorRef (vctDynamicVectorBase< __vectorOwnerType, _elementType > &otherVector, size_type startPosition=0)
void SetRef (pointer p)
void SetRef (const ThisType &other)
template<size_type __size, class __dataPtrType>
void SetRef (vctFixedSizeVectorBase< __size, _stride, _elementType, __dataPtrType > &otherVector, size_type startPosition=0)
template<class __vectorOwnerType>
void SetRef (vctDynamicVectorBase< __vectorOwnerType, _elementType > &otherVector, size_type startPosition=0)
ThisTypeoperator= (const ThisType &other)
template<stride_type __stride>
ThisTypeoperator= (const vctFixedSizeConstVectorRef< value_type, _size, __stride > &other)
template<stride_type __stride, class __elementType, class __dataPtrType>
ThisTypeoperator= (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
template<class __vectorOwnerType>
ThisTypeoperator= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &other)
ThisTypeoperator= (const value_type &value)

Detailed Description

Declaration of vctFixedSizeVectorRef.

Macro Definition Documentation

◆ _vctFixedSizeVectorRef_h

#define _vctFixedSizeVectorRef_h

Function Documentation

◆ operator=() [1/5]

ThisType & operator= ( const ThisType & other)
inline

Assignment operation between vectors of different types

Parameters
otherThe vector to be copied.

◆ operator=() [2/5]

ThisType & operator= ( const value_type & value)
inline

Assignement of a scalar to all elements. See also SetAll.

◆ operator=() [3/5]

template<class __vectorOwnerType>
ThisType & operator= ( const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & other)
inline

◆ operator=() [4/5]

template<stride_type __stride, class __elementType, class __dataPtrType>
ThisType & operator= ( const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > & other)
inline

◆ operator=() [5/5]

template<stride_type __stride>
ThisType & operator= ( const vctFixedSizeConstVectorRef< value_type, _size, __stride > & other)
inline

◆ SetRef() [1/4]

void SetRef ( const ThisType & other)

◆ SetRef() [2/4]

void SetRef ( pointer p)

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

◆ SetRef() [3/4]

template<class __vectorOwnerType>
void SetRef ( vctDynamicVectorBase< __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() [4/4]

template<size_type __size, class __dataPtrType>
void SetRef ( vctFixedSizeVectorBase< __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).

◆ vctFixedSizeVectorRef() [1/4]

vctFixedSizeVectorRef ( const ThisType & other)

◆ vctFixedSizeVectorRef() [2/4]

vctFixedSizeVectorRef ( pointer p)

Initialize the vector with a (non-const) pointer

◆ vctFixedSizeVectorRef() [3/4]

template<class __vectorOwnerType>
vctFixedSizeVectorRef ( vctDynamicVectorBase< __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.

◆ vctFixedSizeVectorRef() [4/4]

template<size_type __size, class __dataPtrType>
vctFixedSizeVectorRef ( vctFixedSizeVectorBase< __size, _stride, _elementType, __dataPtrType > & otherVector,
size_type startPosition = 0 )
explicit

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

Note
This constructor is explicit.
The stride values are taken from the fixed size vector.