|
| | VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) |
| iterator | begin (void) |
| iterator | end (void) |
| reverse_iterator | rbegin (void) |
| reverse_iterator | rend (void) |
| const_iterator | begin (void) const |
| const_iterator | end (void) const |
| const_reverse_iterator | rbegin (void) const |
| const_reverse_iterator | rend (void) const |
| reference | operator[] (index_type index) |
| const_reference | operator[] (index_type index) const |
| const VectorOwnerType & | Owner (void) const |
| VectorOwnerType & | Owner (void) |
| pointer | Pointer (index_type index=0) |
| const_pointer | Pointer (index_type index=0) const |
| reference | at (index_type index) CISST_THROW(std |
| const_reference | at (index_type index) const CISST_THROW(std |
| reference | operator() (index_type index) CISST_THROW(std |
| const_reference | operator() (index_type index) const CISST_THROW(std |
| reference | Element (index_type index) |
| const_reference | Element (index_type index) const |
| value_type | SetAll (const value_type value) |
| bool | Zeros (void) |
| template<class __vectorOwnerType> |
| ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other) |
| template<class __vectorOwnerType> |
| ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other, size_type length, size_type startPositionThis=0, size_type startPositionOther=0) |
- Parameters
-
| other | The vector to be copied. |
|
| template<class __vectorOwnerType, typename __elementType> |
| ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
| template<class __vectorOwnerType, typename __elementType> |
| ThisType & | operator= (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
| template<size_type __size, stride_type __stride, class __elementType, class __dataPtrType> |
| ThisType & | Assign (const vctFixedSizeConstVectorBase< __size, __stride, __elementType, __dataPtrType > &other) |
different types. This method will use SetSize on the destination vector (this vector) to make sure the assignment will work. It is important to note that if the sizes don't match, memory for this vector will be re-allocated. If the program has previously created some references (as in vctDynamic{Const}VectorRef) on this vector, they will become invalid.
- Note
- For a non-reallocating Assign, it is recommended to use the Assign() methods.
-
This method is provided for both fixed size and dynamic vectors for API consistency (usable in templated code). There is obviously not resize involved on fixed size vectors.
-
If the destination vector doesn't have the same size as the source and can not be resized, an exception will be thrown by the Assign method called internally.
- Parameters
-
| other | The vector to be copied. |
|
| template<class __vectorOwnerType, typename __elementType> |
| ThisType & | ForceAssign (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
| template<size_type __size, stride_type __stride, class __elementType, class __dataPtrType> |
| ThisType & | ForceAssign (const vctFixedSizeConstVectorBase< __size, __stride, __elementType, __dataPtrType > &other) |
| template<class __vectorOwnerType> |
| bool | FastCopyOf (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source, bool performSafetyChecks=true) CISST_THROW(std |
| template<size_type __size, stride_type __stride, class __dataPtrType> |
| bool | FastCopyOf (const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > &source, bool performSafetyChecks=true) CISST_THROW(std |
| ThisType & | Assign (const value_type *elements) |
| ThisType & | Assign (value_type element0, value_type element1,...) CISST_THROW(std |
| template<class __vectorOwnerType, class __elementType> |
| ThisType & | ConcatenationOf (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &otherVector, __elementType lastElement) |
The following methods are size dependant, i.e. don't necessarily mean anything for all sizes of vector. For example, using the Z() method on a vector of size 2 shouldn't be allowed. Therefore, we are using CMN_ASSERT to check that the size is valid
|
| 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 |
| vctDynamicVectorRef< _elementType > | XY (void) |
| vctDynamicVectorRef< _elementType > | XZ (void) |
| vctDynamicVectorRef< _elementType > | XW (void) |
| vctDynamicVectorRef< _elementType > | YZ (void) |
| vctDynamicVectorRef< _elementType > | YW (void) |
| vctDynamicVectorRef< _elementType > | ZW (void) |
| vctDynamicConstVectorRef< _elementType > | XY (void) const |
| vctDynamicConstVectorRef< _elementType > | XZ (void) const |
| vctDynamicConstVectorRef< _elementType > | XW (void) const |
| vctDynamicConstVectorRef< _elementType > | YZ (void) const |
| vctDynamicConstVectorRef< _elementType > | YW (void) const |
| vctDynamicConstVectorRef< _elementType > | ZW (void) const |
| vctDynamicVectorRef< _elementType > | XYZ (void) |
| vctDynamicVectorRef< _elementType > | YZW (void) |
| vctDynamicConstVectorRef< _elementType > | XYZ (void) const |
| vctDynamicConstVectorRef< _elementType > | YZW (void) const |
| vctDynamicVectorRef< _elementType > | XYZW (void) |
| vctDynamicConstVectorRef< _elementType > | XYZW (void) const |
| vctDynamicVectorRef< _elementType > | Ref (const size_type size, const size_type startPosition=0) CISST_THROW(std |
| vctDynamicConstVectorRef< _elementType > | Ref (const size_type size, const size_type startPosition=0) const CISST_THROW(std |
| template<class __inputVectorOwner, class __indexVectorOwner> |
| void | SelectFrom (const vctDynamicConstVectorBase< __inputVectorOwner, _elementType > &input, const vctDynamicConstVectorBase< __indexVectorOwner, index_type > &index) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| void | CrossProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &inputVector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &inputVector2) |
Operate on both elements and store values in both.
|
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | SumOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | DifferenceOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | ElementwiseProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | ElementwiseRatioOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | ElementwiseMinOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | ElementwiseMaxOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | ElementwiseClippedInOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &boundVector, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | Add (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | Subtract (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseMultiply (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseDivide (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseMin (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseMax (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseClipAbove (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &upperBoundVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseClipBelow (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &lowerBoundVector) |
| template<class __vectorOwnerType> |
| ThisType & | ElementwiseClipIn (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &boundVector) |
| template<class __vectorOwnerType> |
| ThisType & | operator+= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | operator-= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | SwapElementsWith (vctDynamicVectorBase< __vectorOwnerType, _elementType > &otherVector) |
Store the result of op(vector, scalar) to a third vector.
|
| template<class __vectorOwnerType> |
| ThisType & | SumOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
| template<class __vectorOwnerType> |
| ThisType & | DifferenceOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
| template<class __vectorOwnerType> |
| ThisType & | ProductOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
| template<class __vectorOwnerType> |
| ThisType & | RatioOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedAboveOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type upperBound) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedBelowOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type lowerBound) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedInOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type bound) |
Store the result of op(scalar, vector) to a third vector.
|
| template<class __vectorOwnerType> |
| ThisType & | SumOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | DifferenceOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | ProductOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | RatioOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedAboveOf (const value_type upperBound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedBelowOf (const value_type lowerBound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
| template<class __vectorOwnerType> |
| ThisType & | ClippedInOf (const value_type bound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
Store the result of op(this, scalar) back to this vector.
|
| ThisType & | Add (const value_type scalar) |
| ThisType & | Subtract (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 & | ClipIn (const value_type bound) |
| ThisType & | operator+= (const value_type scalar) |
| ThisType & | operator-= (const value_type scalar) |
| ThisType & | operator*= (const value_type scalar) |
| ThisType & | operator/= (const value_type scalar) |
| template<class __vectorOwnerType> |
| ThisType & | AddProductOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType1, class __vectorOwnerType2> |
| ThisType & | AddElementwiseProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
matrix. Store the result of op() to a third vector (this vector).
|
| template<class __matrixOwnerType, class __vectorOwnerType> |
| ThisType & | ProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &inputVector) |
| template<class __vectorOwnerType, class __matrixOwnerType> |
| ThisType & | ProductOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &inputVector, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix) |
Store the result of op(vector) to another vector.
|
| template<class __vectorOwnerType> |
| ThisType & | AbsOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | NegationOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | FloorOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | CeilOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
| template<class __vectorOwnerType> |
| ThisType & | NormalizedOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) CISST_THROW(std |
Store the result of op(this) to this vector.
|
| ThisType & | AbsSelf (void) |
| ThisType & | NegationSelf (void) |
| ThisType & | FloorSelf (void) |
| ThisType & | CeilSelf (void) |
| ThisType & | NormalizedSelf (void) CISST_THROW(std |