Empirical
Public Types | Public Member Functions | List of all members
emp::memo_function< R()> Class Template Reference

#include <memo_function.h>

Public Types

using size_t = std::size_t
 
using return_t = R
 
using index_t = void
 
using fun_t = std::function< R()>
 
using this_t = memo_function< R()>
 

Public Member Functions

template<typename T >
 memo_function (T &&fun_info)
 
 memo_function (const this_t &)=default
 
 memo_function (this_t &&)=default
 
 memo_function ()
 
this_toperator= (const this_t &)=default
 
this_toperator= (this_t &&)=default
 
this_toperator= (const fun_t &_f)
 
this_toperator= (fun_t &&_f)
 
template<typename T >
this_toperator= (T &&arg)
 
size_t size () const
 
bool Has () const
 
void Clear ()
 
void Erase ()
 
return_t operator() ()
 
 operator bool ()
 
 operator std::function<R ()>()
 
std::function< R()> to_function ()
 

Member Typedef Documentation

template<class R >
using emp::memo_function< R()>::fun_t = std::function<R()>
template<class R >
using emp::memo_function< R()>::index_t = void
template<class R >
using emp::memo_function< R()>::return_t = R
template<class R >
using emp::memo_function< R()>::size_t = std::size_t
template<class R >
using emp::memo_function< R()>::this_t = memo_function<R()>

Constructor & Destructor Documentation

template<class R >
template<typename T >
emp::memo_function< R()>::memo_function ( T &&  fun_info)
inline
template<class R >
emp::memo_function< R()>::memo_function ( const this_t )
default
template<class R >
emp::memo_function< R()>::memo_function ( this_t &&  )
default
template<class R >
emp::memo_function< R()>::memo_function ( )
inline

Member Function Documentation

template<class R >
void emp::memo_function< R()>::Clear ( )
inline
template<class R >
void emp::memo_function< R()>::Erase ( )
inline
template<class R >
bool emp::memo_function< R()>::Has ( ) const
inline
template<class R >
emp::memo_function< R()>::operator bool ( )
inline
template<class R >
emp::memo_function< R()>::operator std::function<R ( )
inline
template<class R >
return_t emp::memo_function< R()>::operator() ( )
inline
template<class R >
this_t& emp::memo_function< R()>::operator= ( const this_t )
default
template<class R >
this_t& emp::memo_function< R()>::operator= ( this_t &&  )
default
template<class R >
this_t& emp::memo_function< R()>::operator= ( const fun_t _f)
inline
template<class R >
this_t& emp::memo_function< R()>::operator= ( fun_t &&  _f)
inline
template<class R >
template<typename T >
this_t& emp::memo_function< R()>::operator= ( T &&  arg)
inline
template<class R >
size_t emp::memo_function< R()>::size ( ) const
inline
template<class R >
std::function<R()> emp::memo_function< R()>::to_function ( )
inline

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