#include <vctStoreBackBinaryOperations.h>
Class vctStoreBackBinaryOperations is an envelope that wraps binary store back operations between objects as classes. StoreBackOperations defines internal classes such as Addition, Subtraction, etc., and each of the internal classes has one static function named Operate(), which wraps the corresponding operation. The signature of a typical Operate() is
static inline OutputType & Operate(Input1Type & input1, const Input2Type & input2)
Where OutputType, Input1Type, Input2Type are the types of the result and the two operands.
By abstracting very simple operations as inline functions, we can plug the StoreBackOperations internal classes into templated vector operation engines. See an example of such engine in vctFixedSizeVectorRecursiveEngines.h , and an example of plugging an operation into the engine in vctFixedSizeVectorOperations.h .
| inputOutputType | the type of the first (left-side) operand, which is an input output | |
| input2Type | the type of the second (right-side) operand) |
static inline void Operate(Input1Type & input1, Input2Type & input2)with no const or return type. It was included here since we didn't want to have a special file for just one operation.
Definition at line 68 of file vctStoreBackBinaryOperations.h.