Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::Action Class Reference

#include <peglib.h>

Public Member Functions

 Action ()=default
 Action (Action &&rhs)=default
template<typename F>
 Action (F fn)
template<typename F>
void operator= (F fn)
Actionoperator= (const Action &rhs)=default
 operator bool () const
std::any operator() (SemanticValues &vs, std::any &dt) const

Private Types

using Fty = std::function<std::any(SemanticValues &vs, std::any &dt)>

Private Member Functions

template<typename F>
Fty make_adaptor (F fn)

Private Attributes

Fty fn_

Member Typedef Documentation

◆ Fty

using peg::Action::Fty = std::function<std::any(SemanticValues &vs, std::any &dt)>
private

Constructor & Destructor Documentation

◆ Action() [1/3]

peg::Action::Action ( )
default
Here is the caller graph for this function:

◆ Action() [2/3]

peg::Action::Action ( Action && rhs)
default
Here is the call graph for this function:

◆ Action() [3/3]

template<typename F>
peg::Action::Action ( F fn)
inline
Here is the call graph for this function:

Member Function Documentation

◆ make_adaptor()

template<typename F>
Fty peg::Action::make_adaptor ( F fn)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator bool()

peg::Action::operator bool ( ) const
inline

◆ operator()()

std::any peg::Action::operator() ( SemanticValues & vs,
std::any & dt ) const
inline

◆ operator=() [1/2]

Action & peg::Action::operator= ( const Action & rhs)
default
Here is the call graph for this function:

◆ operator=() [2/2]

template<typename F>
void peg::Action::operator= ( F fn)
inline
Here is the call graph for this function:

Member Data Documentation

◆ fn_

Fty peg::Action::fn_
private

The documentation for this class was generated from the following file:
  • libcockatrice_utility/libcockatrice/utility/peglib.h