hashed_index

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyFunc = func(Value) Hash { return 0 }

Functions

This section is empty.

Types

type FinalIndex

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

generic class

type FinalNode

type FinalNode struct {
	GetSuperNode func() interface{}
	GetFinalNode func() interface{}
}

generic class

type Hash

type Hash = int

template type HashedUniqueIndex(FinalIndex,FinalNode,SuperIndex,SuperNode,Value,Hash,KeyFunc)

type HashedUniqueIndex

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

func (*HashedUniqueIndex) Each

func (i *HashedUniqueIndex) Each(f func(key Hash, obj Value))

func (*HashedUniqueIndex) Empty

func (i *HashedUniqueIndex) Empty() bool

func (*HashedUniqueIndex) End

func (i *HashedUniqueIndex) End() Iterator

func (*HashedUniqueIndex) Erase

func (i *HashedUniqueIndex) Erase(iter Iterator)

func (*HashedUniqueIndex) Find

func (i *HashedUniqueIndex) Find(k Hash) (Iterator, bool)

func (*HashedUniqueIndex) GetFinalIndex

func (i *HashedUniqueIndex) GetFinalIndex() interface{}

func (*HashedUniqueIndex) GetSuperIndex

func (i *HashedUniqueIndex) GetSuperIndex() interface{}

func (*HashedUniqueIndex) Insert

func (i *HashedUniqueIndex) Insert(v Value) (Iterator, bool)

func (*HashedUniqueIndex) Modify

func (i *HashedUniqueIndex) Modify(iter Iterator, mod func(*Value)) bool

func (*HashedUniqueIndex) Size

func (i *HashedUniqueIndex) Size() int

func (*HashedUniqueIndex) Values

func (i *HashedUniqueIndex) Values() []Value

type HashedUniqueIndexNode

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

func (*HashedUniqueIndexNode) GetFinalNode

func (n *HashedUniqueIndexNode) GetFinalNode() interface{}

func (*HashedUniqueIndexNode) GetSuperNode

func (n *HashedUniqueIndexNode) GetSuperNode() interface{}

type Iterator

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

func (Iterator) HasNext

func (iter Iterator) HasNext() bool

func (Iterator) IsEnd

func (iter Iterator) IsEnd() bool

func (Iterator) Value

func (iter Iterator) Value() (v Value)

type SuperIndex

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

generic class

type SuperNode

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

generic class

type Value

type Value = int

Jump to

Keyboard shortcuts

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