sipxportlib
Version 3.3
|
#include <UtlHashBagIterator.h>
Public Member Functions | |
UtlHashBagIterator (const UtlHashBag &hashBag, UtlContainable *key=NULL) | |
virtual | ~UtlHashBagIterator () |
virtual UtlContainable * | operator() () |
virtual void | reset () |
UtlContainable * | key () const |
Public Member Functions inherited from UtlIterator | |
UtlIterator (const UtlContainer &container) | |
virtual | ~UtlIterator ()=0 |
Protected Member Functions | |
virtual void | removing (const UtlLink *node) |
Protected Member Functions inherited from UtlIterator | |
void | addToContainer (const UtlContainer *container) |
virtual void | invalidate () |
Friends | |
class | UtlHashBag |
Additional Inherited Members | |
Protected Attributes inherited from UtlIterator | |
OsBSem | mContainerRefLock |
UtlContainer * | mpMyContainer |
UtlHashBagIterator allows developers to iterator (walks through) an UtlHashBag.
UtlHashBagIterator | ( | const UtlHashBag & | hashBag, |
UtlContainable * | key = NULL |
||
) |
Construct an iterator over all objects in a given UtlHashBag If key is specified, iterate only over objects that match that key (UtlHashBags may have any number of copies of a given object)
|
virtual |
Destructor
|
virtual |
Return the next element.
Implements UtlIterator.
|
virtual |
Reset the list by moving the iterator cursor to the location before the first element.
Implements UtlIterator.
UtlContainable * key | ( | ) | const |
Gets the key of the current element
|
protectedvirtual |
removing is called by the UtlHashMap when an element is about to be removed from the container. The iterator must ensure that the element for the removed node is not returned by any subsequent call.
|
friend |