|
faudes::TgotoGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Class Template Reference
[Pushdown PlugIn]
Generator for parsing with goto tables.
More...
#include <pd_gotogenerator.h>
List of all members.
Detailed Description
template<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
class faudes::TgotoGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
Generator for parsing with goto tables.
Definition at line 104 of file pd_gotogenerator.h.
Constructor & Destructor Documentation
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copy constructor.
- Parameters:
-
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copy constructor (no attributes).
- Parameters:
-
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Construct from file.
- Parameters:
-
- Exceptions:
-
| Exception |
- file format errors (id 1, 50, 51, 52)
|
Member Function Documentation
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Getter for the configuration set of a state.
- Parameters:
-
| index | the index of the state |
- Returns:
- the configuration set of the state
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Setter for the configuration set of a state.
- Parameters:
-
| index | the index of the state |
| configs | the configuration set |
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Construct on stack.
Constructs a TgotoGenerator on stack.
- Returns:
- new Generator
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Assignment operator (uses copy) Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly.
- Parameters:
-
| rOtherGen | Other generator |
Definition at line 134 of file pd_gotogenerator.h.
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition to generator.
- Parameters:
-
| rTrans | the transition |
| symbol | grammar symbol used for the transitions |
- Returns:
- True, if the transition was new in the generator
- Exceptions:
-
| Exception |
- state or event not in generator (id 95)
|
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition to generator by indices.
States must already exist!
- Parameters:
-
| x1 | Predecessor state index |
| symbol | grammar symbol used for the transition |
| x2 | Successor state index |
- Returns:
- True, if the transition was new the generator
- Exceptions:
-
| Exception |
- state or event not in generator (id 95)
|
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get first state with the specified configuration set as attribute.
- Parameters:
-
| configs | the configuration set |
- Returns:
- state index if the state was found, else 0
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Getter for the symbol of a transitions.
- Parameters:
-
- Returns:
- the symbol
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
The documentation for this class was generated from the following file:
libFAUDES 2.23h
--- 2014.04.03
--- c++ api documentaion by doxygen
|