BALL::ExpressionParser::ExpressionParser::SyntaxTree Class Reference

SyntaxTree. More...

#include <expressionParser.h>

List of all members.


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
?????

Detailed Description

SyntaxTree.

This internal class should be used in the implementation of ExpressionParser only.


Member Function Documentation

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.


Generated on Thu Aug 6 18:30:31 2009 for BALL by doxygen 1.5.8