faudes::Nonterminal Class Reference
[Pushdown PlugIn]

Nonterminals are constructed from two states and a stack symbol or one state and a stack symbol. More...

#include <pd_grammar.h>

List of all members.

Public Member Functions

 Nonterminal (const Idx state, const std::vector< Idx > symbols)
 Constructor for NonterminalEnd.
 Nonterminal (const Idx state1, const std::vector< Idx > symbols, const Idx state2)
 Constructor for NonterminalMid.
Idx StartState () const
 Getter for startState.
const std::vector< Idx > & OnStack () const
 Getter for onStack.
Idx EndState () const
 Getter for endState.
virtual std::string Str () const
 To String function.
bool operator< (const GrammarSymbol &other) const
 < operator
NonterminalClone () const
 Clone function.

Public Attributes

Idx mStartState
 The start state.
std::vector< IdxmOnStack
 The stack symbols.
Idx mEndState
 The end state.

Detailed Description

Nonterminals are constructed from two states and a stack symbol or one state and a stack symbol.

Overview

Overview

Contents

Contents

Definition at line 164 of file pd_grammar.h.


Constructor & Destructor Documentation

faudes::Nonterminal::Nonterminal ( const Idx  state,
const std::vector< Idx symbols 
) [inline]

Constructor for NonterminalEnd.

Definition at line 179 of file pd_grammar.h.

faudes::Nonterminal::Nonterminal ( const Idx  state1,
const std::vector< Idx symbols,
const Idx  state2 
) [inline]

Constructor for NonterminalMid.

Definition at line 184 of file pd_grammar.h.


Member Function Documentation

Nonterminal * faudes::Nonterminal::Clone (  )  const [virtual]

Clone function.

Allocates memory!

Returns:
pointer to cloned nonterminal

Implements faudes::GrammarSymbol.

Definition at line 109 of file pd_grammar.cpp.

Idx faudes::Nonterminal::EndState (  )  const [inline]

Getter for endState.

Returns:
Idx of the endState

Definition at line 208 of file pd_grammar.h.

const std::vector<Idx>& faudes::Nonterminal::OnStack (  )  const [inline]

Getter for onStack.

Returns:
indices of the stack symbols

Definition at line 200 of file pd_grammar.h.

bool faudes::Nonterminal::operator< ( const GrammarSymbol other  )  const [virtual]

< operator

Parameters:
other cmp
Returns:
true if this < cmp, else false

Implements faudes::GrammarSymbol.

Definition at line 88 of file pd_grammar.cpp.

Idx faudes::Nonterminal::StartState (  )  const [inline]

Getter for startState.

Returns:
Idx of the startState

Definition at line 192 of file pd_grammar.h.

std::string faudes::Nonterminal::Str ( void   )  const [virtual]

To String function.

Implements faudes::GrammarSymbol.

Definition at line 68 of file pd_grammar.cpp.


Member Data Documentation

The end state.

Definition at line 173 of file pd_grammar.h.

The stack symbols.

Definition at line 171 of file pd_grammar.h.

The start state.

Definition at line 169 of file pd_grammar.h.


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

libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen