Kea  1.5.0
isc::agent::AgentParser::basic_symbol< Base > Struct Template Reference

A complete symbol. More...

#include <agent_parser.h>

+ Inheritance diagram for isc::agent::AgentParser::basic_symbol< Base >:

Public Types

typedef Base super_type
 Alias to Base. More...
 

Public Member Functions

 basic_symbol ()
 Default constructor. More...
 
 basic_symbol (YY_RVREF(basic_symbol) other)
 Move or copy constructor. More...
 
 basic_symbol (typename Base::kind_type t, const location_type &l)
 Constructor for valueless symbols, and symbols from each type. 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 ()
 Destroy contents, and record that is empty. More...
 
bool empty () const
 Whether empty. More...
 
void move (basic_symbol &s)
 Destructive move, s is emptied into this. More...
 

Public Attributes

location_type location
 The location. More...
 
semantic_type value
 The semantic value. More...
 

Detailed Description

template<typename Base>
struct isc::agent::AgentParser::basic_symbol< Base >

A complete symbol.

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

Provide access to semantic value and location.

Definition at line 604 of file agent_parser.h.

Member Typedef Documentation

◆ super_type

template<typename Base>
typedef Base isc::agent::AgentParser::basic_symbol< Base >::super_type

Alias to Base.

Definition at line 607 of file agent_parser.h.

Constructor & Destructor Documentation

◆ basic_symbol() [1/8]

template<typename Base >
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( )

Default constructor.

Definition at line 1172 of file agent_parser.h.

◆ basic_symbol() [2/8]

template<typename Base >
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( YY_RVREF(basic_symbol< Base >)  other)

Move or copy constructor.

Definition at line 1178 of file agent_parser.h.

◆ basic_symbol() [3/8]

template<typename Base>
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const location_type l 
)

Constructor for valueless symbols, and symbols from each type.

Definition at line 1223 of file agent_parser.h.

◆ basic_symbol() [4/8]

template<typename Base>
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const ElementPtr v,
const location_type l 
)

Definition at line 1237 of file agent_parser.h.

◆ basic_symbol() [5/8]

template<typename Base>
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const bool &  v,
const location_type l 
)

Definition at line 1252 of file agent_parser.h.

◆ basic_symbol() [6/8]

template<typename Base>
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const double &  v,
const location_type l 
)

Definition at line 1267 of file agent_parser.h.

◆ basic_symbol() [7/8]

template<typename Base>
isc::agent::AgentParser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const int64_t &  v,
const location_type l 
)

Definition at line 1282 of file agent_parser.h.

◆ basic_symbol() [8/8]

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

Definition at line 1297 of file agent_parser.h.

◆ ~basic_symbol()

template<typename Base >
isc::agent::AgentParser::basic_symbol< Base >::~basic_symbol ( )

Destroy the symbol.

Definition at line 1306 of file agent_parser.h.

Member Function Documentation

◆ clear()

template<typename Base >
void isc::agent::AgentParser::basic_symbol< Base >::clear ( )

Destroy contents, and record that is empty.

Definition at line 1313 of file agent_parser.h.

Referenced by isc::agent::AgentParser::parse().

◆ empty()

template<typename Base >
bool isc::agent::AgentParser::basic_symbol< Base >::empty ( ) const

Whether empty.

Definition at line 1359 of file agent_parser.h.

Referenced by isc::agent::AgentParser::parse().

◆ move()

template<typename Base >
void isc::agent::AgentParser::basic_symbol< Base >::move ( basic_symbol< Base > &  s)

Destructive move, s is emptied into this.

Definition at line 1366 of file agent_parser.h.

Referenced by isc::agent::AgentParser::parse().

Member Data Documentation

◆ location

template<typename Base>
location_type isc::agent::AgentParser::basic_symbol< Base >::location

◆ value


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