#include <coherence/util/MappedSet.hpp>
Inherits MapKeySet.
Inherited by HashSet, SafeHashSet, and TreeSet.
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.
| |||||||
virtual bool | addAll (Collection::View vCol) | ||||||
Add all elements from the supplied collection to this collection.
| |||||||
virtual Iterator::Handle | iterator () const | ||||||
Return an Iterator over this collection.
| |||||||
virtual Muterator::Handle | iterator () | ||||||
Return an Iterator over this collection.
| |||||||
virtual ObjectArray::Handle | toArray (ObjectArray::Handle hoa=NULL) const | ||||||
Return the contents of this collection as an ObjectArray. If the collection fits in the specified array, it is returned, otherwise, a new array is allocated that is the size of this collection. If this collection fits in the array with additional room then the element in the array immediately following the end of the collection is set to NULL. This can be useful in determining the length of this collection if the caller knows that the collection does not contain any NULL elements.
| |||||||
Protected Member Functions | |||||||
MappedSet (Map::Handle hMap) | |||||||
Return a new MappedSet backed by the supplied Map. | |||||||
MappedSet (Map::View vMap) | |||||||
Return a new MappedSet backed by the supplied Map. | |||||||
MappedSet (const MappedSet &that) | |||||||
Copy constructor. |
MappedSet | ( | Map::Handle | hMap | ) | [protected] |