Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

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


Detailed Description

SyntaxTree.

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


Constructor & Destructor Documentation

ExpressionParser::SyntaxTree::SyntaxTree  )  throw ()
 

Default constructor.

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

Detailed constructor.

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

Destructor.


Member Function Documentation

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

Return a constant iterator pointing to the first child.

Iterator ExpressionParser::SyntaxTree::begin  )  throw ()
 

Return a mutable iterator pointing to the first child.

virtual void ExpressionParser::SyntaxTree::clear  )  throw () [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.

ConstIterator ExpressionParser::SyntaxTree::end  )  const throw ()
 

Return a constant iterator pointing to the last child.

Iterator ExpressionParser::SyntaxTree::end  )  throw ()
 

Return a mutable iterator pointing to the last child.