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

#include <peglib.h>

Inheritance diagram for peg::PrioritizedChoice:
[legend]
Collaboration diagram for peg::PrioritizedChoice:
[legend]

Public Member Functions

template<typename... Args>
 PrioritizedChoice (bool for_label, const Args &...args)
 PrioritizedChoice (const std::vector< std::shared_ptr< Ope > > &opes)
 PrioritizedChoice (std::vector< std::shared_ptr< Ope > > &&opes)
size_t parse_core (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override
void accept (Visitor &v) override
size_t size () const
Public Member Functions inherited from peg::Ope
virtual ~Ope ()=default
size_t parse (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const

Public Attributes

std::vector< std::shared_ptr< Ope > > opes_
bool for_label_ = false

Constructor & Destructor Documentation

◆ PrioritizedChoice() [1/3]

template<typename... Args>
peg::PrioritizedChoice::PrioritizedChoice ( bool for_label,
const Args &... args )
inline

◆ PrioritizedChoice() [2/3]

peg::PrioritizedChoice::PrioritizedChoice ( const std::vector< std::shared_ptr< Ope > > & opes)
inline

◆ PrioritizedChoice() [3/3]

peg::PrioritizedChoice::PrioritizedChoice ( std::vector< std::shared_ptr< Ope > > && opes)
inline

Member Function Documentation

◆ accept()

void peg::PrioritizedChoice::accept ( Visitor & v)
inlineoverridevirtual

Implements peg::Ope.

Here is the call graph for this function:

◆ parse_core()

size_t peg::PrioritizedChoice::parse_core ( const char * s,
size_t n,
SemanticValues & vs,
Context & c,
std::any & dt ) const
inlineoverridevirtual

Implements peg::Ope.

Here is the call graph for this function:

◆ size()

size_t peg::PrioritizedChoice::size ( ) const
inline

Member Data Documentation

◆ for_label_

bool peg::PrioritizedChoice::for_label_ = false

◆ opes_

std::vector<std::shared_ptr<Ope> > peg::PrioritizedChoice::opes_

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