Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::Predicate Class Reference

#include <peglib.h>

Public Member Functions

 Predicate ()=default
 Predicate (Predicate &&rhs)=default
template<typename F>
 Predicate (F fn)
template<typename F>
void operator= (F fn)
Predicateoperator= (const Predicate &rhs)=default
 operator bool () const
bool operator() (const SemanticValues &vs, const std::any &dt, std::string &msg, std::any &predicate_data) const

Private Types

using Fty

Private Member Functions

template<typename F>
Fty make_adaptor (F fn)

Private Attributes

Fty fn_

Member Typedef Documentation

◆ Fty

using peg::Predicate::Fty
private
Initial value:
std::function<bool(const SemanticValues &vs, const std::any &dt,
std::string &msg, std::any &predicate_data)>
Definition peglib.h:519

Constructor & Destructor Documentation

◆ Predicate() [1/3]

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

◆ Predicate() [2/3]

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

◆ Predicate() [3/3]

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

Member Function Documentation

◆ make_adaptor()

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

◆ operator bool()

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

◆ operator()()

bool peg::Predicate::operator() ( const SemanticValues & vs,
const std::any & dt,
std::string & msg,
std::any & predicate_data ) const
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ fn_

Fty peg::Predicate::fn_
private

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