MADNESS  version 0.9
Public Types | Public Member Functions | Public Attributes | List of all members
madness::FunctorInterface< T, NDIM, opT > Class Template Reference

FunctorInterface interfaces a class or struct with an operator()() More...

#include <function_interface.h>

Inheritance diagram for madness::FunctorInterface< T, NDIM, opT >:
Inheritance graph
[legend]
Collaboration diagram for madness::FunctorInterface< T, NDIM, opT >:
Collaboration graph
[legend]

Public Types

typedef Vector< double, NDIMcoordT
 Type of vector holding coordinates. More...
 
typedef GenTensor< T > coeffT
 
- Public Types inherited from madness::FunctionFunctorInterface< T, NDIM >
typedef GenTensor< T > coeffT
 
typedef Key< NDIMkeyT
 

Public Member Functions

 FunctorInterface (const opT &op)
 
operator() (const coordT &x) const
 You should implement this to return f(x) More...
 
- Public Member Functions inherited from madness::FunctionFunctorInterface< T, NDIM >
virtual bool screened (const Vector< double, NDIM > &c1, const Vector< double, NDIM > &c2) const
 Can we screen this function based on the bounding box information? More...
 
virtual bool supports_vectorized () const
 Does the interface support a vectorized operator()? More...
 
virtual void operator() (const Vector< double *, 1 > &xvals, T *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 2 > &xvals, T *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 3 > &xvals, T *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 4 > &xvals, T *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 5 > &xvals, T *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 6 > &xvals, T *fvals, int npts) const
 
virtual std::vector< Vector
< double, NDIM > > 
special_points () const
 Override this to return list of special points to be refined more deeply. More...
 
virtual Level special_level ()
 Override this change level refinement for special points (default is 6) More...
 
virtual ~FunctionFunctorInterface ()
 
virtual coeffT coeff (const keyT &) const
 
virtual coeffT values (const keyT &key, const Tensor< double > &tensor) const
 
virtual bool provides_coeff () const
 does this functor directly provide sum coefficients? or only function values? More...
 

Public Attributes

opT op
 

Detailed Description

template<typename T, std::size_t NDIM, typename opT>
class madness::FunctorInterface< T, NDIM, opT >

FunctorInterface interfaces a class or struct with an operator()()

Member Typedef Documentation

template<typename T , std::size_t NDIM, typename opT >
typedef GenTensor<T> madness::FunctorInterface< T, NDIM, opT >::coeffT
template<typename T , std::size_t NDIM, typename opT >
typedef Vector<double, NDIM> madness::FunctorInterface< T, NDIM, opT >::coordT

Type of vector holding coordinates.

Constructor & Destructor Documentation

template<typename T , std::size_t NDIM, typename opT >
madness::FunctorInterface< T, NDIM, opT >::FunctorInterface ( const opT &  op)
inline

Member Function Documentation

template<typename T , std::size_t NDIM, typename opT >
T madness::FunctorInterface< T, NDIM, opT >::operator() ( const coordT x) const
inlinevirtual

You should implement this to return f(x)

Implements madness::FunctionFunctorInterface< T, NDIM >.

References madness::FunctorInterface< T, NDIM, opT >::op.

Member Data Documentation

template<typename T , std::size_t NDIM, typename opT >
opT madness::FunctorInterface< T, NDIM, opT >::op

The documentation for this class was generated from the following file: