1#ifndef _RHEOLEF_FIELD_FUNCTOR_H
2#define _RHEOLEF_FIELD_FUNCTOR_H
30#include "rheolef/point.h"
82template <
class Function,
class Result>
84 : std::unary_function<point_basic<float_traits<Result> >,Result> {
85 const Function&
get_ref()
const {
return static_cast<const Function&
>(*this); }
86 operator Function()
const {
return get_ref(); }
93template <
class F,
class R>
103 typedef typename F::result_type R;
see the point page for the full documentation
This file is part of Rheolef.
field_function_s< std::function< F >, typename F::result_type > field_function(F f)
float_traits< R >::type float_type
R operator()(const point_basic< float_type > &x) const
Result operator()(const point &x) const
const Function & get_ref() const