#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 () | |
| Default constructor. |
|
| SyntaxTree (const char *predicate_name, const char *args) | |
| Detailed constructor. |
|
| SyntaxTree (SyntaxTree *left, SyntaxTree *right, ExpressionTree::Type type) | |
| Detailed constructor. |
|
| virtual | ~SyntaxTree () |
| Destructor. |
|
|
Assignment
|
|
| virtual void | clear () |
| Clear method. |
|
|
Accessors
|
|
| Iterator | begin () |
| Return a mutable iterator pointing
to the first child. |
|
| Iterator | end () |
| Return a mutable iterator pointing
to the last child. |
|
| ConstIterator | begin () const |
| Return a constant iterator pointing
to the first child. |
|
| ConstIterator | end () const |
| Return a constant iterator pointing
to the last child. |
|
|
Debugging
|
|
| void | dump (std::ostream &is=std::cout, Size depth=0) const |
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.
| virtual void BALL::ExpressionParser::ExpressionParser::SyntaxTree::clear | ( | ) | [virtual] |
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.
1.5.8