Vcsn  2.8
Be Rational
vcsn::detail::dot::parser::by_state Struct Reference

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

Inheritance diagram for vcsn::detail::dot::parser::by_state:
Collaboration diagram for vcsn::detail::dot::parser::by_state:

Public Types

enum  { empty_state = -1 }
 The state number used to denote an empty symbol. More...
 
typedef state_type kind_type
 The symbol type as needed by the constructor. More...
 

Public Member Functions

 by_state ()
 Default constructor. More...
 
 by_state (kind_type s)
 Constructor. More...
 
 by_state (const by_state &other)
 Copy constructor. More...
 
void clear ()
 Record that this symbol is empty. More...
 
void move (by_state &that)
 Steal the symbol type from that. More...
 
symbol_number_type type_get () const
 The (internal) type number (corresponding to state). More...
 

Public Attributes

state_type state
 The state. More...
 

Detailed Description

Type access provider for state based symbols.

Definition at line 676 of file parse.hh.

Member Typedef Documentation

◆ kind_type

The symbol type as needed by the constructor.

Definition at line 682 of file parse.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The state number used to denote an empty symbol.

Enumerator
empty_state 

Definition at line 701 of file parse.hh.

Constructor & Destructor Documentation

◆ by_state() [1/3]

vcsn::detail::dot::parser::by_state::by_state ( )
inline

Default constructor.

Definition at line 272 of file parse.cc.

◆ by_state() [2/3]

vcsn::detail::dot::parser::by_state::by_state ( kind_type  s)
inline

Constructor.

Definition at line 297 of file parse.cc.

◆ by_state() [3/3]

vcsn::detail::dot::parser::by_state::by_state ( const by_state other)
inline

Copy constructor.

Definition at line 277 of file parse.cc.

Member Function Documentation

◆ clear()

void vcsn::detail::dot::parser::by_state::clear ( )
inline

Record that this symbol is empty.

Definition at line 283 of file parse.cc.

References empty_state, and state.

Referenced by move().

◆ move()

void vcsn::detail::dot::parser::by_state::move ( by_state that)
inline

Steal the symbol type from that.

Definition at line 290 of file parse.cc.

References clear(), and state.

Here is the call graph for this function:

◆ type_get()

parser::symbol_number_type vcsn::detail::dot::parser::by_state::type_get ( ) const
inline

The (internal) type number (corresponding to state).

empty_symbol when empty.

Definition at line 303 of file parse.cc.

References empty_state, vcsn::detail::dot::parser::empty_symbol, state, and vcsn::detail::dot::parser::yystos_.

Referenced by vcsn::detail::dot::parser::stack_symbol_type::operator=().

Member Data Documentation

◆ state

state_type vcsn::detail::dot::parser::by_state::state

The state.

empty when empty.

Definition at line 705 of file parse.hh.

Referenced by clear(), move(), vcsn::detail::dot::parser::stack_symbol_type::operator=(), vcsn::detail::dot::parser::parse(), and type_get().


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