List of all members.
Unlike DeltaSet, the SubSet is assumed to be a subset of the underlying set, and optimizes for both remove and retain operations.
|SubSet Handle definition.|
|SubSet View definition.|
|SubSet Holder definition.|
Public Member Functions
|SubSet (const SubSet &that)|
|virtual Set::View||getOriginal () const|
|Determine what items were in the original set.|
|virtual bool||isModified () const|
|Determine if the set has been modified.|
|virtual bool||isTrackingRetained () const|
|Determine if the SubSet is tracking retained items versus removed items.|
|virtual Set::View||getRetained () const|
|Determine what items were added to the subset.|
|virtual bool||isTrackingRemoved () const|
|Determine if the SubSet is tracking removed items versus retained items.|
|virtual Set::View||getRemoved () const|
|Determine what items were removed from the subset.|
|virtual Set::Handle||ensureRetained ()|
|Get a mutable set of items that are retained in the subset.|
|virtual Set::Handle||ensureRemoved ()|
|Get a mutable set of items that are removed in the subset.|
|virtual void||resolve ()|
|Apply the changes to the underlying set ("commit").|
|virtual void||reset ()|
|Discard the changes to the set ("rollback").|
|virtual size32_t||size () const|
|Return the number of elements in this collection.|
|virtual bool||isEmpty () const|
|Determine whether this collection contains any elements.|
|virtual bool||contains (Object::View v) const|
|Determine if this collection contains the specified element.|
|virtual bool||containsAll (Collection::View vCol) const|
|Determine if this collection contains all elements from the supplied collection.|
This implementation iterates over the specified collection, checking each element returned by the iterator in turn to see if it's contained in this collection. If all elements are so contained
|virtual Iterator::Handle||iterator () const|
|Return an Iterator over this collection.|
|virtual Muterator::Handle||iterator ()|
|Return an Iterator over this collection.|
|toArray (ObjectArray::Handle hao=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 aditional 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.
|virtual bool||add (Object::Holder oh)|
|Add the given element to this collection.|
This implementation will throw a coherence::lang::UnsupportedOperationException
|virtual bool||addAll (Collection::View vCol)|
|Add all elements from the supplied collection to this collection.|
|virtual bool||remove (Object::View v)|
|Remove the supplied element from this collection.|
|virtual bool||removeAll (Collection::View vCol)|
|Remove all instances of the elements in the supplied collection from this collection.|
Upon completion, contains() on this collection will return false for all elements in the supplied collection.
|virtual bool||retainAll (Collection::View vCol)|
|Remove all elements from this collection that are not present in the supplied collection.|
|virtual void||clear ()|
|Remove all elements from this collection.|
This implementation will throw a coherence::lang::UnsupportedOperationException.
|FinalHolder< Set >||m_ohSetOrig|
|The underlying set (assumed immutable).|
|MemberHandle< Set >||m_hSetMod|
|The removed or retained items.|
|Toggles between whether the modifications are removed or retained.|
|virtual Set::View getOriginal||(||)|| const
Determine what items were in the original set.
|virtual bool isModified||(||)|| const
Determine if the set has been modified.
|virtual bool isTrackingRetained||(||)|| const
|virtual Set::View getRetained||(||)|| const
Determine what items were added to the subset.
Do not modify the returned set.
|virtual bool isTrackingRemoved||(||)|| const
|virtual Set::View getRemoved||(||)|| const
Determine what items were removed from the subset.
|virtual Set::Handle ensureRetained||(||)||
Get a mutable set of items that are retained in the subset.
|virtual Set::Handle ensureRemoved||(||)||
Get a mutable set of items that are removed in the subset.