Oracle Coherence for C++ API
Release 3.6.1.0

E18813-01

MappedSet Class Reference

#include <coherence/util/MappedSet.hpp>

Inherits MapKeySet.

Inherited by HashSet.

List of all members.


Detailed Description

Set implementation which is backed by a Map.

Public Types

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

Public Member Functions

virtual bool  add (Object::Holder oh)
  Add the given element to this collection.
Parameters:
oh  the element to add
Returns:
true iff this collection was modified as a result of this operation

virtual bool  addAll (Collection::View vCol)
  Add all elements from the supplied collection to this collection.
Parameters:
vCol  the collection of elements to add
Returns:
true iff this collection was modified as a result of this operation
Exceptions:
coherence::lang::NullPointerException  if the specified collection is NULL
See also:
add()

virtual Iterator::Handle  iterator () const
  Return an Iterator over this collection.
Returns:
an Iterator over this collection

virtual Muterator::Handle  iterator ()
  Return an Iterator over this collection.
Returns:
an Iterator over this collection


Protected Member Functions

  MappedSet (Map::Handle hMap)
  Return a new MappedSet backed by the supplied Map.
  MappedSet (const MappedSet &that)
  Copy constructor.

Constructor & Destructor Documentation

MappedSet ( Map::Handle  hMap  )  [protected]

Return a new MappedSet backed by the supplied Map.

Parameters:
hMap  the map to use as storage

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