set

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

func NewList

func NewList() *List

func (*List) Add

func (list *List) Add(
	searchStart *ListElement,
	hash uintptr,
	key int64,
) (element *ListElement, existed bool, inserted bool)

func (*List) Delete

func (list *List) Delete(element *ListElement)

func (*List) First

func (list *List) First() *ListElement

func (*List) Len

func (list *List) Len() int

type ListElement

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

func (*ListElement) Next

func (e *ListElement) Next() *ListElement

type Set

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

func NewSet

func NewSet() *Set

func NewSetSized

func NewSetSized(size uintptr) *Set

func (*Set) Add

func (m *Set) Add(key int64)

func (*Set) Count

func (m *Set) Count() int

func (*Set) Delete

func (m *Set) Delete(key int64)

func (*Set) Iterate

func (m *Set) Iterate(f func(key int64))

Jump to

Keyboard shortcuts

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