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

Type access provider for state based symbols. More...

Inheritance diagram for SlamParser::Parser::by_state:

Public Types

enum  { empty_state = 0 }
typedef state_type kind_type
 The symbol kind as needed by the constructor.

Public Member Functions

 by_state () YY_NOEXCEPT
 Default constructor.
 by_state (kind_type s) YY_NOEXCEPT
 Constructor.
 by_state (const by_state &that) YY_NOEXCEPT
 Copy constructor.
void clear () YY_NOEXCEPT
 Record that this symbol is empty.
void move (by_state &that)
 Steal the symbol kind from that.
symbol_kind_type kind () const YY_NOEXCEPT

Public Attributes

state_type state

Detailed Description

Type access provider for state based symbols.

Definition at line 575 of file bison_parser.h.

Member Typedef Documentation

◆ kind_type

The symbol kind as needed by the constructor.

Definition at line 580 of file bison_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The state number used to denote an empty symbol. We use the initial state, as it does not have a value.

Enumerator
empty_state 

Definition at line 600 of file bison_parser.h.

Constructor & Destructor Documentation

◆ by_state() [1/3]

SlamParser::Parser::by_state::by_state ( )

Default constructor.

Definition at line 239 of file bison_parser.cpp.

References empty_state, state, and YY_NOEXCEPT.

Referenced by by_state(), and move().

◆ by_state() [2/3]

SlamParser::Parser::by_state::by_state ( kind_type s)

Constructor.

Definition at line 251 of file bison_parser.cpp.

251: state(s) {}

References state, and YY_NOEXCEPT.

◆ by_state() [3/3]

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

Copy constructor.

Definition at line 241 of file bison_parser.cpp.

242 : state(that.state) {}

References by_state(), state, and YY_NOEXCEPT.

Member Function Documentation

◆ clear()

void SlamParser::Parser::by_state::clear ( )

Record that this symbol is empty.

Definition at line 244 of file bison_parser.cpp.

244{ state = empty_state; }

References empty_state, state, and YY_NOEXCEPT.

Referenced by move().

◆ kind()

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

The symbol kind (corresponding to state). symbol_kind::S_YYEMPTY when empty.

Definition at line 253 of file bison_parser.cpp.

253 {
254 if (state == empty_state)
256 else
258}
#define YY_CAST(Type, Val)
symbol_kind::symbol_kind_type symbol_kind_type
(Internal) symbol kind.
static const signed char yystos_[]

References empty_state, SlamParser::Parser::symbol_kind::S_YYEMPTY, state, YY_CAST, YY_NOEXCEPT, and SlamParser::Parser::yystos_.

Referenced by SlamParser::Parser::basic_symbol< by_state >::name().

◆ move()

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

Steal the symbol kind from that.

Definition at line 246 of file bison_parser.cpp.

246 {
247 state = that.state;
248 that.clear();
249}

References by_state(), clear(), and state.

Member Data Documentation

◆ state


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