Vcsn  2.3
Be Rational
vcsn::rat::parser::stack_symbol_type Struct Reference

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

Inheritance diagram for vcsn::rat::parser::stack_symbol_type:
Collaboration diagram for vcsn::rat::parser::stack_symbol_type:

Public Types

typedef basic_symbol< by_statesuper_type
 Superclass. More...
 
- Public Types inherited from vcsn::rat::parser::basic_symbol< by_state >
typedef by_state super_type
 Alias to Base. More...
 
- Public Types inherited from vcsn::rat::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::rat::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 braced_expression v, const location_type &l)
 
 basic_symbol (typename by_state::kind_type t, const class_t v, const location_type &l)
 
 basic_symbol (typename by_state::kind_type t, const dyn::weight v, const location_type &l)
 
 basic_symbol (typename by_state::kind_type t, const irange_type v, const location_type &l)
 
 basic_symbol (typename by_state::kind_type t, const std::string v, const location_type &l)
 
 basic_symbol (typename by_state::kind_type t, const std::vector< vcsn::dyn::expression > 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::rat::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::rat::parser::basic_symbol< by_state >
semantic_type value
 The semantic value. More...
 
location_type location
 The location. More...
 
- Public Attributes inherited from vcsn::rat::parser::by_state
state_type state
 The state. More...
 

Detailed Description

"Internal" symbol: element of the stack.

Definition at line 785 of file parse.hh.

Member Typedef Documentation

Superclass.

Definition at line 788 of file parse.hh.

Constructor & Destructor Documentation

vcsn::rat::parser::stack_symbol_type::stack_symbol_type ( )
inline

Construct an empty symbol.

Definition at line 291 of file parse.cc.

vcsn::rat::parser::stack_symbol_type::stack_symbol_type ( state_type  s,
symbol_type sym 
)
inline

Steal the contents from sym to build this.

Definition at line 296 of file parse.cc.

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

Here is the call graph for this function:

Member Function Documentation

parser::stack_symbol_type & vcsn::rat::parser::stack_symbol_type::operator= ( const stack_symbol_type that)
inline

Assignment, needed by push_back.

Definition at line 339 of file parse.cc.

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

Here is the call graph for this function:


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