Kea  2.3.4-git
isc::eval::EvalParser::basic_symbol< Base > Struct Template Reference

A complete symbol. More...

#include <parser.h>

+ Inheritance diagram for isc::eval::EvalParser::basic_symbol< Base >:

Public Types

typedef Base super_type
 Alias to Base. More...
 

Public Member Functions

 basic_symbol () YY_NOEXCEPT
 Default constructor. More...
 
 basic_symbol (const basic_symbol &that)
 Copy constructor. More...
 
 basic_symbol (typename Base::kind_type t, const location_type &l)
 Constructors for typed symbols. More...
 
 basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const int8_t &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const uint16_t &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const uint32_t &v, const location_type &l)
 
 ~basic_symbol ()
 Destroy the symbol. More...
 
void clear () YY_NOEXCEPT
 Destroy contents, and record that is empty. More...
 
bool empty () const YY_NOEXCEPT
 Whether empty. More...
 
void move (basic_symbol &s)
 Destructive move, s is emptied into this. More...
 
std::string name () const YY_NOEXCEPT
 The user-facing name of this symbol. More...
 
symbol_kind_type type_get () const YY_NOEXCEPT
 Backward compatibility (Bison 3.6). More...
 

Public Attributes

location_type location
 The location. More...
 
value_type value
 The semantic value. More...
 

Detailed Description

template<typename Base>
struct isc::eval::EvalParser::basic_symbol< Base >

A complete symbol.

Expects its Base type to provide access to the symbol kind via kind ().

Provide access to semantic value and location.

Definition at line 688 of file parser.h.

Member Typedef Documentation

◆ super_type

template<typename Base>
typedef Base isc::eval::EvalParser::basic_symbol< Base >::super_type

Alias to Base.

Definition at line 691 of file parser.h.

Constructor & Destructor Documentation

◆ basic_symbol() [1/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( )
inline

Default constructor.

Definition at line 694 of file parser.h.

◆ basic_symbol() [2/12]

template<typename Base >
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( const basic_symbol< Base > &  that)

Copy constructor.

Definition at line 2483 of file parser.h.

◆ basic_symbol() [3/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const location_type l 
)
inline

Constructors for typed symbols.

Definition at line 767 of file parser.h.

◆ basic_symbol() [4/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const TokenOption::RepresentationType v,
const location_type l 
)
inline

Definition at line 780 of file parser.h.

◆ basic_symbol() [5/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const TokenPkt4::FieldType v,
const location_type l 
)
inline

Definition at line 794 of file parser.h.

◆ basic_symbol() [6/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const TokenPkt6::FieldType v,
const location_type l 
)
inline

Definition at line 808 of file parser.h.

◆ basic_symbol() [7/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const TokenPkt::MetadataType v,
const location_type l 
)
inline

Definition at line 822 of file parser.h.

◆ basic_symbol() [8/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const TokenRelay6Field::FieldType v,
const location_type l 
)
inline

Definition at line 836 of file parser.h.

◆ basic_symbol() [9/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const int8_t &  v,
const location_type l 
)
inline

Definition at line 850 of file parser.h.

◆ basic_symbol() [10/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const std::string &  v,
const location_type l 
)
inline

Definition at line 864 of file parser.h.

◆ basic_symbol() [11/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const uint16_t &  v,
const location_type l 
)
inline

Definition at line 878 of file parser.h.

◆ basic_symbol() [12/12]

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const uint32_t &  v,
const location_type l 
)
inline

Definition at line 892 of file parser.h.

◆ ~basic_symbol()

template<typename Base>
isc::eval::EvalParser::basic_symbol< Base >::~basic_symbol ( )
inline

Destroy the symbol.

Definition at line 900 of file parser.h.

Member Function Documentation

◆ clear()

template<typename Base>
void isc::eval::EvalParser::basic_symbol< Base >::clear ( )
inline

Destroy contents, and record that is empty.

Definition at line 908 of file parser.h.

Referenced by isc::eval::EvalParser::parse().

◆ empty()

template<typename Base >
bool isc::eval::EvalParser::basic_symbol< Base >::empty ( ) const

◆ move()

template<typename Base >
void isc::eval::EvalParser::basic_symbol< Base >::move ( basic_symbol< Base > &  s)

Destructive move, s is emptied into this.

Definition at line 2558 of file parser.h.

Referenced by isc::eval::EvalParser::parse().

◆ name()

template<typename Base>
std::string isc::eval::EvalParser::basic_symbol< Base >::name ( ) const
inline

The user-facing name of this symbol.

Definition at line 973 of file parser.h.

Referenced by isc::eval::EvalParser::syntax_error::~syntax_error().

◆ type_get()

template<typename Base >
EvalParser::symbol_kind_type isc::eval::EvalParser::basic_symbol< Base >::type_get ( ) const

Backward compatibility (Bison 3.6).

Definition at line 2543 of file parser.h.

Member Data Documentation

◆ location

◆ value


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