30 #ifndef __UnaryFunctor_H
31 #define __UnaryFunctor_H 1
47 template<
typename T =
double>
53 typedef FunctorDomain<value_type> functordomain_type;
54 typedef boost::shared_ptr<functordomain_type> functordomain_ptrtype;
59 UnaryFunctor( std::string
const& name,
60 functordomain_ptrtype
const& domain = functordomain_ptrtype(
new UnboundedDomain<value_type>() ) )
66 UnaryFunctor( UnaryFunctor
const & uf )
69 M_domain( uf.M_domain )
72 virtual ~UnaryFunctor()
84 std::string
const& name()
const
93 functordomain_ptrtype
const& domain()
const
112 virtual void eval(
int nx, value_type
const* x, value_type* f )
const = 0;
124 functordomain_ptrtype M_domain;