#include <classadItor.h>
Collaboration diagram for ClassAdIterator:

Public Member Functions | |
| ClassAdIterator () | |
| Constructor. | |
| ClassAdIterator (const ClassAd &ca) | |
| Constructor which initializes the iterator to the given ClassAd. | |
| ~ClassAdIterator () | |
| Destructor. | |
| void | Initialize (const ClassAd &ca) |
| Initializes the object to iterate over a ClassAd; the iterator begins at the "before first" position. | |
| void | ToFirst () |
| Positions the iterator to the "before first" position. | |
| void | ToAfterLast () |
| Positions the iterator to the "after last" position. | |
| bool | NextAttribute (std::string &attr, const ExprTree *&expr) |
| Gets the next attribute in the ClassAd. | |
| bool | CurrentAttribute (std::string &attr, const ExprTree *&expr) const |
| Gets the attribute currently referred to by the iterator. | |
| bool | IsAtFirst () const |
| Predicate to check the position of the iterator. | |
| bool | IsAfterLast () const |
| Predicate to check the position of the iterator. | |
We recommend that you now use the STL-like iterators defined with ClassAd. Several iterators may be active over the same ClassAd at any time, and the same iterator object may be used to iterate over other ClassAds as well. Note that attributes will not be provided in any specific order. Also, ClassAdIterator is a ``forward iterator'' only; i.e., there is no PreviousAttribute() method.
|
|
Constructor which initializes the iterator to the given ClassAd.
|
|
||||||||||||
|
Gets the attribute currently referred to by the iterator.
|
|
|
Initializes the object to iterate over a ClassAd; 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 ClassAds as arguments.
|
|
|
Predicate to check the position of the iterator.
|
|
|
Predicate to check the position of the iterator.
|
|
||||||||||||
|
Gets the next attribute in the ClassAd.
|