RetroArch
Public Member Functions | Public Attributes | Private Attributes | List of all members
peg::Capture Class Reference

#include <peglib.h>

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

Public Member Functions

 Capture (const std::shared_ptr< Ope > &ope, MatchAction ma, size_t id, const std::string &name)
 
size_t parse (const char *s, size_t n, SemanticValues &sv, Context &c, any &dt) const override
 
void accept (Visitor &v) override
 
- Public Member Functions inherited from peg::Ope
virtual ~Ope ()
 

Public Attributes

std::shared_ptr< Opeope_
 

Private Attributes

MatchAction match_action_
 
size_t id_
 
std::string name_
 

Constructor & Destructor Documentation

◆ Capture()

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

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

◆ parse()

size_t peg::Capture::parse ( const char *  s,
size_t  n,
SemanticValues sv,
Context c,
any dt 
) const
inlineoverridevirtual

Implements peg::Ope.

Here is the call graph for this function:

Member Data Documentation

◆ id_

size_t peg::Capture::id_
private

◆ match_action_

MatchAction peg::Capture::match_action_
private

◆ name_

std::string peg::Capture::name_
private

◆ ope_

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

The documentation for this class was generated from the following file: