g2o
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
SlamParser::Parser::by_state Struct Reference

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

Inheritance diagram for SlamParser::Parser::by_state:
Inheritance graph
[legend]

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.

◆ 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) {}

◆ 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) {}

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; }

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 SlamParser::Parser::symbol_kind::S_YYEMPTY, YY_CAST, and SlamParser::Parser::yystos_.

◆ 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 clear(), and state.

Member Data Documentation

◆ state

state_type SlamParser::Parser::by_state::state

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