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

#include <peglib.h>

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

Public Member Functions

 Holder (Definition *outer)
size_t parse_core (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override
void accept (Visitor &v) override
std::any reduce (SemanticValues &vs, std::any &dt) const
const std::string & name () const
const std::string & trace_name () 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::shared_ptr< Opeope_
Definitionouter_
std::once_flag trace_name_init_
std::string trace_name_

Friends

class Definition

Constructor & Destructor Documentation

◆ Holder()

peg::Holder::Holder ( Definition * outer)
inline
Here is the call graph for this function:

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

Here is the call graph for this function:

◆ name()

const std::string & peg::Holder::name ( ) const
inline

◆ parse_core()

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

◆ reduce()

std::any peg::Holder::reduce ( SemanticValues & vs,
std::any & dt ) const
inline
Here is the caller graph for this function:

◆ trace_name()

const std::string & peg::Holder::trace_name ( ) const
inline
Here is the caller graph for this function:

◆ Definition

friend class Definition
friend

Member Data Documentation

◆ ope_

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

◆ outer_

Definition* peg::Holder::outer_

◆ trace_name_

std::string peg::Holder::trace_name_
mutable

◆ trace_name_init_

std::once_flag peg::Holder::trace_name_init_
mutable

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