cppbtree

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enumerator

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

func (*Enumerator) Close

func (e *Enumerator) Close()

func (*Enumerator) Next

func (e *Enumerator) Next() (k uint64, v int64, err error)

func (*Enumerator) Prev

func (e *Enumerator) Prev() (k uint64, v int64, err error)

type Tree

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

func TreeNew

func TreeNew() *Tree

func (*Tree) Close

func (tree *Tree) Close()

func (*Tree) Delete

func (tree *Tree) Delete(key uint64)

func (*Tree) Get

func (tree *Tree) Get(key uint64) (int64, bool)

func (*Tree) Len

func (tree *Tree) Len() int

func (*Tree) PutNewAndGetOld

func (tree *Tree) PutNewAndGetOld(key uint64, newV int64) (int64, bool)

func (*Tree) Seek

func (tree *Tree) Seek(key uint64) (*Enumerator, bool)

func (*Tree) SeekFirst

func (tree *Tree) SeekFirst() (*Enumerator, error)

func (*Tree) Set

func (tree *Tree) Set(key uint64, value int64)

func (*Tree) SetDebug

func (tree *Tree) SetDebug(debug bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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