PUMA Library Reference Manual
Puma::Syntax::State Class Reference

#include <Puma/Syntax.h>

+ Inheritance diagram for Puma::Syntax::State:

Description

Parser state, the current position in the token stream.

Public Member Functions

 State ()
 Constructor. More...
 
 State (int)
 Constructor. More...
 
 State (const TokenProvider::State &s)
 Copy constructor. More...
 
- Public Member Functions inherited from Puma::BCList< Item, BUCKET_SIZE >::Iterator
 Iterator ()
 Construct an empty iterator. More...
 
 operator bool () const
 Check whether this iterator is in a valid state. More...
 
bool operator== (const Iterator &other) const
 Compare two iterators. More...
 
bool operator!= (const Iterator &other) const
 Compare two iterators. More...
 
Iteratoroperator++ ()
 Unary increment operator. More...
 
Iterator operator++ (int)
 Binary increment operator. More...
 
Iteratoroperator-- ()
 Unary decrement operator. More...
 
Iterator operator-- (int)
 Binary decrement operator. More...
 
Item & operator* () const
 Get the list item the iterator currently points to. More...
 
Item * operator-> () const
 Get a pointer to the list item the iterator currently points to. More...
 

Constructor & Destructor Documentation

◆ State() [1/3]

Puma::Syntax::State::State ( )
inline

Constructor.

◆ State() [2/3]

Puma::Syntax::State::State ( int  )
inline

Constructor.

◆ State() [3/3]

Puma::Syntax::State::State ( const TokenProvider::State s)
inline

Copy constructor.

Parameters
sThe parser state to copy.