Documentation
¶
Index ¶
- type AVLTree
- func (t *AVLTree) BSTDump(w io.Writer)
- func (t *AVLTree) CheckHeight(checker heightChecker)
- func (t *AVLTree) Clear()
- func (t *AVLTree) Contains(key interface{}) bool
- func (t *AVLTree) Empty() bool
- func (t *AVLTree) EnumerateAsc(f Enumerator)
- func (t *AVLTree) EnumerateDesc(f Enumerator)
- func (t *AVLTree) Erase(key interface{}) error
- func (t *AVLTree) Find(key interface{}) interface{}
- func (t *AVLTree) Insert(key interface{}, value interface{}) error
- func (t *AVLTree) Size() uint
- type Comparator
- type Enumerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVLTree ¶
type AVLTree struct {
// contains filtered or unexported fields
}
func NewAVLTree ¶
func NewAVLTree(c Comparator) *AVLTree
func (*AVLTree) CheckHeight ¶
func (t *AVLTree) CheckHeight(checker heightChecker)
func (*AVLTree) EnumerateAsc ¶ added in v0.0.2
func (t *AVLTree) EnumerateAsc(f Enumerator)
func (*AVLTree) EnumerateDesc ¶ added in v0.0.2
func (t *AVLTree) EnumerateDesc(f Enumerator)
type Comparator ¶
type Comparator func(a interface{}, b interface{}) int
Function type that whould be defined for a key type in the tree
type Enumerator ¶ added in v0.0.2
type Enumerator func(key interface{}, value interface{}) bool
Click to show internal directories.
Click to hide internal directories.