Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

MapValuesCollection Class Reference

#include <coherence/util/MapValuesCollection.hpp>

Inherits ConverterCollections::ConverterCollection.

List of all members.


Detailed Description

A wrapper class that provides the Collection interface for the value collection of a map.

It's returned by the default implementation of the AbstractMap::values() method. MapValuesCollection 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.

Author:
nsa 2008.01.30
 
FinalHolder< Mapm_thMapDelegate
 The Map to which this KeySet is tied.
virtual Map::Handle getMapDelegate ()
 Return the delegate Map instance.
virtual Map::View getMapDelegate () const
 Return the delegate Map instance.
virtual bool remove (Object::View v)
 inheritDoc}
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
 MapValuesCollection Handle definition.
typedef spec::View View
 MapValuesCollection View definition.
typedef spec::Holder Holder
 MapValuesCollection Holder definition.

Protected Member Functions

 MapValuesCollection (Map::Handle hMapDelegate)
 Create a WrapperCollections::AbstractWrapperCollection which delegates to the specified Collection.
 MapValuesCollection (Map::View vMapDelegate)
 Create a WrapperCollections::AbstractWrapperCollection which delegates to the specified Collection.

Classes

class  ValueConverter
 Convert a Map::Entry into a Map::Entry::Key. More...

Constructor & Destructor Documentation

MapValuesCollection ( Map::Handle  hMapDelegate  )  [protected]

Create a WrapperCollections::AbstractWrapperCollection which delegates to the specified Collection.

Parameters:
 hMapDelegate the underlying map

MapValuesCollection ( Map::View  vMapDelegate  )  [protected]

Create a WrapperCollections::AbstractWrapperCollection which delegates to the specified Collection.

Parameters:
 vMapDelegate the underlying map


Member Function Documentation

virtual Map::Handle getMapDelegate (  )  [protected, virtual]

Return the delegate Map instance.

Returns:
the delegate Map instance

virtual Map::View getMapDelegate (  )  const [protected, virtual]

Return the delegate Map instance.

Returns:
the delegate Map instance


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