Kea: isc::dhcp::Dhcp4Parser::basic_symbol< Base > Struct Template Reference

| Kea 1.5.0

Public Types | Public Member Functions | Public Attributes | List of all members
isc::dhcp::Dhcp4Parser::basic_symbol< Base > Struct Template Reference

A complete symbol. More...

`#include <dhcp4_parser.h>`

Inheritance diagram for isc::dhcp::Dhcp4Parser::basic_symbol< Base >:
[legend]

## Public Types
typedef Base | super_type
| Alias to Base. More...

## Public Member Functions
| basic_symbol ()
| Default constructor. More...
| 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)
| Constructor for valueless symbols, and symbols from each type. More...
| basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l)
| basic_symbol (YY_RVREF(basic_symbol) other)
| Move or copy constructor. More...
| ~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::dhcp::Dhcp4Parser::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 734 of file dhcp4_parser.h.

## Member Typedef Documentation

## ◆ super_type

template<typename Base >

typedef Base isc::dhcp::Dhcp4Parser::basic_symbol< Base >::super_type

Alias to Base.

Definition at line 737 of file dhcp4_parser.h.

## Constructor & Destructor Documentation

## ◆ basic_symbol() [1/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( |  | ) |

Default constructor.

Definition at line 1811 of file dhcp4_parser.h.

## ◆ basic_symbol() [2/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( | YY_RVREF(basic_symbol< Base >) | other | ) |

Move or copy constructor.

Definition at line 1817 of file dhcp4_parser.h.

References isc::dhcp::Dhcp4Parser::basic_symbol< Base >::value, and YY_MOVE.

## ◆ basic_symbol() [3/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::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 1867 of file dhcp4_parser.h.

## ◆ basic_symbol() [4/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t,
|  | const ElementPtr & | v,
|  | const location_type & | l
| ) |  |

Definition at line 1881 of file dhcp4_parser.h.

## ◆ basic_symbol() [5/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t,
|  | const bool & | v,
|  | const location_type & | l
| ) |  |

Definition at line 1896 of file dhcp4_parser.h.

## ◆ basic_symbol() [6/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t,
|  | const double & | v,
|  | const location_type & | l
| ) |  |

Definition at line 1911 of file dhcp4_parser.h.

## ◆ basic_symbol() [7/8]

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t,
|  | const int64_t & | v,
|  | const location_type & | l
| ) |  |

Definition at line 1926 of file dhcp4_parser.h.

## ◆ basic_symbol() [8/8]

template<typename Base >

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

Definition at line 1941 of file dhcp4_parser.h.

## ◆ ~basic_symbol()

template<typename Base >

isc::dhcp::Dhcp4Parser::basic_symbol< Base >::~basic_symbol | ( |  | ) |

Destroy the symbol.

Definition at line 1950 of file dhcp4_parser.h.

## Member Function Documentation

## ◆ clear()

template<typename Base >

void isc::dhcp::Dhcp4Parser::basic_symbol< Base >::clear | ( |  | ) |

Destroy contents, and record that is empty.

Definition at line 1957 of file dhcp4_parser.h.

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

## ◆ empty()

template<typename Base >

bool isc::dhcp::Dhcp4Parser::basic_symbol< Base >::empty | ( |  | ) | const

Whether empty.

Definition at line 2008 of file dhcp4_parser.h.

References isc::dhcp::Dhcp4Parser::empty_symbol.

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

## ◆ move()

template<typename Base >

void isc::dhcp::Dhcp4Parser::basic_symbol< Base >::move | ( | basic_symbol< Base > & | s | ) |

Destructive move, s is emptied into this.

Definition at line 2015 of file dhcp4_parser.h.

References isc::dhcp::Dhcp4Parser::basic_symbol< Base >::location, isc::dhcp::Dhcp4Parser::basic_symbol< Base >::value, and YY_MOVE.

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

## Member Data Documentation

## ◆ location

template<typename Base >

location_type isc::dhcp::Dhcp4Parser::basic_symbol< Base >::location

The location.

Definition at line 795 of file dhcp4_parser.h.

Referenced by isc::dhcp::Dhcp4Parser::basic_symbol< Base >::move(), and isc::dhcp::Dhcp4Parser::parse().

## ◆ value

template<typename Base >

semantic_type isc::dhcp::Dhcp4Parser::basic_symbol< Base >::value

The semantic value.

Definition at line 792 of file dhcp4_parser.h.

Referenced by isc::dhcp::Dhcp4Parser::basic_symbol< Base >::basic_symbol(), and isc::dhcp::Dhcp4Parser::basic_symbol< Base >::move().

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

- dhcp4_parser.h