Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::util::TTreeMap< K, V > Class Template Reference#include <TTreeMap.h>
Inheritance diagram for acdk::util::TTreeMap< K, V >:
List of all members.
Detailed Description
template<class K, class V>
class acdk::util::TTreeMap< K, V >
A TreeMap organized as Red-Black tree.
Requirements to the acdk::lang::Object types to store:
|
Public Types |
| typedef K | RKeyType |
| typedef V | RValueType |
typedef TTreeMap< RKeyType,
RValueType > | ThisType |
| typedef RefHolder< ThisType > | RThisType |
| typedef RThisType | RefType |
typedef TAbstractMap< RKeyType,
RValueType > | SuperType |
| typedef ThisType | TreeMapType |
| typedef RThisType | RTreeMapType |
typedef TRedBlackNode< RKeyType,
RValueType > | RedBlackNodeType |
| typedef RedBlackNodeType::RefType | RRedBlackNodeType |
| typedef SuperType::MapEntrySetType | MapEntrySetType |
| typedef MapEntrySetType::RefType | RMapEntrySetType |
| typedef TMap< RKeyType, RValueType > | MapType |
| typedef MapType::RefType | RMapType |
typedef TSortedMap< RKeyType,
RValueType > | SortedMapType |
| typedef SortedMapType::RefType | RSortedMapType |
| typedef MapType::MapEntryType | MapEntryType |
| typedef MapEntryType::RefType | RMapEntryType |
| typedef SuperType::KeySetType | KeySetType |
| typedef KeySetType::RefType | RKeySetType |
typedef TTreeMapKeySet< RKeyType,
RValueType > | TreeMapKeySetType |
typedef TSubTreeMap< RKeyType,
RValueType > | SubTreeMapType |
| typedef MapType::ValueCollectionType | ValueCollectionType |
| typedef ValueCollectionType::RefType | RValueCollectionType |
| typedef SortedMapType::ComparatorType | ComparatorType |
| typedef ComparatorType::RefType | RComparatorType |
Public Member Functions |
| | TTreeMap (IN(RMapType) map=Nil, IN(RComparatorType) comp=Nil) |
| | ~TTreeMap () |
| virtual void | clear () |
| virtual acdk::lang::Object | clone () |
| virtual acdk::lang::Object | clone (sys::Allocator *alc) |
| virtual RComparatorType | comparator () |
| virtual bool | containsKey (IN(RKeyType) key) |
| virtual bool | containsValue (IN(RValueType) val) |
| virtual RMapEntrySetType | entrySet () |
| virtual RKeyType | firstKey () |
| virtual RValueType | get (IN(RKeyType) key) |
| virtual RSortedMapType | headMap (IN(RKeyType) key) |
| virtual RKeySetType | keySet () |
| virtual RKeyType | lastKey () |
| virtual RValueType | put (IN(RKeyType) key, IN(RValueType) val) |
| virtual void | putAll (IN(RMapType) map) |
| virtual RValueType | remove (IN(RKeyType) key) |
| virtual int | size () |
| virtual RSortedMapType | subMap (IN(RKeyType) from, IN(RKeyType) to) |
| virtual RSortedMapType | tailMap (IN(RKeyType) from) |
| virtual RValueCollectionType | values () |
| virtual bool | equals (IN(acdk::lang::Object) other) |
| | Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
| virtual int | hashCode () |
| virtual bool | isEmpty () |
Public Attributes |
| friends_private | __pad0__: RRedBlackNodeType _root |
| int | _size |
| RComparatorType | _comparator |
| int | _modCount |
| friends_private | __pad1__: void putAllLinear(IN(RObjectArrayImpl<RMapEntryType>) entries) { double dHeight = Math::pow((double) entries->length() |
| friends_private | double |
| int | height = (int) dHeight |
| bool | completed = (dHeight == ((double) height)) |
| | _root = buildTree(entries, height, completed, 0, 0, entries->length()) |
| friends_private | __pad2__: static RRedBlackNodeType buildTree(IN(RObjectArrayImpl<RMapEntryType>) entries |
| friends_private int | height |
| friends_private int bool | completed |
| friends_private int bool int | currentTier |
friends_private int bool int
int | start |
friends_private int bool int
int int | end |
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
|