#include <exprList.h>
Collaboration diagram for ExprListIterator:

Public Member Functions | |
| ExprListIterator () | |
| Constructor. | |
| ExprListIterator (const ExprList *l) | |
| Constructor which initializes the iterator. | |
| ~ExprListIterator () | |
| Destructor. | |
| void | Initialize (const ExprList *l) |
| Initializes the object to iterate over an expression list; the iterator begins at the "before first" position. | |
| void | ToFirst () |
| Positions the iterator to the first element. | |
| void | ToAfterLast () |
| Positions the iterator to the "after last" position. | |
| bool | ToNth (int n) |
| Positions the iterator at the n'th expression of the list (assuming 0-based index. | |
| const ExprTree * | NextExpr () |
| Gets the next expression in the list. | |
| const ExprTree * | CurrentExpr () const |
| Gets the expression currently pointed to. | |
| const ExprTree * | PrevExpr () |
| Gets the previous expression in the list. | |
| bool | NextValue (Value &v, EvalState *es=NULL) |
| Gets the value of the next expression in the list. | |
| bool | CurrentValue (Value &v, EvalState *es=NULL) |
| Gets the value of the expression currently pointed to. | |
| bool | PrevValue (Value &v, EvalState *es=NULL) |
| Gets the value of the previous expression in the list. | |
| bool | NextValue (Value &v, ExprTree *&t, EvalState *es=NULL) |
| Gets the value of the next expression in the list, and identifies sub-expressions that caused the value. | |
| bool | CurrentValue (Value &v, ExprTree *&t, EvalState *es=NULL) |
| Gets the value of the expression currently pointed to, and identifies sub-expressions that caused the value. | |
| bool | PrevValue (Value &v, ExprTree *&t, EvalState *es=NULL) |
| Gets the value of the previous expression in the list, and identifies sub-expressions that caused that value. | |
| bool | IsAtFirst () const |
| Predicate to check the position of the iterator. | |
| bool | IsAfterLast () const |
| Predicate to check the position of the iterator. | |
|
|
Constructor which initializes the iterator.
|
|
|
Gets the expression currently pointed to.
|
|
||||||||||||||||
|
Gets the value of the expression currently pointed to, and identifies sub-expressions that caused the value.
|
|
||||||||||||
|
Gets the value of the expression currently pointed to.
|
|
|
Initializes the object to iterate over an expression list; the iterator begins at the "before first" position. This method must be called before the iterator is usable. (The iteration methods return false if the iterator has not been initialized.) This method may be called any number of times, with different expression lists as arguments.
|
|
|
Predicate to check the position of the iterator.
|
|
|
Predicate to check the position of the iterator.
|
|
|
Gets the next expression in the list.
|
|
||||||||||||||||
|
Gets the value of the next expression in the list, and identifies sub-expressions that caused the value.
|
|
||||||||||||
|
Gets the value of the next expression in the list.
|
|
|
Gets the previous expression in the list.
|
|
||||||||||||||||
|
Gets the value of the previous expression in the list, and identifies sub-expressions that caused that value.
|
|
||||||||||||
|
Gets the value of the previous expression in the list.
|
|
|
Positions the iterator at the n'th expression of the list (assuming 0-based index.
|