Empirical
Public Member Functions | Protected Attributes | List of all members
emp::Function< RETURN(PARAMS...)> Class Template Reference

#include <GenericFunction.h>

Inheritance diagram for emp::Function< RETURN(PARAMS...)>:
emp::GenericFunction

Public Member Functions

template<typename... Ts>
 Function (Ts &&...args)
 The std::function to be called. More...
 
template<typename... Ts>
RETURN Call (Ts &&...args)
 Forward all args to std::function call. More...
 
template<typename... Ts>
RETURN operator() (Ts &&...args)
 Forward all args to std::function call. More...
 
template<typename T >
auto Convert ()
 Convert this GenericFunction into a derived emp::Function. More...
 

Protected Attributes

std::function< RETURN(PARAMS...)> fun
 

Constructor & Destructor Documentation

template<typename RETURN , typename... PARAMS>
template<typename... Ts>
emp::Function< RETURN(PARAMS...)>::Function ( Ts &&...  args)
inline

The std::function to be called.

Forward all args to std::function constructor...

Member Function Documentation

template<typename RETURN , typename... PARAMS>
template<typename... Ts>
RETURN emp::Function< RETURN(PARAMS...)>::Call ( Ts &&...  args)
inline

Forward all args to std::function call.

template<typename T >
auto emp::GenericFunction::Convert ( )
inherited

Convert this GenericFunction into a derived emp::Function.

template<typename RETURN , typename... PARAMS>
template<typename... Ts>
RETURN emp::Function< RETURN(PARAMS...)>::operator() ( Ts &&...  args)
inline

Forward all args to std::function call.

Member Data Documentation

template<typename RETURN , typename... PARAMS>
std::function<RETURN(PARAMS...)> emp::Function< RETURN(PARAMS...)>::fun
protected

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