Vcsn  2.2a
Be Rational
vcsn::rat::parser::by_state Struct Reference

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

Inheritance diagram for vcsn::rat::parser::by_state:
Collaboration diagram for vcsn::rat::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 742 of file parse.hh.

Member Typedef Documentation

The symbol type as needed by the constructor.

Definition at line 748 of file parse.hh.

Member Enumeration Documentation

anonymous enum

The state number used to denote an empty symbol.

Enumerator
empty_state 

Definition at line 767 of file parse.hh.

Constructor & Destructor Documentation

vcsn::rat::parser::by_state::by_state ( )
inline

Default constructor.

Definition at line 251 of file parse.cc.

vcsn::rat::parser::by_state::by_state ( kind_type  s)
inline

Constructor.

Definition at line 276 of file parse.cc.

vcsn::rat::parser::by_state::by_state ( const by_state other)
inline

Copy constructor.

Definition at line 256 of file parse.cc.

Member Function Documentation

void vcsn::rat::parser::by_state::clear ( )
inline

Record that this symbol is empty.

Definition at line 262 of file parse.cc.

Referenced by move().

void vcsn::rat::parser::by_state::move ( by_state that)
inline

Steal the symbol type from that.

Definition at line 269 of file parse.cc.

References clear(), and state.

Here is the call graph for this function:

parser::symbol_number_type vcsn::rat::parser::by_state::type_get ( ) const
inline

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

empty_symbol when empty.

Definition at line 282 of file parse.cc.

References vcsn::rat::parser::empty_symbol, and vcsn::rat::parser::yystos_.

Referenced by vcsn::rat::parser::stack_symbol_type::operator=().

Member Data Documentation

state_type vcsn::rat::parser::by_state::state

The state.

empty when empty.

Definition at line 771 of file parse.hh.

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


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