ztsdb
Public Types | Public Member Functions | List of all members
cfgyy::parser::symbol_type Struct Reference

"External" symbols: returned by the scanner. More...

#include <cfgparser.hpp>

Inheritance diagram for cfgyy::parser::symbol_type:
cfgyy::parser::basic_symbol< by_type > cfgyy::parser::by_type

Public Types

typedef basic_symbol< by_typesuper_type
 Superclass.
 
- Public Types inherited from cfgyy::parser::basic_symbol< by_type >
typedef by_type super_type
 Alias to Base.
 
- Public Types inherited from cfgyy::parser::by_type
typedef token_type kind_type
 The symbol type as needed by the constructor.
 

Public Member Functions

 symbol_type ()
 Empty symbol.
 
 symbol_type (int tok, const location_type &l)
 Constructor for valueless symbols, and symbols from each type.
 
 symbol_type (int tok, const double &v, const location_type &l)
 
 symbol_type (int tok, const int64_t &v, const location_type &l)
 
 symbol_type (int tok, const std::string &v, const location_type &l)
 
- Public Member Functions inherited from cfgyy::parser::basic_symbol< by_type >
 basic_symbol ()
 Default constructor.
 
 basic_symbol (const basic_symbol &that)
 Copy constructor.
 
 basic_symbol (typename by_type ::kind_type t, const location_type &l)
 Constructor for valueless symbols, and symbols from each type.
 
 basic_symbol (typename by_type ::kind_type t, const cfg::configmap_t &v, const location_type &l)
 
 basic_symbol (typename by_type ::kind_type t, const double &v, const location_type &l)
 
 basic_symbol (typename by_type ::kind_type t, const int64_t &v, const location_type &l)
 
 basic_symbol (typename by_type ::kind_type t, const std::pair< std::string, cfg::CfgVariant > &v, const location_type &l)
 
 basic_symbol (typename by_type ::kind_type t, const std::string &v, const location_type &l)
 
 ~basic_symbol ()
 Destroy the symbol.
 
void clear ()
 Destroy contents, and record that is empty.
 
bool empty () const YY_NOEXCEPT
 Whether empty.
 
void move (basic_symbol &s)
 Destructive move, s is emptied into this.
 
- Public Member Functions inherited from cfgyy::parser::by_type
 by_type ()
 Default constructor.
 
 by_type (const by_type &that)
 Copy constructor.
 
 by_type (kind_type t)
 Constructor from (external) token numbers.
 
void clear ()
 Record that this symbol is empty.
 
void move (by_type &that)
 Steal the symbol type from that.
 
symbol_number_type type_get () const YY_NOEXCEPT
 

Additional Inherited Members

- Public Attributes inherited from cfgyy::parser::basic_symbol< by_type >
semantic_type value
 The semantic value.
 
location_type location
 The location.
 
- Public Attributes inherited from cfgyy::parser::by_type
int type
 

Detailed Description

"External" symbols: returned by the scanner.


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