Partager via


CRBTree Members

Methods

~CRBTree

The destructor.

FindFirstKeyAfter

Call this method to find the position of the element that uses the next available key.

GetAt

Call this method to get the element at a given position in the tree.

GetCount

Call this method to get the number of elements in the tree.

GetHeadPosition

Call this method to get the position value for the element at the head of the tree.

GetKeyAt

Call this method to get the key from a given position in the tree.

GetNext

Call this method to obtain a pointer to an element stored in the CRBTree object, and advance the position to the next element.

GetNextAssoc

Call this method to get the key and value of an element stored in the map and advance the position to the next element.

GetNextKey

Call this method to get the key of an element stored in the tree and advance the position to the next element.

GetNextValue

Call this method to get the value of an element stored in the tree and advance the position to the next element.

GetPrev

Call this method to obtain a pointer to an element stored in the CRBTree object, and then update the position to the previous element.

GetTailPosition

Call this method to get the position value for the element at the tail of the tree.

GetValueAt

Call this method to retrieve the value stored at a given position in the CRBTree object.

IsEmpty

Call this method to test for an empty tree object.

RemoveAll

Call this method to remove all elements from the CRBTree object.

RemoveAt

Call this method to remove the element at the given position in the CRBTree object.

SetValueAt

Call this method to change the value stored at a given position in the CRBTree object.

Typedefs

KINARGTYPE

Type used when a key is passed as an input argument.

KOUTARGTYPE

Type used when a key is returned as an output argument.

VINARGTYPE

Type used when a value is passed as an input argument.

VOUTARGTYPE

Type used when a value is passed as an output argument.

Classes

CPair

A class containing the key and value elements.

See Also

Reference

CRBTree Class