Documentation ¶
Index ¶
- type AVLIterator
- type AVLMap
- type BinarySearchST
- type BitArray
- type Color
- type Compare
- type CompareCommon
- type Iterator
- type RBIterator
- type RBMap
- func (rb *RBMap) ContainKey(key interface{}) bool
- func (rb *RBMap) Find(key any) (any, bool)
- func (rb *RBMap) FindMax() (any, any, bool)
- func (rb *RBMap) FindMin() (any, any, bool)
- func (rb *RBMap) Get(key interface{}) interface{}
- func (rb *RBMap) Init(comp Compare)
- func (rb *RBMap) Insert(key any, value any)
- func (rb *RBMap) Iterator() *RBIterator
- func (rb *RBMap) Remove(key any) bool
- func (rb *RBMap) Size() int
- type RadixMap
- type SequentialSearchTree
- type SkipList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVLIterator ¶
type AVLIterator struct {
// contains filtered or unexported fields
}
func (*AVLIterator) HasNext ¶
func (ite *AVLIterator) HasNext() bool
func (*AVLIterator) Next ¶
func (ite *AVLIterator) Next() (any, any)
type AVLMap ¶
type AVLMap struct {
// contains filtered or unexported fields
}
func (*AVLMap) Iterator ¶
func (avl *AVLMap) Iterator() *AVLIterator
type BinarySearchST ¶
type BinarySearchST struct {
// contains filtered or unexported fields
}
func (*BinarySearchST) Delete ¶
func (bsst *BinarySearchST) Delete(key interface{}) bool
func (*BinarySearchST) Get ¶
func (bsst *BinarySearchST) Get(key interface{}) interface{}
func (*BinarySearchST) Init ¶
func (bsst *BinarySearchST) Init()
func (*BinarySearchST) Put ¶
func (bsst *BinarySearchST) Put(key interface{}, value interface{})
func (*BinarySearchST) Size ¶
func (bsst *BinarySearchST) Size() int
type CompareCommon ¶
type CompareCommon struct { }
func (*CompareCommon) Less ¶
func (cc *CompareCommon) Less(i, j interface{}) int
type RBIterator ¶
type RBIterator struct {
// contains filtered or unexported fields
}
func (*RBIterator) HasNext ¶
func (ite *RBIterator) HasNext() bool
func (*RBIterator) Next ¶
func (ite *RBIterator) Next() (any, any)
type RBMap ¶
type RBMap struct {
// contains filtered or unexported fields
}
func NewRedBlackMap ¶
func (*RBMap) ContainKey ¶
func (*RBMap) Iterator ¶
func (rb *RBMap) Iterator() *RBIterator
type SequentialSearchTree ¶
type SequentialSearchTree struct {
// contains filtered or unexported fields
}
func (*SequentialSearchTree) Init ¶
func (sst *SequentialSearchTree) Init(comp Compare)
Click to show internal directories.
Click to hide internal directories.