Documentation
¶
Index ¶
- Variables
- type CompareFunc
- type Node234
- type Relation
- type Tree234
- func (t *Tree234[T]) Add(e *T) *T
- func (t Tree234[T]) Count() int
- func (t *Tree234[T]) Delete(e *T) *T
- func (t *Tree234[T]) DeletePos(index int) *T
- func (t *Tree234[T]) FindRelPos(e *T, relation Relation) (el *T, index int)
- func (t *Tree234[T]) Index(index int) *T
- func (t Tree234[T]) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logrus.New()
Functions ¶
This section is empty.
Types ¶
type CompareFunc ¶
type Node234 ¶
type Node234[T any] struct { // contains filtered or unexported fields }
func (*Node234[T]) ChildIndex ¶
type Tree234 ¶
type Tree234[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](cmp CompareFunc[T]) *Tree234[T]
func (*Tree234[T]) FindRelPos ¶
Find an element e in a sorted 2-3-4 tree t. Returns NULL if not found. e is always passed as the first argument to cmp[, so cmp can be an asymmetric function if desired. cmp can also be passed as NULL, in which case the compare function from the tree proper will be used].
Click to show internal directories.
Click to hide internal directories.