Vcsn  2.2
Be Rational
vcsn::detail::dot::parser::by_type Struct Reference

Type access provider for token (enum) based symbols. More...

#include <parse.hh>

Collaboration diagram for vcsn::detail::dot::parser::by_type:

Public Types

typedef token_type kind_type
 The symbol type as needed by the constructor. More...
 

Public Member Functions

 by_type ()
 Default constructor. More...
 
 by_type (const by_type &other)
 Copy constructor. More...
 
 by_type (kind_type t)
 Constructor from (external) token numbers. More...
 
void clear ()
 Record that this symbol is empty. More...
 
void move (by_type &that)
 Steal the symbol type from that. More...
 
symbol_number_type type_get () const
 The (internal) type number (corresponding to type). More...
 
token_type token () const
 The token. More...
 

Public Attributes

int type
 The symbol type. More...
 

Detailed Description

Type access provider for token (enum) based symbols.

Definition at line 443 of file parse.hh.

Member Typedef Documentation

The symbol type as needed by the constructor.

Definition at line 452 of file parse.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 1040 of file parse.hh.

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

Copy constructor.

Definition at line 1045 of file parse.hh.

vcsn::detail::dot::parser::by_type::by_type ( kind_type  t)
inline

Constructor from (external) token numbers.

Definition at line 1050 of file parse.hh.

Member Function Documentation

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

Record that this symbol is empty.

Definition at line 1056 of file parse.hh.

References vcsn::detail::dot::parser::empty_symbol.

Referenced by move().

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

Steal the symbol type from that.

Definition at line 1063 of file parse.hh.

References clear(), and type.

Here is the call graph for this function:

parser::token_type vcsn::detail::dot::parser::by_type::token ( ) const
inline

The token.

Definition at line 1078 of file parse.hh.

References vcsn::dyn::type().

Here is the call graph for this function:

int vcsn::detail::dot::parser::by_type::type_get ( ) const
inline

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

empty when empty.

Definition at line 1071 of file parse.hh.

References vcsn::dyn::type().

Here is the call graph for this function:

Member Data Documentation

int vcsn::detail::dot::parser::by_type::type

The symbol type.

empty_symbol when empty. An int, not token_number_type, to be able to store empty_symbol.

Definition at line 473 of file parse.hh.

Referenced by move().


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