|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Implementing an unary operation on a fields with on-demand computation per fragment and discarding data when memory is tight. More...
#include <UnaryOperator.hpp>
Public Types | |
| typedef PrimaryValueType | primary_value_type |
| typedef ResultValueType | result_type |
Public Member Functions | |
| UnaryOperator () | |
| The constructor. | |
| template<Dims_t Dims> | |
| bool | computeFragment (MemArray< Dims, result_type > &Result, const MemArray< Dims, primary_value_type > &PrimaryArray, const RefPtr< FragmentID > &myFragmentID) |
| template<Dims_t Dims> | |
| bool | computeIndexedFragment (MemArray< Dims, result_type > &Result, const MemArray< Dims, primary_value_type > &PrimaryArray, const RefPtr< FragmentID > &myFragmentID) |
Implementing an unary operation on a fields with on-demand computation per fragment and discarding data when memory is tight.
To be used in conjunction with the ComputationalField class. The Operator API is compatible with the Operators as defined in the Eagle library, and it is easiest to just use one of those.
The provided Operator class needs to provide a member function "binary(result,source)" which computes a certain value for a given input data element. It can be a static function or a member function. Example:
This class implements the computeFragment() function as expected by the ComputationalField class.