#include <expressionParser.h>
Public Types | |
Type Definitions | |
typedef list< SyntaxTree * >::iterator | Iterator |
An iterator for the children of a given node. | |
typedef list< SyntaxTree * >::const_iterator | ConstIterator |
A const iterator for the children of a given node. | |
Public Member Functions | |
Constructors and Destructors | |
SyntaxTree () throw () | |
Default constructor. | |
SyntaxTree (const char *predicate_name, const char *args) throw () | |
Detailed constructor. | |
SyntaxTree (SyntaxTree *left, SyntaxTree *right, ExpressionTree::Type type) throw () | |
Detailed constructor. | |
virtual | ~SyntaxTree () throw () |
Destructor. | |
Assignment | |
virtual void | clear () throw () |
Clear method. | |
Accessors | |
Iterator | begin () throw () |
Return a mutable iterator pointing to the first child. | |
Iterator | end () throw () |
Return a mutable iterator pointing to the last child. | |
ConstIterator | begin () const throw () |
Return a constant iterator pointing to the first child. | |
ConstIterator | end () const throw () |
Return a constant iterator pointing to the last child. | |
Debugging | |
void | dump (std::ostream &is=std::cout, Size depth=0) const throw () |
Public Attributes | |
Public attributes | |
String | expression |
String | predicate |
????? | |
String | argument |
????? | |
bool | evaluated |
????? | |
bool | negate |
????? | |
ExpressionTree::Type | type |
????? | |
list< SyntaxTree * > | children |
????? |
This internal class should be used in the implementation of ExpressionParser only.
|
Default constructor.
|
|
Detailed constructor.
|
|
Destructor.
|
|
Return a constant iterator pointing to the first child.
|
|
Return a mutable iterator pointing to the first child.
|
|
Clear method. This method brings this instance to the state after default construction. Note that the list of children will be cleared but the childrem themselves will {not} be deleted. |
|
Return a constant iterator pointing to the last child.
|
|
Return a mutable iterator pointing to the last child.
|