#include <coherence/util/TypedCollections.hpp>
Inherits WrapperCollections::AbstractWrapperSet.
Public Types | |
typedef spec::Handle | Handle |
TypedSet<T> Handle definition. | |
typedef spec::View | View |
TypedSet<T> View definition. | |
typedef spec::Holder | Holder |
TypedSet<T> Holder definition. | |
typedef T | ValueType |
The type of the objects stored in this set, that e.g. | |
typedef TypedIterator< T > | Iterator |
The type of the iterator over this set. | |
Public Member Functions | |
virtual bool | contains (ValueType v) const |
The typed version of the method Collection::contains. | |
virtual TypedSet::Iterator::Handle | iteratorTyped () const |
The typed version of the method Collection::iterator. | |
virtual TypedSet::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 | add (ValueType v) |
The typed version of the method Set::add. | |
virtual bool | remove (ValueType v) |
The typed version of the method Collection::remove. | |
virtual bool | addAll (typename TypedCollection< ValueType >::View vtc) |
The typed version of the method Collection::addAll. | |
virtual bool | addAll (typename TypedCollection< ValueType >::Handle htc) |
The typed version of the method Collection::addAll. | |
virtual bool | addAll (typename TypedSet< ValueType >::View vts) |
The typed version of the method Collection::addAll. | |
virtual bool | addAll (typename TypedSet< ValueType >::Handle hts) |
The typed version of the method Collection::addAll. | |
virtual bool | removeAll (typename TypedCollection< ValueType >::View vtc) |
The typed version of the method Collection::removeAll. | |
virtual bool | removeAll (typename TypedCollection< ValueType >::Handle htc) |
The typed version of the method Collection::removeAll. | |
virtual bool | removeAll (typename TypedSet< ValueType >::View vts) |
The typed version of the method Collection::removeAll. | |
virtual bool | removeAll (typename TypedSet< ValueType >::Handle hts) |
The typed version of the method Collection::removeAll. | |
virtual bool | retainAll (typename TypedCollection< ValueType >::View vtc) |
The typed version of the method Collection::retainAll. | |
virtual bool | retainAll (typename TypedCollection< ValueType >::Handle htc) |
The typed version of the method Collection::retainAll. | |
virtual bool | retainAll (typename TypedSet< ValueType >::View vts) |
The typed version of the method Collection::retainAll. | |
virtual bool | retainAll (typename TypedSet< ValueType >::Handle hts) |
The typed version of the method Collection::retainAll. | |
virtual TypedCollection < ValueType > ::Handle | asTypedCollection () |
Convert a TypedSet to a TypedCollection, wrapping the same underlying Collection::Handle. | |
virtual TypedCollection < ValueType >::View | asTypedCollection () const |
Convert a TypedSet to a TypedCollection, wrapping the same underlying Collection::View. | |
Protected Member Functions | |
TypedSet (Set::Holder ohSetDelegate) | |
Create a new TypedSet over the given Set. | |
TypedSet (const TypedSet &that) | |
Copy constructor. |
typedef T ValueType |
The type of the objects stored in this set, that e.g.
TypedSet | ( | Set::Holder | ohSetDelegate | ) | [inline, protected] |
virtual bool contains | ( | ValueType | v | ) | const [inline, virtual] |
The typed version of the method Collection::contains.
Return true if this set contains the specified element.
v | element whose presence in this set is to be tested |
virtual TypedSet::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 set.
virtual TypedSet::Iterator::Handle iteratorTyped | ( | ) | [inline, virtual] |
The typed version of the method Collection::iterator.
Return a handle to an TypedIterator over the elements in this set.
virtual bool add | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method Set::add.
Add the specified element to this set if it is not already present.
v | element to be added to this set. |
coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this set |
virtual bool remove | ( | ValueType | v | ) | [inline, virtual] |
The typed version of the method Collection::remove.
Remove the specified element from this set, if it is present.
v | element to be removed from this set, if present |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
virtual bool addAll | ( | typename TypedCollection< ValueType >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::addAll.
Add all of the elements in the specified TypedCollection to this set.
vtc | TypedCollection of elements to be inserted into this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this set |
virtual bool addAll | ( | typename TypedCollection< ValueType >::Handle | htc | ) | [inline, virtual] |
The typed version of the method Collection::addAll.
Add all of the elements in the specified TypedCollection to this set.
htc | TypedCollection of elements to be inserted into this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this set |
The typed version of the method Collection::addAll.
Add all of the elements in the specified TypedSet to this set.
vts | TypedSet of elements to be inserted into this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this set |
The typed version of the method Collection::addAll.
Add all of the elements in the specified TypedSet to this set.
hts | TypedSet of elements to be inserted into this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the add() operation is not supported by this set |
virtual bool removeAll | ( | typename TypedCollection< ValueType >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::removeAll.
Remove all this set's elements that are also contained in the specified typed collection.
vtc | elements to be removed from this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
virtual bool removeAll | ( | typename TypedCollection< ValueType >::Handle | htc | ) | [inline, virtual] |
The typed version of the method Collection::removeAll.
Remove all this set's elements that are also contained in the specified typed collection.
htc | elements to be removed from this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
The typed version of the method Collection::removeAll.
Remove all this set's elements that are also contained in the specified typed set.
vts | elements to be removed from this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
The typed version of the method Collection::removeAll.
Remove all this set's elements that are also contained in the specified typed set.
hts | elements to be removed from this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
virtual bool retainAll | ( | typename TypedCollection< ValueType >::View | vtc | ) | [inline, virtual] |
The typed version of the method Collection::retainAll.
Retain only the elements in this set that are contained in the specified typed collection.
vtc | elements to be retained in this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
virtual bool retainAll | ( | typename TypedCollection< ValueType >::Handle | htc | ) | [inline, virtual] |
The typed version of the method Collection::retainAll.
Retain only the elements in this set that are contained in the specified typed collection.
htc | elements to be retained in this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
The typed version of the method Collection::retainAll.
Retain only the elements in this set that are contained in the specified typed set.
vts | elements to be retained in this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
The typed version of the method Collection::retainAll.
Retain only the elements in this set that are contained in the specified typed set.
hts | elements to be retained in this set |
coherence::lang::NullPointerException | if the specified collection is NULL | |
coherence::lang::UnsupportedOperationException | if the remove() operation is not supported by this set |
virtual TypedCollection<ValueType>::Handle asTypedCollection | ( | ) | [inline, virtual] |
Convert a TypedSet to a TypedCollection, wrapping the same underlying Collection::Handle.
virtual TypedCollection<ValueType>::View asTypedCollection | ( | ) | const [inline, virtual] |
Convert a TypedSet to a TypedCollection, wrapping the same underlying Collection::View.