Iterators are created by calling ANIndex.iterator()
Public Member Functions | |
ANIterator () | |
Default CTOR. | |
ANIterator (FSIterator const &) | |
upgrade/conversion CTOR | |
AnnotationFS | get () const |
retrieve the current element in the index for this iterator. | |
bool | isValid () const |
true iff get() can be called sucessfully | |
void | moveToNext () |
make iterator point to the next element in the index for this iterator. | |
void | moveToPrevious () |
make iterator point to the previous element in the index for this iterator. | |
void | moveToFirst () |
make iterator point to the first element in the index for this iterator. | |
void | moveToLast () |
make iterator point to the last element in the index for this iterator. | |
void | moveTo (FeatureStructure fs) |
make iterator point to the first feature structure fs2 in the index for this iterator where fs >= fs2. | |
FeatureStructure | peekNext () const |
returns the next feature structure of the iterator without moving it. | |
FeatureStructure | peekPrevious () const |
returns the previous feature structure of the iterator without moving it. | |
Protected Member Functions | |
ANIterator (uima::lowlevel::IndexIterator *, uima::CAS *) | |
bool | operator== (FSIterator const &) const |
Protected Attributes | |
uima::lowlevel::IndexIterator * | iv_pIterator |
CAS * | iv_cas |
|
|
|
Default CTOR.
|
|
upgrade/conversion CTOR
|
|
retrieve the current element in the index for this iterator.
Reimplemented from uima::FSIterator. |
|
|
|
true iff get() can be called sucessfully
|
|
make iterator point to the next element in the index for this iterator. isValid() is false after the call if no such element exists. |
|
make iterator point to the previous element in the index for this iterator. isValid() is false after the call if no such element exists. |
|
make iterator point to the first element in the index for this iterator.
|
|
make iterator point to the last element in the index for this iterator.
|
|
make iterator point to the first feature structure fs2 in the index for this iterator where fs >= fs2. fs must be of a type compatible with the index for this iterator. |
|
returns the next feature structure of the iterator without moving it. If there is no such feature structure (i.e. the iterator points to the first element) an invalid FS is returned. |
|
returns the previous feature structure of the iterator without moving it. If there is no such feature structure (i.e. the iterator points to the last element) an invalid FS is returned. |
|
|
|
|