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

#include <peglib.h>

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

Public Member Functions

 DefinitionReference (const std::unordered_map< std::string, Definition > &grammar, const std::string &name, const char *s)
 
size_t parse (const char *s, size_t n, SemanticValues &sv, Context &c, any &dt) const override
 
void accept (Visitor &v) override
 
std::shared_ptr< Opeget_rule () const
 
- Public Member Functions inherited from peg::Ope
virtual ~Ope ()
 

Public Attributes

const std::unordered_map< std::string, Definition > & grammar_
 
const std::string name_
 
const char * s_
 

Private Attributes

std::once_flag init_
 
std::shared_ptr< Operule_
 

Constructor & Destructor Documentation

◆ DefinitionReference()

peg::DefinitionReference::DefinitionReference ( const std::unordered_map< std::string, Definition > &  grammar,
const std::string name,
const char *  s 
)
inline

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

◆ get_rule()

std::shared_ptr< Ope > peg::DefinitionReference::get_rule ( ) const
inline
Here is the caller graph for this function:

◆ parse()

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

Implements peg::Ope.

Member Data Documentation

◆ grammar_

const std::unordered_map<std::string, Definition>& peg::DefinitionReference::grammar_

◆ init_

std::once_flag peg::DefinitionReference::init_
mutableprivate

◆ name_

const std::string peg::DefinitionReference::name_

◆ rule_

std::shared_ptr<Ope> peg::DefinitionReference::rule_
mutableprivate

◆ s_

const char* peg::DefinitionReference::s_

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