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 31 of file expressionParser.h.


Member Typedef Documentation

A const iterator for the children of a given node.

Definition at line 43 of file expressionParser.h.

An iterator for the children of a given node.

Definition at line 40 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 121 of file expressionParser.h.

?????

Definition at line 137 of file expressionParser.h.

?????

Definition at line 125 of file expressionParser.h.

Definition at line 113 of file expressionParser.h.

?????

Definition at line 129 of file expressionParser.h.

?????

Definition at line 117 of file expressionParser.h.

?????

Definition at line 133 of file expressionParser.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3