#include <coherence/util/MapKeySet.hpp>
Inherits ConverterCollections::ConverterSet.
Inherited by OldCache::KeySet, and MappedSet.
It's returned by the default implementation of the AbstractMap::keySet() method. MapKeySet is based on the ConverterCollections functionality which will convert a map's entrySet into a KeySet
Note that because this ConverterSet is based on the Map's entrySet, all write operations on the set must be converted out to a method on the Map, not the keyset.
FinalHolder< Map > | f_thMapDelegate | |||
The underlying map. | ||||
virtual Map::Handle | getMapDelegate () | |||
Return the delegate Map instance. | ||||
virtual Map::View | getMapDelegate () const | |||
Return the delegate Map instance. | ||||
virtual bool | removeAll (Collection::View vc) | |||
inheritDoc} | ||||
virtual bool | retainAll (Collection::View vc) | |||
inheritDoc} | ||||
virtual bool | contains (Object::View v) const | |||
inheritDoc} | ||||
virtual bool | containsAll (Collection::View vc) const | |||
inheritDoc} | ||||
Public Types | ||||
typedef spec::Handle | Handle | |||
MapKeySet Handle definition. | ||||
typedef spec::View | View | |||
MapKeySet View definition. | ||||
typedef spec::Holder | Holder | |||
MapKeySet Holder definition. | ||||
Public Member Functions | ||||
virtual bool | remove (Object::View v) | |||
Remove the supplied element from this collection.
| ||||
Protected Member Functions | ||||
MapKeySet (Map::Handle hMapDelegate) | ||||
Create a KeySet which delegates to the specified Set or Map depending on the operation. | ||||
MapKeySet (Map::View vMapDelegate) | ||||
Create a WrapperCollections::AbstractWrapperSet which delegates to the specified Set. | ||||
Classes | ||||
class | KeyConverter | |||
Convert a Map::Entry into a Map::Entry::Key. More... |
MapKeySet | ( | Map::Handle | hMapDelegate | ) | [protected] |
Create a WrapperCollections::AbstractWrapperSet which delegates to the specified Set.
vMap | the specified Map. |
virtual Map::Handle getMapDelegate | ( | ) | [protected, virtual] |
virtual Map::View getMapDelegate | ( | ) | const [protected, virtual] |