BALL::ExpressionParser::SyntaxTree Class Reference

#include <BALL/KERNEL/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 ()
 SyntaxTree (const char *predicate_name, const char *args)
 SyntaxTree (SyntaxTree *left, SyntaxTree *right, ExpressionTree::Type type)
virtual ~SyntaxTree ()
Assignment
virtual void clear ()
Accessors
Iterator begin ()
Iterator end ()
ConstIterator begin () const
ConstIterator end () const
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.

Definition at line 33 of file expressionParser.h.


Member Typedef Documentation

A const iterator for the children of a given node.

Definition at line 45 of file expressionParser.h.

An iterator for the children of a given node.

Definition at line 42 of file expressionParser.h.


Constructor & Destructor Documentation

BALL::ExpressionParser::SyntaxTree::SyntaxTree (  ) 

Default constructor.

BALL::ExpressionParser::SyntaxTree::SyntaxTree ( const char *  predicate_name,
const char *  args 
)

Detailed constructor.

BALL::ExpressionParser::SyntaxTree::SyntaxTree ( SyntaxTree left,
SyntaxTree right,
ExpressionTree::Type  type 
)

Detailed constructor

virtual BALL::ExpressionParser::SyntaxTree::~SyntaxTree (  )  [virtual]

Destructor.


Member Function Documentation

ConstIterator BALL::ExpressionParser::SyntaxTree::begin (  )  const

Return a constant iterator pointing to the first child.

Iterator BALL::ExpressionParser::SyntaxTree::begin (  ) 

Return a mutable iterator pointing to the first child.

virtual void BALL::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.

void BALL::ExpressionParser::SyntaxTree::dump ( std::ostream &  is = std::cout,
Size  depth = 0 
) const
ConstIterator BALL::ExpressionParser::SyntaxTree::end (  )  const

Return a constant iterator pointing to the last child.

Iterator BALL::ExpressionParser::SyntaxTree::end (  ) 

Return a mutable iterator pointing to the last child.


Member Data Documentation

?????

Definition at line 123 of file expressionParser.h.

?????

Definition at line 139 of file expressionParser.h.

?????

Definition at line 127 of file expressionParser.h.

Definition at line 115 of file expressionParser.h.

?????

Definition at line 131 of file expressionParser.h.

?????

Definition at line 119 of file expressionParser.h.

?????

Definition at line 135 of file expressionParser.h.


Generated on Tue Dec 7 19:12:46 2010 for BALL by  doxygen 1.5.9