#include <coherence/util/TreeSet.hpp>
Inherits MappedSet.
The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on which constructor is used.
TreeMap
Public Types | |
| typedef spec::Handle | Handle |
| TreeSet Handle definition. | |
| typedef spec::View | View |
| TreeSet View definition. | |
| typedef spec::Holder | Holder |
| TreeSet Holder definition. | |
Public Member Functions | |
| virtual Comparator::View | comparator () const |
| virtual SortedSet::Handle | subSet (Object::View vFromElement, Object::View vToElement) |
| virtual SortedSet::View | subSet (Object::View vFromElement, Object::View vToElement) const |
| virtual SortedSet::Handle | headSet (Object::View vToElement) |
| virtual SortedSet::View | headSet (Object::View vToElement) const |
| virtual SortedSet::Handle | tailSet (Object::View vFromElement) |
| virtual SortedSet::View | tailSet (Object::View vFromElement) const |
| virtual Object::View | first () const |
| virtual Object::View | last () const |
Protected Member Functions | |
| TreeSet () | |
| Return a new TreeSet that will sort it's elements using their natural ordering. | |
| TreeSet (Comparator::View vComparator) | |
| Return a new TreeSet that will sort it's elements using the supplied Comparator. | |
| TreeSet (SortedMap::Handle hMap) | |
| Return a TreeSet backed by the given SortedMap. | |
| TreeSet (SortedMap::View vMap) | |
| Return a TreeSet backed by the given SortedMap. | |
| TreeSet (const TreeSet &that) | |
| Copy constructor. | |
| virtual void | ensureMap () |
| Throws an exception iff the internal map is inaccessible. | |
| virtual SortedMap::Handle | getSortedMap () |
| Return the delegate SortedMap. | |
| virtual SortedMap::View | getSortedMap () const |
| Return the delegate SortedMap. | |
| TreeSet | ( | Comparator::View | vComparator | ) | [protected] |
Return a new TreeSet that will sort it's elements using the supplied Comparator.
| vComparator | the Comparator used to sort elements |
| TreeSet | ( | SortedMap::Handle | hMap | ) | [protected] |
Return a TreeSet backed by the given SortedMap.
| hMap | the delegate SortedMap |
| TreeSet | ( | SortedMap::View | vMap | ) | [protected] |
Return a TreeSet backed by the given SortedMap.
| vMap | the delegate SortedMap |
| virtual void ensureMap | ( | ) | [protected, virtual] |
Throws an exception iff the internal map is inaccessible.
| IllegalStateException | iff the internal map is inaccessible |
| virtual SortedMap::Handle getSortedMap | ( | ) | [protected, virtual] |
Return the delegate SortedMap.
| virtual SortedMap::View getSortedMap | ( | ) | const [protected, virtual] |
Return the delegate SortedMap.