Aprepro  5.0x
SEAMS::Parser::by_state Struct Reference

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

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
 

Public Attributes

state_type state
 

Detailed Description

Type access provider for state based symbols.

Member Typedef Documentation

◆ kind_type

The symbol type as needed by the constructor.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The state number used to denote an empty symbol.

Enumerator
empty_state 

Constructor & Destructor Documentation

◆ by_state() [1/3]

SEAMS::Parser::by_state::by_state ( )
inline

Default constructor.

◆ by_state() [2/3]

SEAMS::Parser::by_state::by_state ( kind_type  s)
inline

Constructor.

◆ by_state() [3/3]

SEAMS::Parser::by_state::by_state ( const by_state other)
inline

Copy constructor.

Member Function Documentation

◆ clear()

void SEAMS::Parser::by_state::clear ( )
inline

Record that this symbol is empty.

◆ move()

void SEAMS::Parser::by_state::move ( by_state that)
inline

Steal the symbol type from that.

◆ type_get()

Parser::symbol_number_type SEAMS::Parser::by_state::type_get ( ) const
inline

The (internal) type number (corresponding to state). empty_symbol when empty.

Member Data Documentation

◆ state

state_type SEAMS::Parser::by_state::state

The state. empty when empty.


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