cisst-saw
|
An implementation of the ``abstract'' vctFixedSizeVectorBase. More...
#include <vctFixedSizeVectorRef.h>
Public Member Functions | |
VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) | |
vctFixedSizeVectorRef () | |
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) |
ThisType & | operator= (const value_type &value) |
ThisType & | operator= (const ThisType &other) |
template<stride_type __stride> | |
ThisType & | operator= (const vctFixedSizeConstVectorRef< value_type, _size, __stride > &other) |
template<stride_type __stride, class __elementType , class __dataPtrType > | |
ThisType & | operator= (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other) |
template<class __vectorOwnerType > | |
ThisType & | operator= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &other) |
![]() | |
VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) | |
iterator | begin (void) |
const_iterator | begin (void) const |
iterator | end (void) |
const_iterator | end (void) const |
reverse_iterator | rbegin (void) |
const_reverse_iterator | rbegin (void) const |
reverse_iterator | rend (void) |
const_reverse_iterator | rend (void) const |
reference | operator[] (size_type index) |
const_reference | operator[] (size_type index) const |
reference | at (size_type index) throw (std::out_of_range) |
const_reference | at (size_type index) const throw (std::out_of_range) |
reference | operator() (size_type index) throw (std::out_of_range) |
const_reference | operator() (size_type index) const throw (std::out_of_range) |
reference | Element (size_type index) |
const_reference | Element (size_type index) const |
pointer | Pointer (size_type index=0) |
const_pointer | Pointer (size_type index=0) const |
value_type | SetAll (const value_type &value) |
bool | Zeros (void) |
ThisType & | Assign (const value_type element0, const value_type element1, const value_type element2, const value_type element3, const value_type element4,...) |
ThisType & | Assign (const value_type *elements) |
ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other) |
ThisType & | ConcatenationOf (const vctFixedSizeConstVectorBase< SIZEMINUSONE, __stride, __elementTypeVector, __dataPtrType > &other, __elementType last) |
void | SelectFrom (const vctFixedSizeConstVectorBase< __inputSize, __inputStride, _elementType, __inputDataPtrType > &input, const vctFixedSizeConstVectorBase< _size, __indexStride, index_type, __indexDataPtrType > &index) |
void | CrossProductOf (const vctFixedSizeConstVectorBase< 3, __stride1, _elementType, __dataPtr1Type > &inputVector1, const vctFixedSizeConstVectorBase< 3, __stride2, _elementType, __dataPtr2Type > &inputVector2) |
ThisType & | AddProductOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | AddElementwiseProductOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | Assign (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other) |
ThisType & | operator= (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other) |
ThisType & | Assign (const value_type element0) throw (std::runtime_error) |
ThisType & | Assign (const value_type element0, const value_type element1) throw (std::runtime_error) |
ThisType & | Assign (const value_type element0, const value_type element1, const value_type element2) throw (std::runtime_error) |
ThisType & | Assign (const value_type element0, const value_type element1, const value_type element2, const value_type element3) throw (std::runtime_error) |
ThisType & | ForceAssign (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other) |
ThisType & | ForceAssign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other) |
bool | FastCopyOf (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source, bool performSafetyChecks=true) throw (std::runtime_error) |
bool | FastCopyOf (const vctFixedSizeConstVectorBase< SIZE, STRIDE, value_type, __dataPtrType > &source, bool performSafetyChecks=true) throw (std::runtime_error) |
value_type & | X (void) |
const value_type & | X (void) const |
value_type & | Y (void) |
const value_type & | Y (void) const |
value_type & | Z (void) |
const value_type & | Z (void) const |
value_type & | W (void) |
const value_type & | W (void) const |
vctFixedSizeVectorRef < _elementType, 2, _stride > | XY (void) |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | XY (void) const |
vctFixedSizeVectorRef < _elementType, 2, 2 *_stride > | XZ (void) |
vctFixedSizeConstVectorRef < _elementType, 2, 2 *_stride > | XZ (void) const |
vctFixedSizeVectorRef < _elementType, 2, 3 *_stride > | XW (void) |
vctFixedSizeConstVectorRef < _elementType, 2, 3 *_stride > | XW (void) const |
vctFixedSizeVectorRef < _elementType, 2, _stride > | YZ (void) |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | YZ (void) const |
vctFixedSizeVectorRef < _elementType, 2, 2 *_stride > | YW (void) |
vctFixedSizeConstVectorRef < _elementType, 2, 2 *_stride > | YW (void) const |
vctFixedSizeVectorRef < _elementType, 2, _stride > | ZW (void) |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | ZW (void) const |
vctFixedSizeVectorRef < _elementType, 3, _stride > | XYZ (void) |
vctFixedSizeConstVectorRef < _elementType, 3, _stride > | XYZ (void) const |
vctFixedSizeVectorRef < _elementType, 3, _stride > | YZW (void) |
vctFixedSizeConstVectorRef < _elementType, 3, _stride > | YZW (void) const |
vctFixedSizeVectorRef < _elementType, 4, _stride > | XYZW (void) |
vctFixedSizeConstVectorRef < _elementType, 4, _stride > | XYZW (void) const |
RowConstMatrixRefType | AsRowMatrix (void) const |
RowMatrixRefType | AsRowMatrix (void) |
ColConstMatrixRefType | AsColMatrix (void) const |
ColMatrixRefType | AsColMatrix (void) |
vctFixedSizeConstVectorRef < _elementType, __subSize, _stride > | Ref (const size_type startPosition=0) const throw (std::out_of_range) |
vctFixedSizeVectorRef < _elementType, __subSize, _stride > | Ref (const size_type startPosition=0) throw (std::out_of_range) |
ThisType & | SumOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | DifferenceOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | ElementwiseProductOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | ElementwiseRatioOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | ElementwiseMinOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | ElementwiseMaxOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2) |
ThisType & | Add (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | Subtract (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | ElementwiseMultiply (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | ElementwiseDivide (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | ElementwiseMin (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | ElementwiseMax (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | operator+= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | operator-= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | SwapElementsWith (vctFixedSizeVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | SumOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar) |
ThisType & | DifferenceOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar) |
ThisType & | ProductOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar) |
ThisType & | RatioOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar) |
ThisType & | ClippedAboveOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type upperBound) |
ThisType & | ClippedBelowOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type lowerBound) |
ThisType & | SumOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | DifferenceOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | ProductOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | RatioOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | ClippedAboveOf (const value_type upperBound, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | ClippedBelowOf (const value_type lowerBound, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector) |
ThisType & | Add (const value_type scalar) |
ThisType & | Subtract (const value_type scalar) |
ThisType & | operator+= (const value_type scalar) |
ThisType & | operator-= (const value_type scalar) |
ThisType & | Multiply (const value_type scalar) |
ThisType & | Divide (const value_type scalar) |
ThisType & | ClipAbove (const value_type upperBound) |
ThisType & | ClipBelow (const value_type lowerBound) |
ThisType & | operator*= (const value_type scalar) |
ThisType & | operator/= (const value_type scalar) |
ThisType & | ProductOf (const vctFixedSizeConstMatrixBase< _size, __matrixCols, __matrixRowStride, __matrixColStride, _elementType, __matrixDataPtrType > &inputMatrix, const vctFixedSizeConstVectorBase< __matrixCols, __vectorStride, _elementType, __vectorDataPtrType > &inputVector) |
ThisType & | ProductOf (const vctFixedSizeConstVectorBase< __vectorSize, __vectorStride, _elementType, __vectorDataPtrType > &inputVector, const vctFixedSizeConstMatrixBase< __vectorSize, _size, __matrixRowStride, __matrixColStride, _elementType, __matrixDataPtrType > &inputMatrix) |
ThisType & | AbsOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | NegationOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | FloorOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | CeilOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) |
ThisType & | NormalizedOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) throw (std::runtime_error) |
ThisType & | AbsSelf (void) |
ThisType & | NegationSelf (void) |
ThisType & | FloorSelf (void) |
ThisType & | CeilSelf (void) |
ThisType & | NormalizedSelf (void) throw (std::runtime_error) |
![]() | |
VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) | |
const_iterator | begin (void) const |
const_iterator | end (void) const |
const_reverse_iterator | rbegin (void) const |
const_reverse_iterator | rend (void) const |
size_type | size (void) const |
size_type | max_size (void) const |
difference_type | stride (void) const |
bool | empty (void) const |
const_reference | operator[] (size_type index) const |
const_reference | at (size_type index) const throw (std::out_of_range) |
const_reference | operator() (size_type index) const throw (std::out_of_range) |
const_reference | Element (size_type index) const |
const_pointer | Pointer (size_type index=0) const |
bool | ValidIndex (size_type index) const |
vctFixedSizeConstVectorRef < _elementType, __subSize, _stride > | Ref (const size_type startPosition=0) const throw (std::out_of_range) |
value_type | DotProduct (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
std::string | ToString (void) const |
void | ToStream (std::ostream &outputStream) const |
void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
void | SerializeRaw (std::ostream &outputStream) const |
const value_type & | X (void) const |
const value_type & | Y (void) const |
const value_type & | Z (void) const |
const value_type & | W (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | XY (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, 2 *_stride > | XZ (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, 3 *_stride > | XW (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | YZ (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, 2 *_stride > | YW (void) const |
vctFixedSizeConstVectorRef < _elementType, 2, _stride > | ZW (void) const |
vctFixedSizeConstVectorRef < _elementType, 3, _stride > | XYZ (void) const |
vctFixedSizeConstVectorRef < _elementType, 3, _stride > | YZW (void) const |
vctFixedSizeConstVectorRef < _elementType, 4, _stride > | XYZW (void) const |
RowConstMatrixRefType | AsRowMatrix (void) const |
ColConstMatrixRefType | AsColMatrix (void) const |
value_type | SumOfElements (void) const |
value_type | ProductOfElements (void) const |
value_type | NormSquare (void) const |
NormType | Norm (void) const |
bool | IsNormalized (_elementType tolerance=cmnTypeTraits< _elementType >::Tolerance()) const |
value_type | L1Norm (void) const |
value_type | LinfNorm (void) const |
value_type | MaxElement (void) const |
value_type | MinElement (void) const |
value_type | MaxAbsElement (void) const |
value_type | MinAbsElement (void) const |
void | MinAndMaxElement (value_type &minElement, value_type &maxElement) const |
bool | IsPositive (void) const |
bool | IsNonNegative (void) const |
bool | IsNonPositive (void) const |
bool | IsNegative (void) const |
bool | All (void) const |
bool | Any (void) const |
bool | IsFinite (void) const |
bool | HasNaN (void) const |
bool | IsCompact (void) const |
bool | IsFortran (void) const |
bool | FastCopyCompatible (const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > &source) const |
bool | FastCopyCompatible (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source) const |
bool | Equal (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | operator== (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | AlmostEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector, value_type tolerance) const |
bool | AlmostEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | NotEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | operator!= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | Lesser (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | LesserOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | Greater (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | GreaterOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseNotEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseLesser (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseLesserOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseGreater (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
BoolVectorValueType | ElementwiseGreaterOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const |
bool | Equal (const value_type &scalar) const |
bool | operator== (const value_type &scalar) const |
bool | NotEqual (const value_type &scalar) const |
bool | operator!= (const value_type &scalar) const |
bool | Lesser (const value_type &scalar) const |
bool | LesserOrEqual (const value_type &scalar) const |
bool | Greater (const value_type &scalar) const |
bool | GreaterOrEqual (const value_type &scalar) const |
BoolVectorValueType | ElementwiseEqual (const value_type &scalar) const |
BoolVectorValueType | ElementwiseNotEqual (const value_type &scalar) const |
BoolVectorValueType | ElementwiseLesser (const value_type &scalar) const |
BoolVectorValueType | ElementwiseLesserOrEqual (const value_type &scalar) const |
BoolVectorValueType | ElementwiseGreater (const value_type &scalar) const |
BoolVectorValueType | ElementwiseGreaterOrEqual (const value_type &scalar) const |
VectorValueType | Abs (void) const |
VectorValueType | Negation (void) const |
VectorValueType | Floor (void) const |
VectorValueType | Ceil (void) const |
VectorValueType | Normalized (void) const throw (std::runtime_error) |
Additional Inherited Members | |
![]() | |
void | ThrowUnlessValidIndex (size_type index) const throw (std::out_of_range) |
![]() | |
vctFixedSizeVectorTraits < _elementType, _size, _stride > ::pointer | Data |
An implementation of the ``abstract'' vctFixedSizeVectorBase.
This implementations uses a pointer to the vector beginning as the vector defining data member. An instantiation of this type can be used as a subsequence with GetSubsequence().
See the base class (vctFixedSizeVectorBase) for template parameter details.
typedef vctFixedSizeVectorBase<_size, _stride, value_type, pointer> vctFixedSizeVectorRef< _elementType, _size, _stride >::BaseType |
typedef BaseType::CopyType vctFixedSizeVectorRef< _elementType, _size, _stride >::CopyType |
typedef vctFixedSizeVectorRef<value_type, _size, _stride> vctFixedSizeVectorRef< _elementType, _size, _stride >::ThisType |
typedef vctFixedSizeVectorTraits<_elementType, _size, _stride> vctFixedSizeVectorRef< _elementType, _size, _stride >::VectorTraits |
|
inline |
Default constructor: create an uninitialized vector
|
inline |
Initialize the vector with a (non-const) pointer
|
inline |
|
inlineexplicit |
Initialize a fixed size reference to a fixed-size vector.
|
inlineexplicit |
Initialize a fixed size reference to a dynamic vector.
|
inline |
Assignment operation between vectors of different types
other | The vector to be copied. |
|
inline |
|
inline |
|
inline |
|
inline |
Assignement of a scalar to all elements. See also SetAll.
|
inline |
Assign the vector start with a (non-const) pointer
|
inline |
|
inline |
Set a fixed size reference to a fixed-size vector.
|
inline |
Set a fixed size reference to a dynamic vector.
vctFixedSizeVectorRef< _elementType, _size, _stride >::VCT_CONTAINER_TRAITS_TYPEDEFS | ( | _elementType | ) |