1#ifndef __FISH_UNARYFIELDOPERATOROBJECT_HPP
2#define __FISH_UNARYFIELDOPERATOROBJECT_HPP
4#include "FieldOperatorObject.hpp"
5#include <field/UnaryOperator.hpp>
45 template <
class TheUnaryOperator,
46 class ResultType =
typename TheUnaryOperator::InputType>
51 using InputTypes =
typename TheUnaryOperator::InputType;
57 , ResultField(
self(),
"result")
65 string NewFieldname = TheUnaryOperator::ResultFieldname(
Fieldname(
Context) );
85 string NewFieldname = TheUnaryOperator::ResultFieldname(
Fieldname(
Context) );
88 typename TheUnaryOperator::InputType,
105static string createChildname(
const string&
parent_name)
107 return TheUnaryOperator::ResultObjectname(
parent_name );
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
An abstract selection of fields, that is given by names of fields and possible types for each field.
Definition FieldSelection.hpp:23
An internal class that stores a couple of textual names.
Definition FieldSelector.hpp:18
A Field is a collection of CreativeArrayBase reference pointers which are accessed via FragmentID obj...
Definition Field.hpp:245
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
bool isNewerThan(const Ageable &a) const noexcept
const auto & self() const
Base class for objects that operate on Field objects and create new fields.
Definition FieldOperatorObject.hpp:44
ComputationalField< FieldOperator > * newComputationalField(const FieldOperator &FO, const RefPtr< Field > &InputField, const MemCore::RefPtr< MemCore::Cache > &theCache=MemCore::Cache::MemCache())
A convenience template function to construct a computational field (class ComputationalField) from an...
Definition ComputationalField.hpp:266
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
Implementing an unary operation on a fields with on-demand computation per fragment and discarding da...
Definition UnaryOperator.hpp:49
string Fieldname(const RefPtr< ValuePool > &VP) const
Get the name of the selected field.
Definition FishField.cpp:250
A Fish object implementing an unary operation on a field.
Definition UnaryFieldOperatorObject.hpp:48
bool FieldOperation(VRequest &Context, Fiber::Field &InputField, Fiber::Representation &FieldRep) override
The operation to be performed on the given field, to be overloaded in a subclass.
Definition UnaryFieldOperatorObject.hpp:80