Vcsn  2.2a
Be Rational
vcsn::detail::dot::parser::stack_symbol_type Struct Reference

"Internal" symbol: element of the stack. More...

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

Public Types

typedef basic_symbol< by_statesuper_type
 Superclass. More...
- Public Types inherited from vcsn::detail::dot::parser::basic_symbol< by_state >
typedef by_state super_type
 Alias to Base. More...
- Public Types inherited from vcsn::detail::dot::parser::by_state
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

 stack_symbol_type ()
 Construct an empty symbol. More...
 stack_symbol_type (state_type s, symbol_type &sym)
 Steal the contents from sym to build this. More...
stack_symbol_typeoperator= (const stack_symbol_type &that)
 Assignment, needed by push_back. More...
- Public Member Functions inherited from vcsn::detail::dot::parser::basic_symbol< by_state >
 basic_symbol ()
 Default constructor. More...
 basic_symbol (const basic_symbol &other)
 Copy constructor. More...
 basic_symbol (typename by_state::kind_type t, const location_type &l)
 Constructor for valueless symbols, and symbols from each type. More...
 basic_symbol (typename by_state::kind_type t, const paths_t v, const location_type &l)
 basic_symbol (typename by_state::kind_type t, const states_t v, const location_type &l)
 basic_symbol (typename by_state::kind_type t, const string_t v, const location_type &l)
 basic_symbol (typename by_state::kind_type t, const semantic_type &v, const location_type &l)
 Constructor for symbols with semantic value. More...
 ~basic_symbol ()
 Destroy the symbol. More...
void clear ()
 Destroy contents, and record that is empty. More...
bool empty () const
 Whether empty. More...
void move (basic_symbol &s)
 Destructive move, s is emptied into this. More...
- Public Member Functions inherited from vcsn::detail::dot::parser::by_state
 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...

Additional Inherited Members

- Public Attributes inherited from vcsn::detail::dot::parser::basic_symbol< by_state >
semantic_type value
 The semantic value. More...
location_type location
 The location. More...
- Public Attributes inherited from vcsn::detail::dot::parser::by_state
state_type state
 The state. More...

Detailed Description

"Internal" symbol: element of the stack.

Definition at line 709 of file parse.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

vcsn::detail::dot::parser::stack_symbol_type::stack_symbol_type ( )

Construct an empty symbol.

Definition at line 312 of file

vcsn::detail::dot::parser::stack_symbol_type::stack_symbol_type ( state_type  s,
symbol_type sym 

Steal the contents from sym to build this.

Definition at line 317 of file

References vcsn::detail::dot::parser::empty_symbol, vcsn::detail::dot::variant< S >::move(), vcsn::detail::dot::parser::basic_symbol< Base >::value, and vcsn::detail::dot::parser::basic_symbol< by_state >::value.

Here is the call graph for this function:

Member Function Documentation

parser::stack_symbol_type & vcsn::detail::dot::parser::stack_symbol_type::operator= ( const stack_symbol_type that)

Assignment, needed by push_back.

Definition at line 356 of file

References vcsn::detail::dot::parser::basic_symbol< Base >::location, vcsn::detail::dot::parser::by_state::state, vcsn::detail::dot::parser::by_state::type_get(), and vcsn::detail::dot::parser::basic_symbol< Base >::value.

Here is the call graph for this function:

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