18 template <
typename QuadAlgorithm,
typename Integrand>
19 class Integral :
public std::binary_function<typename Integrand::argument_type, typename Integrand::argument_type,
20 typename Integrand::result_type>
36 typename Integral::result_type
operator()(
typename Integral::first_argument_type l,
37 typename Integral::first_argument_type r)
const
51 template <
typename QuadAlgorithm,
typename Integrand>
Integral< QuadAlgorithm, Integrand > make_integral(QuadAlgorithm const &quad, Integrand const &ftor)
Helper function that returns an Integral for a quadrature algorithm and a functor.
Wrap a quadrature algoritm and a functor to produce an integral.
Integral::result_type operator()(typename Integral::first_argument_type l, typename Integral::first_argument_type r) const
Evaluates integral from l to r.
QuadAlgorithm fQuadAlgorithm
Integral(QuadAlgorithm const &quad, Integrand const &ftor)
Constructor initializes all datamembers.