Documentation ¶
Index ¶
- type AndersonTree
- func (t *AndersonTree[T]) At(k uint) (T, error)
- func (t *AndersonTree[T]) Clear()
- func (t *AndersonTree[T]) Contains(value T) bool
- func (t *AndersonTree[T]) Delete(value T)
- func (t *AndersonTree[T]) Empty() bool
- func (t *AndersonTree[T]) Index(value T) uint
- func (t *AndersonTree[T]) Insert(value T)
- func (t *AndersonTree[T]) Predecessor(value T) (T, error)
- func (t *AndersonTree[T]) Size() uint
- func (t *AndersonTree[T]) Successor(value T) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndersonTree ¶
type AndersonTree[T constraints.Ordered] struct { // contains filtered or unexported fields }
func New ¶
func New[T constraints.Ordered]() AndersonTree[T]
func (*AndersonTree[T]) At ¶
func (t *AndersonTree[T]) At(k uint) (T, error)
func (*AndersonTree[T]) Clear ¶
func (t *AndersonTree[T]) Clear()
func (*AndersonTree[T]) Contains ¶
func (t *AndersonTree[T]) Contains(value T) bool
func (*AndersonTree[T]) Delete ¶
func (t *AndersonTree[T]) Delete(value T)
func (*AndersonTree[T]) Empty ¶
func (t *AndersonTree[T]) Empty() bool
func (*AndersonTree[T]) Index ¶
func (t *AndersonTree[T]) Index(value T) uint
func (*AndersonTree[T]) Insert ¶
func (t *AndersonTree[T]) Insert(value T)
func (*AndersonTree[T]) Predecessor ¶
func (t *AndersonTree[T]) Predecessor(value T) (T, error)
func (*AndersonTree[T]) Size ¶
func (t *AndersonTree[T]) Size() uint
func (*AndersonTree[T]) Successor ¶
func (t *AndersonTree[T]) Successor(value T) (T, error)
Click to show internal directories.
Click to hide internal directories.