package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Nov 19, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
redblacktree
a thread safe red-black-tree based on github.com/emirpasic/gods/trees/redblacktree
Documentation
¶
type Iterator interface {
Next() bool
Key() interface{}
Values() []Value
}
Iterator a stateful iterator whose elements are key/value pairs.
type Tree interface {
Put(key interface{}, value Value)
Get(key interface{}) (values []Value, found bool)
Remove(key interface{})
Empty() bool
Size() int
Min() (key interface{}, values []Value)
PopMin() (key interface{}, values []Value)
Max() (key interface{}, values []Value)
PopMax() (key interface{}, values []Value)
Topology() string
Iterator() Iterator
}
Tree supported methods on red-black-tree
New create a thread safe red-black-tree based on github.com/emirpasic/gods/trees/redblacktree
Value if the value.id is duplicated, it will be ignored.
Source Files
¶
Directories
¶
internal
|
|
pkg
Package redblacktree implements a red-black tree.
|
Package redblacktree implements a red-black tree. |
Click to show internal directories.
Click to hide internal directories.