ERC CISST - cisst software

vctDynamicVectorLoopEngines Class Reference

#include <vctDynamicVectorLoopEngines.h>

List of all members.


Detailed Description

Container class for the vector loop based engines.

Loop engines can be used for dynamic vectors (see vctDynamicVector) to apply similar operations (see vctBinaryOperations, vctUnaryOperations, vctStoreBackBinaryOperations, vctStoreBackUnaryOperations). Each engine corresponds to an operation signature.

Loop engines are named according to the type of the parameters and their role (i.e. input/output). The order reflects the mathematical expression. For exemple, VoViVi stands for one output vector with two input vectors used in $v_o = v_i op v_i$ and VioSi stands for one input/output vector and one scalar input used in $v_{io} = v_{io} op s_i$.

The implementation is based on loops. The inner class are templated by the operation type and allows to plug any operation with a given signature.

All vector types must support the index operator ([]) to access their elements. The input vector types must have it as const method. The output vector type must have it as non-const method.

The method size() is also required. For the operations based on two or more vectors, this method is used to check that the operands have the same size. If the sizes don't match, an exception of type std::runtime_error is thrown.

See also:
vctFixedSizeVectorRecursiveEngines VoViVi VioVi VoViSi VoSiVi VioSi VoVi Vio SoVi SoViVi SoVoSi

Definition at line 67 of file vctDynamicVectorLoopEngines.h.

Static Public Member Functions

Classes


Member Function Documentation

static void vctDynamicVectorLoopEngines::ThrowException ( void   )  throw (std::runtime_error) [inline, static]

Helper function to throw an exception whenever sizes mismatch. This enforces that a standard message is sent.

Definition at line 73 of file vctDynamicVectorLoopEngines.h.

References cmnThrow().

Referenced by vctDynamicVectorLoopEngines::VoViVi< _elementOperationType >::Run(), vctDynamicVectorLoopEngines::SoViVi< _incrementalOperationType, _elementOperationType >::Run(), vctDynamicVectorLoopEngines::VoViSi< _elementOperationType >::Run(), vctDynamicVectorLoopEngines::VioSiVi< _ioElementOperationType, _scalarVectorElementOperationType >::Run(), vctDynamicVectorLoopEngines::SelectByIndex::Run(), vctDynamicVectorLoopEngines::VioVio< _elementOperationType >::Run(), vctDynamicVectorLoopEngines::VioVi< _elementOperationType >::Run(), vctDynamicVectorLoopEngines::VoVi< _elementOperationType >::Run(), and vctDynamicVectorLoopEngines::VoSiVi< _elementOperationType >::Run().


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu