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

#include <peglib.h>

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

Public Member Functions

 Repetition (const std::shared_ptr< Ope > &ope, size_t min, size_t max)
size_t parse_core (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override
void accept (Visitor &v) override
bool is_zom () 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

Static Public Member Functions

static std::shared_ptr< Repetitionzom (const std::shared_ptr< Ope > &ope)
static std::shared_ptr< Repetitionoom (const std::shared_ptr< Ope > &ope)
static std::shared_ptr< Repetitionopt (const std::shared_ptr< Ope > &ope)

Public Attributes

std::shared_ptr< Opeope_
size_t min_
size_t max_

Constructor & Destructor Documentation

◆ Repetition()

peg::Repetition::Repetition ( const std::shared_ptr< Ope > & ope,
size_t min,
size_t max )
inline

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

Here is the call graph for this function:

◆ is_zom()

bool peg::Repetition::is_zom ( ) const
inline

◆ oom()

std::shared_ptr< Repetition > peg::Repetition::oom ( const std::shared_ptr< Ope > & ope)
inlinestatic
Here is the caller graph for this function:

◆ opt()

std::shared_ptr< Repetition > peg::Repetition::opt ( const std::shared_ptr< Ope > & ope)
inlinestatic
Here is the caller graph for this function:

◆ parse_core()

size_t peg::Repetition::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:

◆ zom()

std::shared_ptr< Repetition > peg::Repetition::zom ( const std::shared_ptr< Ope > & ope)
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ max_

size_t peg::Repetition::max_

◆ min_

size_t peg::Repetition::min_

◆ ope_

std::shared_ptr<Ope> peg::Repetition::ope_

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