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

#include <peglib.h>

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

Public Member Functions

 SemanticValues ()=default
 SemanticValues (Context *c)
std::string_view sv () const
const std::string & name () const
std::pair< size_t, size_t > line_info () const
size_t choice_count () const
size_t choice () const
std::string_view token (size_t id=0) const
std::string token_to_string (size_t id=0) const
template<typename T>
token_to_number () const
template<typename T>
std::vector< T > transform (size_t beg=0, size_t end=static_cast< size_t >(-1)) const
void append (SemanticValues &chvs)

Public Attributes

const char * path = nullptr
const char * ss = nullptr
std::vector< unsigned int > tags
std::vector< std::string_view > tokens

Private Attributes

Contextc_ = nullptr
std::string_view sv_
size_t choice_count_ = 0
size_t choice_ = 0
std::string name_

Friends

class Context
class Dictionary
class Sequence
class PrioritizedChoice
class Repetition
class Holder
class PrecedenceClimbing

Constructor & Destructor Documentation

◆ SemanticValues() [1/2]

peg::SemanticValues::SemanticValues ( )
default
Here is the caller graph for this function:

◆ SemanticValues() [2/2]

peg::SemanticValues::SemanticValues ( Context * c)
inline
Here is the call graph for this function:

Member Function Documentation

◆ append()

void peg::SemanticValues::append ( SemanticValues & chvs)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ choice()

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

◆ choice_count()

size_t peg::SemanticValues::choice_count ( ) const
inline

◆ line_info()

std::pair< size_t, size_t > peg::SemanticValues::line_info ( ) const
inline

◆ name()

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

◆ sv()

std::string_view peg::SemanticValues::sv ( ) const
inline
Here is the caller graph for this function:

◆ token()

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

◆ token_to_number()

template<typename T>
T peg::SemanticValues::token_to_number ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ token_to_string()

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

◆ transform()

template<typename T>
std::vector< T > peg::SemanticValues::transform ( size_t beg = 0,
size_t end = static_cast<size_t>(-1) ) const
inline
Here is the caller graph for this function:

◆ Context

friend class Context
friend

◆ Dictionary

friend class Dictionary
friend

◆ Holder

friend class Holder
friend

◆ PrecedenceClimbing

friend class PrecedenceClimbing
friend

◆ PrioritizedChoice

friend class PrioritizedChoice
friend

◆ Repetition

friend class Repetition
friend

◆ Sequence

friend class Sequence
friend

Member Data Documentation

◆ c_

Context* peg::SemanticValues::c_ = nullptr
private

◆ choice_

size_t peg::SemanticValues::choice_ = 0
private

◆ choice_count_

size_t peg::SemanticValues::choice_count_ = 0
private

◆ name_

std::string peg::SemanticValues::name_
private

◆ path

const char* peg::SemanticValues::path = nullptr

◆ ss

const char* peg::SemanticValues::ss = nullptr

◆ sv_

std::string_view peg::SemanticValues::sv_
private

◆ tags

std::vector<unsigned int> peg::SemanticValues::tags

◆ tokens

std::vector<std::string_view> peg::SemanticValues::tokens

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