Click or drag to resize

AvlTreeTKey, TValue Class

Represents an AVL tree. http://en.wikipedia.org/wiki/AVL_tree
Inheritance Hierarchy
SystemObject
  RTMath.ContainersAvlTreeTKey, TValue

Namespace:  RTMath.Containers
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public class AvlTree<TKey, TValue>
where TKey : IComparable

Type Parameters

TKey
The type of the keys in the tree.
TValue
The type of the values in the tree.

The AvlTreeTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Number of elements in tree.
Public propertyFirst
Returns iterator which points to the first element in the tree.
Public propertyItemDouble
Finds iterator which is greater than specified percentile elements in the tree.
Public propertyItemInt32
Finds iterator at the specified position in the sorted order.
Public propertyLast
Returns iterator which points to the last element in the tree.
Top
Methods
  NameDescription
Public methodAdd
Adds element into the tree.
Public methodContainsKey
Finds whether tree contains required key.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGreaterOrEqualIterator
Finds iterator which points to the smallest element greater or equal than specified key.
Public methodLessOrEqualIterator
Finds iterator which points to the greatest element less or equal than specified key.
Public methodOrderStatisticIterator
Finds iterator at the specified position in the sorted order.
Public methodQuantileIterator
Finds iterator which is greater than specified percentile elements in the tree.
Public methodRemove
Removes item with specified key.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic member_NO_ELEMENT
Reference to null element.
Top
See Also