1#ifndef __FIBER_FIELD_UNARYY_OPERATOR_HPP
2#define __FIBER_FIELD_UNARYY_OPERATOR_HPP
4#include "ComputationalField.hpp"
46template <
class Operator,
class PrimaryValueType,
47 class ResultValueType = PrimaryValueType>
52 typedef ResultValueType result_type;
60 template <Dims_t Dims>
72 while( Index.inc(Size) );
77 template <Dims_t Dims>
78 bool computeIndexedFragment(MemArray<Dims, result_type>&Result,
79 const MemArray<Dims, primary_value_type>&PrimaryArray,
80 const RefPtr<FragmentID>&myFragmentID)
82 MultiIndex<Dims> Size = Result.Size();
83 MultiIndex<Dims> Index;
87 this->Operator::binary(Index, Result[ Index ], PrimaryArray[ Index ] );
89 while( Index.inc(Size) );
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Wizt::VCreatorProperty< Wizt::VCreatorProperties::OPERATORNAME > Operator
Implementing an unary operation on a fields with on-demand computation per fragment and discarding da...
Definition UnaryOperator.hpp:49
UnaryOperator()
The constructor.
Definition UnaryOperator.hpp:57