cisst-saw
|
Container class for the vector loop based engines. More...
#include <vctDynamicVectorLoopEngines.h>
Classes | |
class | MinAndMax |
class | SelectByIndex |
class | SoVi |
Implement operation of the form ![]() | |
class | SoViSi |
Implement operation of the form ![]() | |
class | SoViVi |
Implement operation of the form ![]() | |
class | Vio |
Implement operation of the form ![]() | |
class | VioSi |
Implement operation of the form ![]() | |
class | VioSiVi |
Implement operation of the form ![]() | |
class | VioVi |
Implement operation of the form ![]() | |
class | VioVio |
Implement operation of the form ![]() | |
class | VioViVi |
Implement operation of the form ![]() | |
class | VoSiVi |
Implement operation of the form ![]() | |
class | VoVi |
Implement operation of the form ![]() | |
class | VoViSi |
Implement operation of the form ![]() | |
class | VoViVi |
Implement operation of the form ![]() | |
Static Public Member Functions | |
static void | ThrowException (void) throw (std::runtime_error) |
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 and VioSi stands for one input/output vector and one scalar input used in
.
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.
|
inlinestatic |
Helper function to throw an exception whenever sizes mismatch. This enforces that a standard message is sent.