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

#include <peglib.h>

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

Public Types

using MatchAction = std::function<void(const char *s, size_t n, Context &c)>

Public Member Functions

 Capture (const std::shared_ptr< Ope > &ope, MatchAction ma)
size_t parse_core (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override
void accept (Visitor &v) override
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_
MatchAction match_action_

Member Typedef Documentation

◆ MatchAction

using peg::Capture::MatchAction = std::function<void(const char *s, size_t n, Context &c)>

Constructor & Destructor Documentation

◆ Capture()

peg::Capture::Capture ( const std::shared_ptr< Ope > & ope,
MatchAction ma )
inline

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

Here is the call graph for this function:

◆ parse_core()

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

Member Data Documentation

◆ match_action_

MatchAction peg::Capture::match_action_

◆ ope_

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

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