tree

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BTree

type BTree struct {
	// contains filtered or unexported fields
}

func NewBTree

func NewBTree() *BTree

func (*BTree) AscendGt

func (b *BTree) AscendGt(k btree.Item, filter func(btree.Item) bool, n int) []btree.Item

func (*BTree) AscendGte

func (b *BTree) AscendGte(k btree.Item, filter func(btree.Item) bool, n int) []btree.Item

func (*BTree) Delete

func (b *BTree) Delete(k btree.Item)

func (*BTree) DescendLt

func (b *BTree) DescendLt(k btree.Item, filter func(btree.Item) bool, n int) []btree.Item

func (*BTree) DescendLte

func (b *BTree) DescendLte(k btree.Item, filter func(btree.Item) bool, n int) []btree.Item

func (*BTree) Get

func (b *BTree) Get(k btree.Item) btree.Item

func (*BTree) Insert

func (b *BTree) Insert(v btree.Item)

func (*BTree) Update

func (b *BTree) Update(oldV btree.Item, newV btree.Item)

func (*BTree) UpdateOrInsert

func (b *BTree) UpdateOrInsert(oldV btree.Item, newV btree.Item)

type FilterFn

type FilterFn func(n btree.Item) bool

FilterFn : filter a node value is in condition or not

type IterFn

type IterFn func(pivot btree.Item, iterator btree.ItemIterator)

IterFn : btree iter function

Directories

Path Synopsis
Package btree implements in-memory B-Trees of arbitrary degree.
Package btree implements in-memory B-Trees of arbitrary degree.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL