Kea  1.9.9-git
isc::dhcp::Dhcp6Parser::basic_symbol< Base > Struct Template Reference

A complete symbol. More...

#include <dhcp6_parser.h>

+ Inheritance diagram for isc::dhcp::Dhcp6Parser::basic_symbol< Base >:

Public Types

typedef Base super_type
 Alias to Base. More...
 

Public Member Functions

 basic_symbol ()
 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 ElementPtr &v, const location_type &l)
 
 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 int64_t &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const std::string &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...
 
semantic_type value
 The semantic value. More...
 

Detailed Description

template<typename Base>
struct isc::dhcp::Dhcp6Parser::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 1382 of file dhcp6_parser.h.

Member Typedef Documentation

template<typename Base>
typedef Base isc::dhcp::Dhcp6Parser::basic_symbol< Base >::super_type

Alias to Base.

Definition at line 1385 of file dhcp6_parser.h.

Constructor & Destructor Documentation

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::basic_symbol ( )
inline

Default constructor.

Definition at line 1388 of file dhcp6_parser.h.

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

Constructors for typed symbols.

Definition at line 1446 of file dhcp6_parser.h.

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const ElementPtr v,
const location_type l 
)
inline

Definition at line 1459 of file dhcp6_parser.h.

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const bool &  v,
const location_type l 
)
inline

Definition at line 1473 of file dhcp6_parser.h.

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const double &  v,
const location_type l 
)
inline

Definition at line 1487 of file dhcp6_parser.h.

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const int64_t &  v,
const location_type l 
)
inline

Definition at line 1501 of file dhcp6_parser.h.

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

Definition at line 1515 of file dhcp6_parser.h.

template<typename Base>
isc::dhcp::Dhcp6Parser::basic_symbol< Base >::~basic_symbol ( )
inline

Destroy the symbol.

Definition at line 1523 of file dhcp6_parser.h.

Member Function Documentation

template<typename Base>
void isc::dhcp::Dhcp6Parser::basic_symbol< Base >::clear ( )
inline

Destroy contents, and record that is empty.

Definition at line 1529 of file dhcp6_parser.h.

Referenced by isc::dhcp::Dhcp6Parser::parse().

template<typename Base >
bool isc::dhcp::Dhcp6Parser::basic_symbol< Base >::empty ( ) const

Whether empty.

Definition at line 5399 of file dhcp6_parser.h.

References isc::dhcp::Dhcp6Parser::symbol_kind::S_YYEMPTY.

Referenced by isc::dhcp::Dhcp6Parser::parse().

template<typename Base>
std::string isc::dhcp::Dhcp6Parser::basic_symbol< Base >::name ( ) const
inline

The user-facing name of this symbol.

Definition at line 1579 of file dhcp6_parser.h.

template<typename Base >
Dhcp6Parser::symbol_kind_type isc::dhcp::Dhcp6Parser::basic_symbol< Base >::type_get ( ) const

Backward compatibility (Bison 3.6).

Definition at line 5392 of file dhcp6_parser.h.

Member Data Documentation

template<typename Base>
location_type isc::dhcp::Dhcp6Parser::basic_symbol< Base >::location

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