Vcsn  2.2
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

The symbol type as needed by the constructor.

Definition at line 682 of file parse.hh.

Member Enumeration Documentation

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

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

Default constructor.

Definition at line 272 of file parse.cc.

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

Constructor.

Definition at line 297 of file parse.cc.

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

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

Record that this symbol is empty.

Definition at line 283 of file parse.cc.

Referenced by 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:

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 vcsn::detail::dot::parser::empty_symbol, and vcsn::detail::dot::parser::yystos_.

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

Member Data Documentation

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

The state.

empty when empty.

Definition at line 705 of file parse.hh.

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


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