SG++-Doxygen-Documentation
sgpp::combigrid::GeneralFunction1< Out > Class Template Reference

#include <GeneralFunction.hpp>

Public Types

typedef std::function< Out()> function_type
 
typedef Out output_type
 

Public Member Functions

Out call () const
 Evaluates the function (for python use etc., does the same as operator()). More...
 
 GeneralFunction1 (Out(*ptr)())
 for function pointers More...
 
template<typename T >
 GeneralFunction1 (T const &f)
 for lambdas or function objects More...
 
 GeneralFunction1 ()
 Default constructor, creating a constant zero function. More...
 
function_type getStdFunction () const
 
Out operator() () const
 Evaluates the function. More...
 

Member Typedef Documentation

◆ function_type

template<typename Out>
typedef std::function<Out()> sgpp::combigrid::GeneralFunction1< Out >::function_type

◆ output_type

template<typename Out>
typedef Out sgpp::combigrid::GeneralFunction1< Out >::output_type

Constructor & Destructor Documentation

◆ GeneralFunction1() [1/3]

template<typename Out>
sgpp::combigrid::GeneralFunction1< Out >::GeneralFunction1 ( Out(*)()  ptr)
inlineexplicit

for function pointers

◆ GeneralFunction1() [2/3]

template<typename Out>
template<typename T >
sgpp::combigrid::GeneralFunction1< Out >::GeneralFunction1 ( T const &  f)
inlineexplicit

for lambdas or function objects

◆ GeneralFunction1() [3/3]

template<typename Out>
sgpp::combigrid::GeneralFunction1< Out >::GeneralFunction1 ( )
inline

Default constructor, creating a constant zero function.

Member Function Documentation

◆ call()

template<typename Out>
Out sgpp::combigrid::GeneralFunction1< Out >::call ( ) const
inline

Evaluates the function (for python use etc., does the same as operator()).

◆ getStdFunction()

template<typename Out>
function_type sgpp::combigrid::GeneralFunction1< Out >::getStdFunction ( ) const
inline

◆ operator()()

template<typename Out>
Out sgpp::combigrid::GeneralFunction1< Out >::operator() ( ) const
inline

Evaluates the function.


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