tree

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.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 Node

type Node struct {
	Span   span.INSSpan
	Left   *Node
	Right  *Node
	Length uint32
	Rank   int

	ShouldBeDeleted bool
}

base AVL Node

func New

func New(span span.INSSpan, left *Node, right *Node) *Node

func NewFromSpans

func NewFromSpans(spans []*span.INSSpan) *Node

func (*Node) Balance

func (n *Node) Balance() *Node

func (*Node) DEL

func (n *Node) DEL(span *span.DELSpan, minIndex uint32) error

func (*Node) FMT

func (n *Node) FMT(span *span.FMTSpan, minIndex uint32) error

func (*Node) INS

func (n *Node) INS(span *span.INSSpan, minIndex uint32) error

func (*Node) MOD

func (n *Node) MOD(span *span.MODSpan, minIndex uint32) error

func (*Node) Spans

func (n *Node) Spans() []*span.INSSpan

Jump to

Keyboard shortcuts

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