RetroArch
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
peg::SemanticValues Struct Reference

#include <peglib.h>

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

Public Member Functions

const char * c_str () const
 
size_t length () const
 
std::string str () const
 
std::pair< size_t, size_t > line_info () const
 
size_t choice () const
 
std::string token (size_t id=0) const
 
template<typename T >
auto transform (size_t beg=0, size_t end=static_cast< size_t >(-1)) const -> vector< T >
 
 SemanticValues ()
 

Public Attributes

const char * path
 
const char * ss
 
std::vector< std::pair< const char *, size_t > > tokens
 

Private Member Functions

template<typename F >
auto transform (F f) const -> vector< typename std::remove_const< decltype(f(any()))>::type >
 
template<typename F >
auto transform (size_t beg, size_t end, F f) const -> vector< typename std::remove_const< decltype(f(any()))>::type >
 

Private Attributes

const char * s_
 
size_t n_
 
size_t choice_
 

Friends

class Context
 
class PrioritizedChoice
 
class Holder
 

Constructor & Destructor Documentation

◆ SemanticValues()

peg::SemanticValues::SemanticValues ( )
inline

Member Function Documentation

◆ c_str()

const char* peg::SemanticValues::c_str ( ) const
inline
Here is the caller graph for this function:

◆ choice()

size_t peg::SemanticValues::choice ( ) const
inline
Here is the caller graph for this function:

◆ length()

size_t peg::SemanticValues::length ( ) const
inline
Here is the caller graph for this function:

◆ line_info()

std::pair<size_t, size_t> peg::SemanticValues::line_info ( ) const
inline
Here is the call graph for this function:

◆ str()

std::string peg::SemanticValues::str ( ) const
inline

◆ token()

std::string peg::SemanticValues::token ( size_t  id = 0) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transform() [1/3]

template<typename T >
auto peg::SemanticValues::transform ( size_t  beg = 0,
size_t  end = static_cast<size_t>(-1) 
) const -> vector<T>
inline

◆ transform() [2/3]

template<typename F >
auto peg::SemanticValues::transform ( F  f) const -> vector<typename std::remove_const<decltype(f(any()))>::type>
inlineprivate

◆ transform() [3/3]

template<typename F >
auto peg::SemanticValues::transform ( size_t  beg,
size_t  end,
F  f 
) const -> vector<typename std::remove_const<decltype(f(any()))>::type>
inlineprivate

Friends And Related Function Documentation

◆ Context

friend class Context
friend

◆ Holder

friend class Holder
friend

◆ PrioritizedChoice

friend class PrioritizedChoice
friend

Member Data Documentation

◆ choice_

size_t peg::SemanticValues::choice_
private

◆ n_

size_t peg::SemanticValues::n_
private

◆ path

const char* peg::SemanticValues::path

◆ s_

const char* peg::SemanticValues::s_
private

◆ ss

const char* peg::SemanticValues::ss

◆ tokens

std::vector<std::pair<const char*, size_t> > peg::SemanticValues::tokens

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