Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

SafeHashMap::EntrySetIterator Class Reference

#include <coherence/util/SafeHashMap.hpp>

Inherits AbstractStableIterator.

List of all members.


Detailed Description

An Iterator over the EntrySet that is backed by the SafeHashMap.

Public Types

typedef spec::Handle Handle
 EntrySetIterator Handle definition.
typedef spec::View View
 EntrySetIterator View definition.
typedef spec::Holder Holder
 EntrySetIterator Holder definition.

Protected Member Functions

 EntrySetIterator (SafeHashMap::Holder ohMap)
 Construct an Iterator over the Entries in the SafeHashMap.
virtual void advance ()
 Advance to the next object.
virtual void deactivate () const
 Shut down the Iterator.
virtual void remove (Object::Holder oh)
 Remove the specified item.

This is an optional operation. If the Iterator supports element removal, then it should implement this method, which is delegated to by the remove() method.

Parameters:
ohPrev the previously iterated object that should be removed
Exceptions:
coherence::lang::UnsupportedOperationException if removal is not supported


Constructor & Destructor Documentation

EntrySetIterator ( SafeHashMap::Holder  ohMap  )  [protected]

Construct an Iterator over the Entries in the SafeHashMap.

Special care must be taken to handle the condition in which the SafeHashMap is currently resizing.

Parameters:
ohMap the set to iterate


Member Function Documentation

virtual void deactivate (  )  const [protected, virtual]

Shut down the Iterator.

This is done on exhaustion of the contents of the Iterator, or on destruction of the Iterator.


The documentation for this class was generated from the following file:
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.