ERC CISST - cisst software

vctStoreBackUnaryOperations< _inputOutputElementType > Class Template Reference

#include <vctStoreBackUnaryOperations.h>

List of all members.


Detailed Description

template<class _inputOutputElementType>
class vctStoreBackUnaryOperations< _inputOutputElementType >

Define store back unary operations on an object as classes.

Class vctStoreBackUnaryOperations is an envelope that wraps unary store back operations on an object as classes. vctStoreBackUnaryOperations defines internal classes such as MakeAbs, MakeNegation, 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 InputOutputType Operate(const InputOutputType & inputOutput)
  

Where InputOutputType is the type of the result and the operand.

By abstracting very simple operations as inline functions, we can plug the vctUnaryOperations 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 .

Parameters:
inputOutputElementType the type of the operand
See also:
MakeAbs MakeNegation

Definition at line 57 of file vctStoreBackUnaryOperations.h.

Public Types

Classes


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