g2o
Loading...
Searching...
No Matches
SlamParser::Parser::by_kind Struct Reference

Type access provider for token (enum) based symbols. More...

#include <bison_parser.h>

Inheritance diagram for SlamParser::Parser::by_kind:

Public Types

typedef token_kind_type kind_type
 The symbol kind as needed by the constructor.

Public Member Functions

 by_kind () YY_NOEXCEPT
 Default constructor.
 by_kind (const by_kind &that) YY_NOEXCEPT
 Copy constructor.
 by_kind (kind_type t) YY_NOEXCEPT
 Constructor from (external) token numbers.
void clear () YY_NOEXCEPT
 Record that this symbol is empty.
void move (by_kind &that)
 Steal the symbol kind from that.
symbol_kind_type kind () const YY_NOEXCEPT
symbol_kind_type type_get () const YY_NOEXCEPT
 Backward compatibility (Bison 3.6).

Public Attributes

symbol_kind_type kind_

Detailed Description

Type access provider for token (enum) based symbols.

Definition at line 363 of file bison_parser.h.

Member Typedef Documentation

◆ kind_type

The symbol kind as needed by the constructor.

Definition at line 365 of file bison_parser.h.

Constructor & Destructor Documentation

◆ by_kind() [1/3]

SlamParser::Parser::by_kind::by_kind ( )

Default constructor.

Definition at line 210 of file bison_parser.cpp.

References kind_, and YY_NOEXCEPT.

Referenced by by_kind(), and move().

◆ by_kind() [2/3]

SlamParser::Parser::by_kind::by_kind ( const by_kind & that)

Copy constructor.

Definition at line 218 of file bison_parser.cpp.

218: kind_(that.kind_) {}

References by_kind(), kind_, and YY_NOEXCEPT.

◆ by_kind() [3/3]

SlamParser::Parser::by_kind::by_kind ( kind_type t)

Constructor from (external) token numbers.

Definition at line 220 of file bison_parser.cpp.

221 : kind_(yytranslate_(t)) {}
static symbol_kind_type yytranslate_(int t) YY_NOEXCEPT

References kind_, and YY_NOEXCEPT.

Member Function Documentation

◆ clear()

void SlamParser::Parser::by_kind::clear ( )

Record that this symbol is empty.

Definition at line 223 of file bison_parser.cpp.

References kind_, SlamParser::Parser::symbol_kind::S_YYEMPTY, and YY_NOEXCEPT.

Referenced by move().

◆ kind()

Parser::symbol_kind_type SlamParser::Parser::by_kind::kind ( ) const

The (internal) type number (corresponding to type). empty when empty.

Definition at line 230 of file bison_parser.cpp.

230 {
231 return kind_;
232}

References kind_, and YY_NOEXCEPT.

Referenced by SlamParser::Parser::parse(), and type_get().

◆ move()

void SlamParser::Parser::by_kind::move ( by_kind & that)

Steal the symbol kind from that.

Definition at line 225 of file bison_parser.cpp.

225 {
226 kind_ = that.kind_;
227 that.clear();
228}

References by_kind(), clear(), and kind_.

◆ type_get()

Parser::symbol_kind_type SlamParser::Parser::by_kind::type_get ( ) const

Backward compatibility (Bison 3.6).

Definition at line 234 of file bison_parser.cpp.

234 {
235 return this->kind();
236}
symbol_kind_type kind() const YY_NOEXCEPT

References kind(), and YY_NOEXCEPT.

Member Data Documentation

◆ kind_

symbol_kind_type SlamParser::Parser::by_kind::kind_

The symbol kind. S_YYEMPTY when empty.

Definition at line 396 of file bison_parser.h.

Referenced by by_kind(), by_kind(), by_kind(), clear(), kind(), move(), SlamParser::Parser::parse(), and SlamParser::Parser::stack_symbol_type::stack_symbol_type().


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