Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
#include <coherence/util/TypedCollections.hpp>
Inherits WrapperCollections::AbstractWrapperCollection.
Typed wrapper over Collection interface.
Public Types |
|
| typedef spec::Handle | Handle |
| TypedCollection<T> Handle definition. | |
| typedef spec::View | View |
| TypedCollection<T> View definition. | |
| typedef spec::Holder | Holder |
| TypedCollection<T> Holder definition. | |
| typedef T | ValueType |
| The type of the objects stored in this collection, that e.g. | |
| typedef TypedIterator< T > |
Iterator |
| The type of the iterator over this collection. | |
Public Member Functions |
|
| virtual TypedCollection::Iterator::Handle |
iteratorTyped () const |
| The typed version of the method Collection::iterator. | |
| virtual TypedCollection::Iterator::Handle |
iteratorTyped () |
| The typed version of the method Collection::iterator. | |
| virtual coherence::util::Iterator::Handle |
iterator () const |
Return an Iterator over this collection.
|
|
| virtual coherence::util::Muterator::Handle |
iterator () |
Return an Iterator over this collection.
|
|
| virtual bool | contains (ValueType v) const |
| The typed version of the method Collection::contains. | |
| virtual bool | add (ValueType v) |
| The typed version of the method Collection::add. | |
| virtual bool | remove (ValueType v) |
| The typed version of the method Collection::remove. | |
| virtual bool | addAll (typename TypedCollection::View vtc) |
| The typed version of the method Collection::addAll. | |
| virtual bool | removeAll (typename TypedCollection::View vtc) |
| The typed version of the method Collection::removeAll. | |
| virtual bool | retainAll (typename TypedCollection::View vtc) |
| The typed version of the method Collection::retainAll. | |
Protected Member Functions |
|
| TypedCollection (Collection::Holder ohCollDelegate) | |
| Create a new TypedCollection over the given Collection. | |
| TypedCollection (const TypedCollection &that) | |
| Copy constructor. | |
| typedef T ValueType |
The type of the objects stored in this collection, that e.g.
| TypedCollection | ( | Collection::Holder | ohCollDelegate | ) | [inline, protected] |
Create a new TypedCollection over the given Collection.
| ohCollDelegate | the Collection to delegate to |
| virtual TypedCollection::Iterator::Handle iteratorTyped | ( | ) | const [inline, virtual] |
The typed version of the method Collection::iterator.
Return a handle to an TypedIterator over the elements in this collection.
| virtual TypedCollection::Iterator::Handle iteratorTyped | ( | ) | [inline, virtual] |
The typed version of the method Collection::iterator.
Return a handle to an TypedIterator over the elements in this collection.
| virtual bool contains | ( | ValueType | v | ) | const [inline, virtual] |
The typed version of the method Collection::contains.
Return true if this collection contains the specified element.
| v | element whose presence in this collection is to be tested |
| virtual bool add | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method Collection::add.
Ensure that this collection contains the specified element.
| v | element whose presence in this collection is to be ensured |
| coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this collection |
| virtual bool remove | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method Collection::remove.
Remove a single instance of the specified element from this collection, if it is present.
| v | element to be removed from this collection, if present |
| coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this collection |
| virtual bool addAll | ( | typename TypedCollection< T >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::addAll.
Add all of the elements in the specified collection to this collection.
| vtc | TypedCollection of elements to be inserted into this collection |
| coherence::lang::NullPointerException | if the specified collection is NULL | |
| coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this collection |
Reimplemented from WrapperCollections::AbstractWrapperCollection.
| virtual bool removeAll | ( | typename TypedCollection< T >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::removeAll.
Remove all this collection's elements that are also contained in the specified typed collection.
| vtc | elements to be removed from this collection |
| coherence::lang::NullPointerException | if the specified collection is NULL | |
| coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this collection |
Reimplemented from WrapperCollections::AbstractWrapperCollection.
| virtual bool retainAll | ( | typename TypedCollection< T >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::retainAll.
Retain only the elements in this collection that are contained in the specified typed collection.
| vtc | elements to be retained in this collection |
| coherence::lang::NullPointerException | if the specified collection is NULL | |
| coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this collection |
Reimplemented from WrapperCollections::AbstractWrapperCollection.
The documentation for this class was generated from the following file: