|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Implementing a binary operation on two fields with on-demand computation per fragment and discarding data when memory is tight. More...
#include <BinaryOperator.hpp>
Public Types | |
| typedef PrimaryValueType | primary_value_type |
| typedef SecondaryValueType | secondary_value_type |
| typedef ResultValueType | result_type |
Public Member Functions | |
| BinaryOperator (const RefPtr< Field > &theSecondaryField) | |
| The constructor, wants to know about the secondary field. | |
| template<Dims_t Dims> | |
| bool | computeFragment (MemArray< Dims, result_type > &Result, const MemArray< Dims, primary_value_type > &PrimaryArray, const RefPtr< FragmentID > &myFragmentID) |
Public Attributes | |
| RefPtr< Field > | SecondaryField |
Implementing a binary operation on two 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.
Example usage:
This class implements the computeFragment() function as expected by the ComputationalField class.
|
inline |
The constructor, wants to know about the secondary field.
The primary field will be specified via the ComputationalField constructor.