Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.2.0)

E77779-01

TreeSet Class Reference

#include <coherence/util/TreeSet.hpp>

Inherits MappedSet.

List of all members.


Detailed Description

A TreeSet implementation based on a TreeMap.

The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on which constructor is used.

Author:
hr 2011.09.07
See also:
SortedSet

TreeMap

Since:
Coherence 12.1.2

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.

Constructor & Destructor Documentation

TreeSet ( Comparator::View  vComparator  )  [protected]

Return a new TreeSet that will sort it's elements using the supplied Comparator.

Parameters:
vComparator the Comparator used to sort elements

TreeSet ( SortedMap::Handle  hMap  )  [protected]

Return a TreeSet backed by the given SortedMap.

Parameters:
hMap the delegate SortedMap

TreeSet ( SortedMap::View  vMap  )  [protected]

Return a TreeSet backed by the given SortedMap.

Parameters:
vMap the delegate SortedMap


Member Function Documentation

virtual void ensureMap (  )  [protected, virtual]

Throws an exception iff the internal map is inaccessible.

Exceptions:
IllegalStateException iff the internal map is inaccessible

virtual SortedMap::Handle getSortedMap (  )  [protected, virtual]

Return the delegate SortedMap.

Returns:
the delegate SortedMap

virtual SortedMap::View getSortedMap (  )  const [protected, virtual]

Return the delegate SortedMap.

Returns:
the delegate SortedMap


The documentation for this class was generated from the following file:
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.