#include <vctDynamicVectorBase.h>
Inheritance diagram for vctDynamicVectorBase< _vectorOwnerType, _elementType >:


Definition at line 64 of file vctDynamicVectorBase.h.
| other | The vector to be copied. |
| other | The vector to be copied. |
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.
| other | The vector to be copied. |
| typedef vctDynamicVectorBase vctDynamicVectorBase< _vectorOwnerType, _elementType >::ThisType |
Type of the vector itself.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in mtsHistory< _elementType >, mtsVector< _elementType >, vctDynamicVector< _elementType >, vctDynamicVectorRef< _elementType >, vctDynamicVector< svlFilterSourceVideoCapture::PlatformType >, vctDynamicVector< svlVidCapSrcBase * >, vctDynamicVector< vctDynamicVector< svlVideoCodecBase * > >, vctDynamicVector< double >, vctDynamicVector< svlCameraGeometry::_Intrinsics >, vctDynamicVector< osaThread * >, vctDynamicVector< std::string >, vctDynamicVector< svlImageCodecBase * >, vctDynamicVector< vctDynamicVector< bool > >, vctDynamicVector< svlFilterSourceVideoCapture::_ExternalTrigger >, vctDynamicVector< svlRenderTargetBase * >, vctDynamicVector< vctFixedSizeVectorRefctFixedSizeVectorRef< double, 2, 1 > >, vctDynamicVector< svlFilterOutput * >, vctDynamicVector< vctDynamicVector< svlImageCodecBase * > >, vctDynamicVector< int >, vctDynamicVector< std::ifstream * >, vctDynamicVector< unsigned int >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageFormat >, vctDynamicVector< svlVideoCodecBase * >, vctDynamicVector< svlStreamType >, vctDynamicVector< unsigned char >, vctDynamicVector< vctDynamicVector< unsigned int > >, vctDynamicVector< CISSTNETLIB_INTEGER >, vctDynamicVector< cmnGenericObject * >, vctDynamicVector< CvHistogram * >, vctDynamicVector< svlRect >, vctDynamicVector< char >, vctDynamicVector< unsigned char * >, vctDynamicVector< bool >, vctDynamicVector< svlCameraGeometry::_Extrinsics >, vctDynamicVector< cmnClassServicesBase * >, vctDynamicVector< svlVideoIO::_Compression * >, vctDynamicVector< CISSTNETLIB_DOUBLE >, vctDynamicVector< CvRect >, vctDynamicVector< svlImageTracker * >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageProperties >, vctDynamicVector< svlStreamProc * >, vctDynamicVector< vctFixedSizeVector< int, 2 > >, vctDynamicVector< svlTarget2D >, vctDynamicVector< svlSample * >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 71 of file vctDynamicVectorBase.h.
| typedef vctDynamicConstVectorBase<_vectorOwnerType, _elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::BaseType |
Type of the base class.
Reimplemented in vctDynamicVector< _elementType >, vctReturnDynamicVector< _elementType >, vctDynamicVectorRef< _elementType >, vctDynamicVector< svlFilterSourceVideoCapture::PlatformType >, vctDynamicVector< svlVidCapSrcBase * >, vctDynamicVector< vctDynamicVector< svlVideoCodecBase * > >, vctDynamicVector< double >, vctDynamicVector< svlCameraGeometry::_Intrinsics >, vctDynamicVector< osaThread * >, vctDynamicVector< std::string >, vctDynamicVector< svlImageCodecBase * >, vctDynamicVector< vctDynamicVector< bool > >, vctDynamicVector< svlFilterSourceVideoCapture::_ExternalTrigger >, vctDynamicVector< svlRenderTargetBase * >, vctDynamicVector< vctFixedSizeVectorRefctFixedSizeVectorRef< double, 2, 1 > >, vctDynamicVector< svlFilterOutput * >, vctDynamicVector< vctDynamicVector< svlImageCodecBase * > >, vctDynamicVector< int >, vctDynamicVector< std::ifstream * >, vctDynamicVector< unsigned int >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageFormat >, vctDynamicVector< svlVideoCodecBase * >, vctDynamicVector< svlStreamType >, vctDynamicVector< unsigned char >, vctDynamicVector< vctDynamicVector< unsigned int > >, vctDynamicVector< CISSTNETLIB_INTEGER >, vctDynamicVector< cmnGenericObject * >, vctDynamicVector< CvHistogram * >, vctDynamicVector< svlRect >, vctDynamicVector< char >, vctDynamicVector< unsigned char * >, vctDynamicVector< bool >, vctDynamicVector< svlCameraGeometry::_Extrinsics >, vctDynamicVector< cmnClassServicesBase * >, vctDynamicVector< svlVideoIO::_Compression * >, vctDynamicVector< CISSTNETLIB_DOUBLE >, vctDynamicVector< CvRect >, vctDynamicVector< svlImageTracker * >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageProperties >, vctDynamicVector< svlStreamProc * >, vctDynamicVector< vctFixedSizeVector< int, 2 > >, vctDynamicVector< svlTarget2D >, vctDynamicVector< svlSample * >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 73 of file vctDynamicVectorBase.h.
| typedef BaseType::iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::iterator |
Iterator on the elements of the vector.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVectorRef< _elementType >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 77 of file vctDynamicVectorBase.h.
| typedef BaseType::reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::reverse_iterator |
Reverse iterator on the elements of the vector.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVectorRef< _elementType >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 78 of file vctDynamicVectorBase.h.
| typedef BaseType::const_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::const_iterator |
Const iterator on the elements of the vector.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVectorRef< _elementType >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 79 of file vctDynamicVectorBase.h.
| typedef BaseType::const_reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::const_reverse_iterator |
Const reverse iterator on the elements of the vector.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVectorRef< _elementType >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 80 of file vctDynamicVectorBase.h.
| typedef BaseType::CopyType vctDynamicVectorBase< _vectorOwnerType, _elementType >::CopyType |
The type used to create a copy.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVector< _elementType >, vctDynamicVectorRef< _elementType >, vctDynamicVector< svlFilterSourceVideoCapture::PlatformType >, vctDynamicVector< svlVidCapSrcBase * >, vctDynamicVector< vctDynamicVector< svlVideoCodecBase * > >, vctDynamicVector< double >, vctDynamicVector< svlCameraGeometry::_Intrinsics >, vctDynamicVector< osaThread * >, vctDynamicVector< std::string >, vctDynamicVector< svlImageCodecBase * >, vctDynamicVector< vctDynamicVector< bool > >, vctDynamicVector< svlFilterSourceVideoCapture::_ExternalTrigger >, vctDynamicVector< svlRenderTargetBase * >, vctDynamicVector< vctFixedSizeVectorRefctFixedSizeVectorRef< double, 2, 1 > >, vctDynamicVector< svlFilterOutput * >, vctDynamicVector< vctDynamicVector< svlImageCodecBase * > >, vctDynamicVector< int >, vctDynamicVector< std::ifstream * >, vctDynamicVector< unsigned int >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageFormat >, vctDynamicVector< svlVideoCodecBase * >, vctDynamicVector< svlStreamType >, vctDynamicVector< unsigned char >, vctDynamicVector< vctDynamicVector< unsigned int > >, vctDynamicVector< CISSTNETLIB_INTEGER >, vctDynamicVector< cmnGenericObject * >, vctDynamicVector< CvHistogram * >, vctDynamicVector< svlRect >, vctDynamicVector< char >, vctDynamicVector< unsigned char * >, vctDynamicVector< bool >, vctDynamicVector< svlCameraGeometry::_Extrinsics >, vctDynamicVector< cmnClassServicesBase * >, vctDynamicVector< svlVideoIO::_Compression * >, vctDynamicVector< CISSTNETLIB_DOUBLE >, vctDynamicVector< CvRect >, vctDynamicVector< svlImageTracker * >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageProperties >, vctDynamicVector< svlStreamProc * >, vctDynamicVector< vctFixedSizeVector< int, 2 > >, vctDynamicVector< svlTarget2D >, vctDynamicVector< svlSample * >, vctDynamicVectorRef< CISSTNETLIB_INTEGER >, and vctDynamicVectorRef< CISSTNETLIB_DOUBLE >.
Definition at line 82 of file vctDynamicVectorBase.h.
| typedef BaseType::VectorValueType vctDynamicVectorBase< _vectorOwnerType, _elementType >::VectorValueType |
The type of a vector used to store by value results of the same type as this object.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 83 of file vctDynamicVectorBase.h.
| typedef class cmnTypeTraits< value_type > vctDynamicVectorBase< _vectorOwnerType, _elementType >::TypeTraits |
Type traits for the elements of the vector.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Reimplemented in vctDynamicVector< _elementType >, vctDynamicVector< svlFilterSourceVideoCapture::PlatformType >, vctDynamicVector< svlVidCapSrcBase * >, vctDynamicVector< vctDynamicVector< svlVideoCodecBase * > >, vctDynamicVector< double >, vctDynamicVector< svlCameraGeometry::_Intrinsics >, vctDynamicVector< osaThread * >, vctDynamicVector< std::string >, vctDynamicVector< svlImageCodecBase * >, vctDynamicVector< vctDynamicVector< bool > >, vctDynamicVector< svlFilterSourceVideoCapture::_ExternalTrigger >, vctDynamicVector< svlRenderTargetBase * >, vctDynamicVector< vctFixedSizeVectorRefctFixedSizeVectorRef< double, 2, 1 > >, vctDynamicVector< svlFilterOutput * >, vctDynamicVector< vctDynamicVector< svlImageCodecBase * > >, vctDynamicVector< int >, vctDynamicVector< std::ifstream * >, vctDynamicVector< unsigned int >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageFormat >, vctDynamicVector< svlVideoCodecBase * >, vctDynamicVector< svlStreamType >, vctDynamicVector< unsigned char >, vctDynamicVector< vctDynamicVector< unsigned int > >, vctDynamicVector< CISSTNETLIB_INTEGER >, vctDynamicVector< cmnGenericObject * >, vctDynamicVector< CvHistogram * >, vctDynamicVector< svlRect >, vctDynamicVector< char >, vctDynamicVector< unsigned char * >, vctDynamicVector< bool >, vctDynamicVector< svlCameraGeometry::_Extrinsics >, vctDynamicVector< cmnClassServicesBase * >, vctDynamicVector< svlVideoIO::_Compression * >, vctDynamicVector< CISSTNETLIB_DOUBLE >, vctDynamicVector< CvRect >, vctDynamicVector< svlImageTracker * >, vctDynamicVector< svlFilterSourceVideoCapture::_ImageProperties >, vctDynamicVector< svlStreamProc * >, vctDynamicVector< vctFixedSizeVector< int, 2 > >, vctDynamicVector< svlTarget2D >, and vctDynamicVector< svlSample * >.
Definition at line 87 of file vctDynamicVectorBase.h.
| iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::begin | ( | void | ) | [inline] |
Returns an iterator on the first element (STL compatibility).
Definition at line 94 of file vctDynamicVectorBase.h.
| iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::end | ( | void | ) | [inline] |
Returns an iterator on the last element (STL compatibility).
Definition at line 100 of file vctDynamicVectorBase.h.
| reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::rbegin | ( | void | ) | [inline] |
Returns a reverse iterator on the last element (STL compatibility).
Definition at line 106 of file vctDynamicVectorBase.h.
| reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::rend | ( | void | ) | [inline] |
Returns a reverse iterator on the element before first (STL compatibility).
Definition at line 112 of file vctDynamicVectorBase.h.
| const_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::begin | ( | void | ) | const [inline] |
Returns a const iterator on the first element (STL compatibility).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 117 of file vctDynamicVectorBase.h.
| const_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::end | ( | void | ) | const [inline] |
Returns a const iterator on the last element (STL compatibility).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 122 of file vctDynamicVectorBase.h.
| const_reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::rbegin | ( | void | ) | const [inline] |
Returns a reverse const iterator on the last element (STL compatibility).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 127 of file vctDynamicVectorBase.h.
| const_reverse_iterator vctDynamicVectorBase< _vectorOwnerType, _elementType >::rend | ( | void | ) | const [inline] |
Returns a reverse const iterator on the element before first (STL compatibility).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 132 of file vctDynamicVectorBase.h.
| reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator[] | ( | index_type | index | ) | [inline] |
Access an element by index.
Definition at line 138 of file vctDynamicVectorBase.h.
| const_reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator[] | ( | index_type | index | ) | const [inline] |
Access an element by index (const).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 143 of file vctDynamicVectorBase.h.
| const VectorOwnerType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Owner | ( | void | ) | const [inline] |
Access the vector owner. This method should be used only to access some extra information related to the memory layout. It is used by the engines (vctDynamicVectorLoopEngines).
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 148 of file vctDynamicVectorBase.h.
| pointer vctDynamicVectorBase< _vectorOwnerType, _elementType >::Pointer | ( | index_type | index = 0 |
) | [inline] |
Addition to the STL requirements. Return a pointer to an element of the container, specified by its index.
Definition at line 158 of file vctDynamicVectorBase.h.
Referenced by nmrPInverseEconomyDynamicData::AllocateOutputWorkspace(), nmrPInverseDynamicData::AllocateOutputWorkspace(), vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyInverseTo(), vctMatrixRotation3ConstBase< vctFixedSizeMatrix< double, 3, 3, _rowMajor > >::ApplyInverseTo(), vctMatrixRotation2Base< vctFixedSizeMatrix< _elementType, 2, 2 > >::ApplyInverseTo(), vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyTo(), vctMatrixRotation2Base< vctFixedSizeMatrix< _elementType, 2, 2 > >::ApplyTo(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::at(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::Element(), nmrLSqLin(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::operator[](), vctFixedSizeVectorRef< _elementType, _size, _stride >::SetRef(), vctDynamicVectorRef< CISSTNETLIB_DOUBLE >::SetRef(), nmrLSqLinSolutionDynamic::SetRef(), nmrPInverseEconomyDynamicData::SetRefSVD(), nmrPInverseDynamicData::SetRefSVD(), nmrLUSolver::Solve(), nmrLSNonLinSolver::Solve(), nmrLSNonLinJacobianSolver::Solve(), nmrFnSolver::Solve(), nmrFnJacobianSolver::Solve(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::W(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::X(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::XW(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::XY(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::XYZ(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::XYZW(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::XZ(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::Y(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::YW(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::YZ(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::YZW(), vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::Z(), and vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::ZW().
| const_pointer vctDynamicVectorBase< _vectorOwnerType, _elementType >::Pointer | ( | index_type | index = 0 |
) | const [inline] |
Returns a const pointer to an element of the container, specified by its index. Addition to the STL requirements.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 163 of file vctDynamicVectorBase.h.
| reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::at | ( | index_type | index | ) | throw (std::out_of_range) [inline] |
Access an element by index (non-const). Compare with std::vector::at. This method can be a handy substitute for the overloaded operator [] when operator overloading is unavailable or inconvenient.
Definition at line 173 of file vctDynamicVectorBase.h.
Referenced by vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::Assign(), and vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::operator()().
| const_reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::at | ( | index_type | index | ) | const throw (std::out_of_range) [inline] |
Access an element by index (const). Compare with std::vector::at(). This method can be a handy substitute for the overloaded operator [] when operator overloading is unavailable or inconvenient.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 179 of file vctDynamicVectorBase.h.
| reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator() | ( | index_type | index | ) | throw (std::out_of_range) [inline] |
Overloaded operator () for simplified (non-const) element access with bounds checking
Definition at line 184 of file vctDynamicVectorBase.h.
| const_reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator() | ( | index_type | index | ) | const throw (std::out_of_range) [inline] |
Overloaded operator () for simplified (const) element access with bounds checking
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 189 of file vctDynamicVectorBase.h.
| reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::Element | ( | index_type | index | ) | [inline] |
Access an element by index (non const). This method allows to access an element without any bounds checking.
Definition at line 198 of file vctDynamicVectorBase.h.
| const_reference vctDynamicVectorBase< _vectorOwnerType, _elementType >::Element | ( | index_type | index | ) | const [inline] |
Access an element by index (const). This method allows to access an element without any bounds checking.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 203 of file vctDynamicVectorBase.h.
| value_type vctDynamicVectorBase< _vectorOwnerType, _elementType >::SetAll | ( | const value_type | value | ) | [inline] |
Assign the given value to all the elements.
| value | the value used to set all the elements of the vector |
Definition at line 212 of file vctDynamicVectorBase.h.
| bool vctDynamicVectorBase< _vectorOwnerType, _elementType >::Zeros | ( | void | ) | [inline] |
Assign zero to all elements. This methods assumes that the element type has a zero and this zero value can be set using memset(0). If the vector is not compact this method will use SetAll(0) and memset otherwise. This provides a slightly more efficent way to set all elements to zero.
Definition at line 228 of file vctDynamicVectorBase.h.
| bool vctDynamicVectorBase< _vectorOwnerType, _elementType >::FastCopyOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, value_type > & | source, | |
| bool | performSafetyChecks = true | |||
| ) | throw (std::runtime_error) [inline] |
Fast copy. This method uses memcpy whenever it is possible to perform a fast copy from another vector to this vector.
std::runtime_error). See cmnThrow for details.
false. If both vectors are compact, a memcpy is performed and the method returns true.
performSafetyChecks to false. This should be used only when the programmer knows for sure that the source and destination are compatible (size and compactness).
The basic and safe use of this method for a vector would be:
if (!destination.FastCopyOf(source)) {
destination.Assign(source);
}
If the method is to be called many times (in a loop for example), it is recommended to check that the source and destination are compatible once and then use the option to turn off the different safety checks for each FastCopyOf.
bool canUseFastCopy = destination.FastCopyCompatible(source); vct::index_type index; for (index = 0; index < 1000; index++) { DoSomethingUseful(source); if (canUseFastCopy) { destination.FastCopyOf(source, false); // Do not check again } else { destination.Assign(source); } }
| source | Vector used to set the content of this vector. | |
| performSafetyChecks | Flag set to false to avoid safety checks, use with extreme caution. |
Definition at line 387 of file vctDynamicVectorBase.h.
| bool vctDynamicVectorBase< _vectorOwnerType, _elementType >::FastCopyOf | ( | const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > & | source, | |
| bool | performSafetyChecks = true | |||
| ) | throw (std::runtime_error) [inline] |
Fast copy. This method uses memcpy whenever it is possible to perform a fast copy from another vector to this vector.
std::runtime_error). See cmnThrow for details.
false. If both vectors are compact, a memcpy is performed and the method returns true.
performSafetyChecks to false. This should be used only when the programmer knows for sure that the source and destination are compatible (size and compactness).
The basic and safe use of this method for a vector would be:
if (!destination.FastCopyOf(source)) {
destination.Assign(source);
}
If the method is to be called many times (in a loop for example), it is recommended to check that the source and destination are compatible once and then use the option to turn off the different safety checks for each FastCopyOf.
bool canUseFastCopy = destination.FastCopyCompatible(source); vct::index_type index; for (index = 0; index < 1000; index++) { DoSomethingUseful(source); if (canUseFastCopy) { destination.FastCopyOf(source, false); // Do not check again } else { destination.Assign(source); } }
| source | Vector used to set the content of this vector. | |
| performSafetyChecks | Flag set to false to avoid safety checks, use with extreme caution. |
Definition at line 395 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Assign | ( | const value_type * | elements | ) | [inline] |
Assign to this vector values from a C array given as a pointer to value_type. The purpose of this method is to simplify the syntax by not necessitating the creation of an explicit vector for the given array. However, we only provide this method for an array of value_type. For arrays of other types a vector still needs to be declared.
This method assumes that the input array has the necessary number of elements.
Definition at line 417 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Assign | ( | value_type | element0, | |
| value_type | element1, | |||
| ... | ||||
| ) | throw (std::runtime_error) [inline] |
Assign to this vector using stdarg macros and variable number of arguments. This operation assumes that all the arguments are of type value_type, and that their number is equal to the size of the vector. The user may need to explicitly cast the parameters to value_type to avoid runtime bugs and errors. We have not checked if stdarg macros can use reference types (probably not), so unlike the other constructors, this constructor takes all arguments by value.
Definition at line 438 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ConcatenationOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > & | otherVector, | |
| __elementType | lastElement | |||
| ) | [inline] |
Concatenate a single element at the end of a shorter-by-1 vector to obtain a vector of my size. The concatenation result is stored in this vector. The function is useful, e.g., when embedding vectors from R^n into R^{n+1} or into homogeneous space.
Definition at line 462 of file vctDynamicVectorBase.h.
| value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::X | ( | void | ) | [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Definition at line 485 of file vctDynamicVectorBase.h.
Referenced by vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyInverseTo(), and vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyTo().
| const value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::X | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 491 of file vctDynamicVectorBase.h.
| value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Y | ( | void | ) | [inline] |
Returns the second element of the vector. This method uses CMN_ASSERT to check that the size is at least 2.
Definition at line 498 of file vctDynamicVectorBase.h.
Referenced by vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyInverseTo(), and vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyTo().
| const value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Y | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 504 of file vctDynamicVectorBase.h.
| value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Z | ( | void | ) | [inline] |
Returns the third element of the vector. This method uses CMN_ASSERT to check that the size is at least 3.
Definition at line 511 of file vctDynamicVectorBase.h.
Referenced by vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyInverseTo(), and vctQuaternionRotation3Base< vctFixedSizeVector< double, 4 > >::ApplyTo().
| const value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Z | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 517 of file vctDynamicVectorBase.h.
| value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::W | ( | void | ) | [inline] |
Returns the fourth element of the vector. This method uses CMN_ASSERT to check that the size is at least 4.
Definition at line 523 of file vctDynamicVectorBase.h.
| const value_type& vctDynamicVectorBase< _vectorOwnerType, _elementType >::W | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 529 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XY | ( | void | ) | [inline] |
Return a (non-const) vector reference for the first two elements of this vector. May be used when switching from homogeneous coordinates to normal. (shadowed from base class).
Definition at line 537 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XZ | ( | void | ) | [inline] |
Return a (non-const) vector reference for the first and third elements of this vector.
Definition at line 544 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XW | ( | void | ) | [inline] |
Return a (non-const) vector reference for the first and fourth elements of this vector.
Definition at line 551 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YZ | ( | void | ) | [inline] |
Return a (non-const) vector reference for the two elements of this vector beginning on the second.
Definition at line 558 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YW | ( | void | ) | [inline] |
Return a (non-const) vector reference for the two elements of this vector beginning on the second.
Definition at line 565 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::ZW | ( | void | ) | [inline] |
Return a (non-const) vector reference for the two elements of this vector beginning on the third.
Definition at line 572 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XY | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 578 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XZ | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 583 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XW | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 588 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YZ | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 593 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YW | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 598 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::ZW | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 603 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XYZ | ( | void | ) | [inline] |
Return a (non-const) vector reference for the first three elements of this vector. May be used when switching from homogeneous coordinates to normal, or when refering to a subvector of a row or a column inside a small matrix.
Definition at line 612 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YZW | ( | void | ) | [inline] |
Return a (non-const) vector reference for the second, third and fourth elements of this vector.
Definition at line 619 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XYZ | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 625 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::YZW | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 630 of file vctDynamicVectorBase.h.
| vctDynamicVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XYZW | ( | void | ) | [inline] |
Return a (non-const) vector reference for the first four elements of this vector. May be used when switching from homogeneous coordinates to normal, or when refering to a subvector of a row or a column inside a small matrix.
Definition at line 639 of file vctDynamicVectorBase.h.
| vctDynamicConstVectorRef<_elementType> vctDynamicVectorBase< _vectorOwnerType, _elementType >::XYZW | ( | void | ) | const [inline] |
Returns the first element of the vector. This method uses CMN_ASSERT to check that the size is at least 1.
Reimplemented from vctDynamicConstVectorBase< _vectorOwnerType, _elementType >.
Definition at line 645 of file vctDynamicVectorBase.h.
| void vctDynamicVectorBase< _vectorOwnerType, _elementType >::SelectFrom | ( | const vctDynamicConstVectorBase< __inputVectorOwner, _elementType > & | input, | |
| const vctDynamicConstVectorBase< __indexVectorOwner, index_type > & | index | |||
| ) | [inline] |
Select a subset of elements by a given sequence of indexes. The selected elements from the input vector are stored in this vector. There is no requirement of order or uniqueness in the indexes sequence, and no verification that the indexes are valid.
Definition at line 655 of file vctDynamicVectorBase.h.
| void vctDynamicVectorBase< _vectorOwnerType, _elementType >::CrossProductOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | inputVector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | inputVector2 | |||
| ) | [inline] |
Cross Product of two vectors. This method uses CMN_ASSERT to check that the size of the vector is 3, and can only be performed on arguments vectors of size 3.
Definition at line 667 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::SumOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 700 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::DifferenceOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 710 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseProductOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 720 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseRatioOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 730 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseMinOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 740 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseMaxOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > & | vector1, | |
| const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > & | vector2 | |||
| ) | [inline] |
Binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| vector1 | The first operand of the binary operation | |
| vector2 | The second operand of the binary operation |
Definition at line 750 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Add | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 778 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Subtract | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 787 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseMultiply | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 796 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseDivide | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 805 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseMin | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 814 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ElementwiseMax | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 823 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator+= | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 832 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator-= | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Store back binary elementwise operations between two vectors. For each element of the vectors, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherVector | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 838 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::SwapElementsWith | ( | vctDynamicVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Swap the elements of both vectors with each other.
Definition at line 850 of file vctDynamicVectorBase.h.
Referenced by vctDynamicMatrixBase< vctDynamicMatrixOwner< float >, float >::ExchangeColumns(), and vctDynamicMatrixBase< vctDynamicMatrixOwner< float >, float >::ExchangeRows().
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::SumOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 874 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::DifferenceOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 884 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ProductOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 894 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::RatioOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 904 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClippedAboveOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | upperBound | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 914 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClippedBelowOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector, | |
| const value_type | lowerBound | |||
| ) | [inline] |
Binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| vector | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 924 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::SumOf | ( | const value_type | scalar, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 951 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::DifferenceOf | ( | const value_type | scalar, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 961 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ProductOf | ( | const value_type | scalar, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 971 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::RatioOf | ( | const value_type | scalar, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 981 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClippedAboveOf | ( | const value_type | upperBound, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 991 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClippedBelowOf | ( | const value_type | lowerBound, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | vector | |||
| ) | [inline] |
Binary elementwise operations between a scalar and a vector. For each element of the vector "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| vector | The second operand of the binary operation. |
Definition at line 1001 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Add | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1027 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Subtract | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1035 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Multiply | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1043 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::Divide | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1051 of file vctDynamicVectorBase.h.
Referenced by vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::NormalizedSelf(), and vctDynamicVectorBase< vctDynamicVectorOwner< svlFilterSourceVideoCapture::_ImageFormat >, svlFilterSourceVideoCapture::_ImageFormat >::operator/=().
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClipAbove | ( | const value_type | upperBound | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1059 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ClipBelow | ( | const value_type | lowerBound | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1067 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator+= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1075 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator-= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1080 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator *= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1085 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::operator/= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between a vector and a scalar. For each element of the vector "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand. |
Definition at line 1090 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ProductOf | ( | const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > & | inputMatrix, | |
| const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | inputVector | |||
| ) | [inline] |
Product of a matrix and a vector.
| inputMatrix | The first operand of the binary operation | |
| inputVector | The second operand of the binary operation |
Definition at line 1124 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::ProductOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | inputVector, | |
| const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > & | inputMatrix | |||
| ) | [inline] |
Product of a vector and a matrix.
| inputVector | The first operand of the binary operation | |
| inputMatrix | The second operand of the binary operation |
Definition at line 1141 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::AbsOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsOf), the opposite (NegationOf) or the normalized version (NormalizedOf).
| otherVector | The operand of the unary operation. |
Definition at line 1189 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::NegationOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsOf), the opposite (NegationOf) or the normalized version (NormalizedOf).
| otherVector | The operand of the unary operation. |
Definition at line 1198 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::FloorOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsOf), the opposite (NegationOf) or the normalized version (NormalizedOf).
| otherVector | The operand of the unary operation. |
Definition at line 1207 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::CeilOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsOf), the opposite (NegationOf) or the normalized version (NormalizedOf).
| otherVector | The operand of the unary operation. |
Definition at line 1216 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::NormalizedOf | ( | const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > & | otherVector | ) | throw (std::runtime_error) [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsOf), the opposite (NegationOf) or the normalized version (NormalizedOf).
| otherVector | The operand of the unary operation. |
Definition at line 1225 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::AbsSelf | ( | void | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsSelf), the opposite (NegationSelf) or the normalized version (NormalizedSelf).
Definition at line 1243 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::NegationSelf | ( | void | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsSelf), the opposite (NegationSelf) or the normalized version (NormalizedSelf).
Definition at line 1251 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::FloorSelf | ( | void | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsSelf), the opposite (NegationSelf) or the normalized version (NormalizedSelf).
Definition at line 1259 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::CeilSelf | ( | void | ) | [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsSelf), the opposite (NegationSelf) or the normalized version (NormalizedSelf).
Definition at line 1267 of file vctDynamicVectorBase.h.
| ThisType& vctDynamicVectorBase< _vectorOwnerType, _elementType >::NormalizedSelf | ( | void | ) | throw (std::runtime_error) [inline] |
Unary elementwise operations on a vector. For each element of the vector "this", performs
where
can calculate the absolute value (AbsSelf), the opposite (NegationSelf) or the normalized version (NormalizedSelf).
Definition at line 1274 of file vctDynamicVectorBase.h.