Kea 2.7.5
isc::d2::D2Parser::symbol_type Struct Reference

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

#include <d2_parser.h>

+ Inheritance diagram for isc::d2::D2Parser::symbol_type:

Public Types

typedef basic_symbol< by_kindsuper_type
 Superclass.
 
- Public Types inherited from isc::d2::D2Parser::basic_symbol< Base >
typedef Base super_type
 Alias to Base.
 

Public Member Functions

 symbol_type () YY_NOEXCEPT
 Empty symbol.
 
 symbol_type (int tok, const bool &v, const location_type &l)
 
 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 location_type &l)
 Constructor for valueless symbols, and symbols from each type.
 
 symbol_type (int tok, const std::string &v, const location_type &l)
 
- Public Member Functions inherited from isc::d2::D2Parser::basic_symbol< Base >
 basic_symbol () YY_NOEXCEPT
 Default constructor.
 
 basic_symbol (const basic_symbol &that)
 Copy constructor.
 
 basic_symbol (typename Base::kind_type t, const bool &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const double &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const ElementPtr &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const int64_t &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const location_type &l)
 Constructors for typed symbols.
 
 basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l)
 
 ~basic_symbol ()
 Destroy the symbol.
 
void clear () YY_NOEXCEPT
 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.
 
std::string name () const YY_NOEXCEPT
 The user-facing name of this symbol.
 
symbol_kind_type type_get () const YY_NOEXCEPT
 Backward compatibility (Bison 3.6).
 

Additional Inherited Members

- Public Attributes inherited from isc::d2::D2Parser::basic_symbol< Base >
location_type location
 The location.
 
value_type value
 The semantic value.
 

Detailed Description

"External" symbols: returned by the scanner.

Definition at line 1155 of file d2_parser.h.

Member Typedef Documentation

◆ super_type

Superclass.

Definition at line 1158 of file d2_parser.h.

Constructor & Destructor Documentation

◆ symbol_type() [1/6]

isc::d2::D2Parser::symbol_type::symbol_type ( )
inline

Empty symbol.

Definition at line 1161 of file d2_parser.h.

◆ symbol_type() [2/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int tok,
const location_type & l )
inline

Constructor for valueless symbols, and symbols from each type.

Definition at line 1168 of file d2_parser.h.

References D2_PARSER__ASSERT.

◆ symbol_type() [3/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int tok,
const bool & v,
const location_type & l )
inline

Definition at line 1181 of file d2_parser.h.

References D2_PARSER__ASSERT.

◆ symbol_type() [4/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int tok,
const double & v,
const location_type & l )
inline

Definition at line 1193 of file d2_parser.h.

References D2_PARSER__ASSERT.

◆ symbol_type() [5/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int tok,
const int64_t & v,
const location_type & l )
inline

Definition at line 1205 of file d2_parser.h.

References D2_PARSER__ASSERT.

◆ symbol_type() [6/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int tok,
const std::string & v,
const location_type & l )
inline

Definition at line 1217 of file d2_parser.h.

References D2_PARSER__ASSERT.


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