![]() |
SG++-Doxygen-Documentation
|
Wrapper for std::function<Out(In)>. More...
#include <GeneralFunction.hpp>
Public Types | |
| typedef std::function< Out(In)> | function_type |
| typedef Out | output_type |
Public Member Functions | |
| Out | call (In in) const |
| Evaluates the function (for python use etc., does the same as operator()). More... | |
| GeneralFunction (Out(*ptr)(In)) | |
| for function pointers More... | |
| template<typename T > | |
| GeneralFunction (T const &f) | |
| for lambdas or function objects More... | |
| GeneralFunction () | |
| Default constructor, creating a constant zero function. More... | |
| function_type | getStdFunction () const |
| Out | operator() (In in) const |
| Evaluates the function. More... | |
Wrapper for std::function<Out(In)>.
This is necessary because SWIG can't handle std::function objects properly.
| typedef std::function<Out(In)> sgpp::combigrid::GeneralFunction< Out, In >::function_type |
| typedef Out sgpp::combigrid::GeneralFunction< Out, In >::output_type |
|
inlineexplicit |
for function pointers
|
inlineexplicit |
for lambdas or function objects
|
inline |
Default constructor, creating a constant zero function.
|
inline |
Evaluates the function (for python use etc., does the same as operator()).
|
inline |
Referenced by sgpp::combigrid::LejaPointDistribution::compute().
|
inline |
Evaluates the function.