#include <coherence/util/FilterMuterator.hpp>
Inherits Object, and Muterator.
nsa 2008.06.23
Public Types |
|
| typedef spec::Handle | Handle |
| FilterMuterator Handle definition. |
|
| typedef spec::View | View |
| FilterMuterator View definition. |
|
| typedef spec::Holder | Holder |
| FilterMuterator Holder definition. |
|
Public Member Functions |
|
| virtual bool | hasNext () const |
| Determine if the iteration has another element. |
|
| virtual Object::Holder | next () |
| Return the next element in the iterated series. |
|
| virtual void | remove () |
| Remove from the collection associated with this iterator, the last element retruned from the iterator. |
|
Protected Member Functions |
|
| FilterMuterator (Iterator::Handle hIter, Filter::View vTest) | |
| Construct a hash map using the specified settings. |
|
Protected Attributes |
|
| FinalHandle< Iterator > | m_hIter |
| Objects to filter. |
|
| FinalView< Filter > | m_vTest |
| Test to perform on each item. |
|
| bool | m_fNext |
| Is there a next item which passed the test? |
|
| bool | m_fPrev |
| Is there a previous item which passed the test and can be removed? |
|
| MemberHolder< Object > | m_ohNext |
| The next item which passed the test. |
|
| FilterMuterator | ( | Iterator::Handle | hIter, | |
| Filter::View | vTest | |||
| ) | [protected] |
Construct a hash map using the specified settings.
| hMuterator | the muterator to a list that should be filtered | |
| vTest | the test used to filter results |
| virtual bool hasNext | ( | ) | const [virtual] |
Determine if the iteration has another element.
Implements Iterator.
| virtual Object::Holder next | ( | ) | [virtual] |
Return the next element in the iterated series.
| coherence::lang::NoSuchElementException | if iteration has no more elements |
Implements Iterator.
| virtual void remove | ( | ) | [virtual] |
Remove from the collection associated with this iterator, the last element retruned from the iterator.
| UnsupportedOperationException | if removal is not supported |
Implements Muterator.