Documentation ¶
Index ¶
- type Color
- type Iterator
- type Map
- func (m *Map) Begin() Iterator
- func (m *Map) Clear()
- func (m *Map) End() Iterator
- func (m *Map) Erase(it Iterator)
- func (m *Map) Find(key interface{}) Iterator
- func (m *Map) Init(less func(a, b interface{}) bool) *Map
- func (m *Map) Rbegin() Iterator
- func (m *Map) Remove(key interface{})
- func (m *Map) Set(key, value interface{}) Iterator
- func (m *Map) Size() uint64
- type Paire
- type RbTree
- func (rbt *RbTree) Begin() *TreeNode
- func (rbt *RbTree) Find(key interface{}) (isParent bool, r *TreeNode)
- func (rbt *RbTree) Init(less func(a, b interface{}) bool) *RbTree
- func (rbt *RbTree) Insert(parent, node *TreeNode)
- func (rbt *RbTree) Rbegin() *TreeNode
- func (rbt *RbTree) Remove(node *TreeNode)
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator : the map's iterator
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map by rbtree
type Paire ¶
type Paire struct { Value interface{} // contains filtered or unexported fields }
Paire is Node Data
type RbTree ¶
type RbTree struct { Root *TreeNode // contains filtered or unexported fields }
RbTree is Red/Black tree
Click to show internal directories.
Click to hide internal directories.