Xavax C++ Library | Class Index FAQ Overview |
Constructor Summary |
PDListConstIterator(const
PDList<T>& list)
Construct an iterator for list .
|
PDListConstIterator(const
PDListConstIterator<T>& src)
Construct a new iterator that is a copy of src .
|
Operator Summary | |
PDListConstIterator<T>&
|
operator=(PDListConstIterator<T>&
src)
Modify this iterator to point to the same list and element as src .
|
const T*
|
operator()()
Return the current element. |
const T*
|
operator++()
Advance the cursor and return the current element (preincrement). |
const T*
|
operator++(int)
Advance the cursor and return the current element (postincrement). |
const T*
|
operator--()
Backup the cursor and return the current element (predecrement). |
const T*
|
operator--(int)
Backup the cursor and return the current element (postdecrement). |
Method Summary | |
bool
|
active()
Return true if the cursor is active. |
bool
|
atFirst()
Return true if the cursor is at the first element. |
bool
|
atLast()
Return true if the cursor is at the last element. |
bool
|
done()
Return true if the cursor is not active. |
const
|
list()
Return the list to which this iterator is associated. |
void
|
reset()
Reset the cursor to the first element in the list. |
void
|
reset(const PDList<T>& list)
Associate the iterator with a new list and reset the cursor to the first element in the list. |
void
|
seek(size_t p)
Move the cursor to the element at position p in the list.
|
Related Classes | |
PDList<T>. |
Constructor Detail |
PDListConstIterator<T>(PDList<T>&list)
PDListConstIterator<T>(const
PDListConstIterator<T>& src)
src
- the list to copy.
Operator Detail |
PDListConstIterator<T>& operator=(PDListConstIterator<T>& src)
src
- the iterator to copy.const T* operator()()
const T* operator++()
const T* operator++(int)
const T* operator--()
const T* operator--(int)
Method Detail |
bool active() const
bool atFirst() const
bool atLast() const
bool done() const
const PDList<T>& list() const
void reset()
void reset(const PDList<T>& list)
list
- the new list.void seek(size_t p)
p
- the new position for the cursor.
Example Code |
Copyright © 2003 Xavax Inc. -- All Rights Reserved