In file exprList.h:

class ExprListIterator

Expression List iterator

Public Methods

const ExprTree* CurrentExpr( )
Gets the expression currently pointed to
bool CurrentValue( Value& v, EvalState *es=NULL )
Gets the value of the expression currently pointed to
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
ExprListIterator( const ExprList* l )
Constructor which initializes the iterator
ExprListIterator( )
Constructor
void Initialize( const ExprList* l )
Initializes the object to iterate over an expression list; the iterator begins at the "before first" position
bool IsAfterLast( )
Predicate to check the position of the iterator
bool IsAtFirst( )
Predicate to check the position of the iterator
const ExprTree* NextExpr( )
Gets the next expression in the list
bool NextValue( Value& v, EvalState *es=NULL )
Gets the value of the next 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
const ExprTree* PrevExpr( )
Gets the previous expression in the list
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 PrevValue( Value& v, EvalState *es=NULL )
Gets the value of the previous expression in the list
void ToAfterLast( )
Positions the iterator to the "after last" position
void ToFirst( )
Positions the iterator to the first element.
bool ToNth( int n )
Positions the iterator at the n'th expression of the list (assuming 0-based index
~ExprListIterator( )
Destructor

Documentation

Expression List iterator
ExprListIterator( const ExprList* l )
Constructor which initializes the iterator
Parameters:
l - The list to be iterated over (i.e., the iteratee).
See Also:
initialize

void Initialize( const ExprList* l )
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.
Parameters:
l - The expression list to iterate over (i.e., the iteratee).

bool ToNth( int n )
Positions the iterator at the n'th expression of the list (assuming 0-based index.
Returns:
true if the iterator was successfully positioned at the n'th element, and false otherwise.
Parameters:
n - The index of the expression to retrieve.

const ExprTree* NextExpr( )
Gets the next expression in the list
Returns:
The next expression in the list, or NULL if the iterator has crossed the last expression in the list.

const ExprTree* CurrentExpr( )
Gets the expression currently pointed to
Returns:
The expression currently pointed to.

const ExprTree* PrevExpr( )
Gets the previous expression in the list
Returns:
The previous expression in the list, or NULL if the iterator has crossed the first expression in the list.

bool NextValue( Value& v, EvalState *es=NULL )
Gets the value of the next expression in the list
Returns:
false if the iterator has crossed the last expression in the list, or true otherwise.
Parameters:
v - The value of the expression.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

bool CurrentValue( Value& v, EvalState *es=NULL )
Gets the value of the expression currently pointed to
Returns:
true if the operation succeeded, false otherwise.
Parameters:
v - The value of the expression.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

bool PrevValue( Value& v, EvalState *es=NULL )
Gets the value of the previous expression in the list
Returns:
false if the iterator has crossed the first expression in the list, or true otherwise.
Parameters:
v - The value of the expression.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

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
Returns:
false if the iterator has crossed the last expression in the list, or true otherwise.
Parameters:
v - The value of the expression.
t - The expression composed of the significant sub-expressions.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

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
Returns:
true if the operation succeeded, false otherwise.
Parameters:
v - The value of the expression.
t - The expression composed of the significant sub-expressions.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

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
Returns:
false if the iterator has crossed the first expression in the list, or true otherwise.
Parameters:
v - The value of the expression.
t - The expression composed of the significant sub-expressions.
es - The EvalState object which caches values of expressions. Ordinarily, this parameter will not be supplied by the user, and an internal EvalState object will be used.

bool IsAtFirst( )
Predicate to check the position of the iterator
Returns:
true iff the iterator is before the first element.

bool IsAfterLast( )
Predicate to check the position of the iterator
Returns:
true iff the iterator is after the last element.


This class has no child classes.

alphabetic index hierarchy of classes


Condor Home Page

generated by doc++