Help us shape the future of Go! Take the 2026 Go Developer Survey

BTree

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: GPL-3.0 Imports: 0 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 {
	// contains filtered or unexported fields
}

func (*Node) IsVisit

func (node *Node) IsVisit(flag int) bool

func (*Node) Print

func (node *Node) Print(flag int) string

type Queue

type Queue Stack

func NewQueue

func NewQueue() *Queue

func (*Queue) Front

func (q *Queue) Front() (node *Node)

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) Push

func (q *Queue) Push(node *Node)

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) IsEmpty

func (s *Stack) IsEmpty() bool

func (*Stack) Pop

func (s *Stack) Pop() (ret *Node)

func (*Stack) Push

func (s *Stack) Push(node *Node)

func (*Stack) Top

func (s *Stack) Top() *Node

type Tree

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

func NewProTree

func NewProTree(str string, sep rune) (tree *Tree)

func (*Tree) Back

func (t *Tree) Back() (str string)

func (*Tree) Count

func (t *Tree) Count()

func (*Tree) Level

func (t *Tree) Level() (ret string)

func (*Tree) Mid

func (t *Tree) Mid() (str string)

func (*Tree) NoBack

func (t *Tree) NoBack(flag int) (ret string)

func (*Tree) NoMid

func (t *Tree) NoMid(flag int) (ret string)

func (*Tree) NoPro

func (t *Tree) NoPro(flag int) (ret string)

func (*Tree) Pro

func (t *Tree) Pro() (str string)

Jump to

Keyboard shortcuts

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