RetroArch
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
peg::Action Class Reference

#include <peglib.h>

Classes

struct  TypeAdaptor
 
struct  TypeAdaptor_c
 

Public Member Functions

 Action ()=default
 
 Action (const Action &rhs)
 
template<typename F , typename std::enable_if<!std::is_pointer< F >::value &&!std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
 Action (F fn)
 
template<typename F , typename std::enable_if< std::is_pointer< F >::value >::type *& = enabler>
 Action (F fn)
 
template<typename F , typename std::enable_if< std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
 Action (F)
 
template<typename F , typename std::enable_if<!std::is_pointer< F >::value &&!std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
void operator= (F fn)
 
template<typename F , typename std::enable_if< std::is_pointer< F >::value >::type *& = enabler>
void operator= (F fn)
 
template<typename F , typename std::enable_if< std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
void operator= (F)
 
Actionoperator= (const Action &rhs)=default
 
 operator bool () const
 
any operator() (const SemanticValues &sv, any &dt) const
 

Private Types

typedef std::function< any(const SemanticValues &sv, any &dt)> Fty
 

Private Member Functions

template<typename F , typename R >
Fty make_adaptor (F fn, R(F::*)(const SemanticValues &sv) const)
 
template<typename F , typename R >
Fty make_adaptor (F fn, R(F::*)(const SemanticValues &sv))
 
template<typename F , typename R >
Fty make_adaptor (F fn, R(*)(const SemanticValues &sv))
 
template<typename F , typename R >
Fty make_adaptor (F fn, R(F::*)(const SemanticValues &sv, any &dt) const)
 
template<typename F , typename R >
Fty make_adaptor (F fn, R(F::*)(const SemanticValues &sv, any &dt))
 
template<typename F , typename R >
Fty make_adaptor (F fn, R(*)(const SemanticValues &sv, any &dt))
 

Private Attributes

Fty fn_
 

Member Typedef Documentation

◆ Fty

typedef std::function<any (const SemanticValues& sv, any& dt)> peg::Action::Fty
private

Constructor & Destructor Documentation

◆ Action() [1/5]

peg::Action::Action ( )
default

◆ Action() [2/5]

peg::Action::Action ( const Action rhs)
inline

◆ Action() [3/5]

template<typename F , typename std::enable_if<!std::is_pointer< F >::value &&!std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
peg::Action::Action ( F  fn)
inline

◆ Action() [4/5]

template<typename F , typename std::enable_if< std::is_pointer< F >::value >::type *& = enabler>
peg::Action::Action ( F  fn)
inline

◆ Action() [5/5]

template<typename F , typename std::enable_if< std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
peg::Action::Action ( F  )
inline

Member Function Documentation

◆ make_adaptor() [1/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(F::*)(const SemanticValues &sv)  const 
)
inlineprivate
Here is the caller graph for this function:

◆ make_adaptor() [2/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(F::*)(const SemanticValues &sv)   
)
inlineprivate

◆ make_adaptor() [3/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(*)(const SemanticValues &sv)   
)
inlineprivate

◆ make_adaptor() [4/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(F::*)(const SemanticValues &sv, any &dt)  const 
)
inlineprivate

◆ make_adaptor() [5/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(F::*)(const SemanticValues &sv, any &dt)   
)
inlineprivate

◆ make_adaptor() [6/6]

template<typename F , typename R >
Fty peg::Action::make_adaptor ( F  fn,
R(*)(const SemanticValues &sv, any &dt)   
)
inlineprivate

◆ operator bool()

peg::Action::operator bool ( ) const
inline
Here is the call graph for this function:

◆ operator()()

any peg::Action::operator() ( const SemanticValues sv,
any dt 
) const
inline

◆ operator=() [1/4]

template<typename F , typename std::enable_if<!std::is_pointer< F >::value &&!std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
void peg::Action::operator= ( F  fn)
inline
Here is the call graph for this function:

◆ operator=() [2/4]

template<typename F , typename std::enable_if< std::is_pointer< F >::value >::type *& = enabler>
void peg::Action::operator= ( F  fn)
inline
Here is the call graph for this function:

◆ operator=() [3/4]

template<typename F , typename std::enable_if< std::is_same< F, std::nullptr_t >::value >::type *& = enabler>
void peg::Action::operator= ( F  )
inline

◆ operator=() [4/4]

Action& peg::Action::operator= ( const Action rhs)
default

Member Data Documentation

◆ fn_

Fty peg::Action::fn_
private

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