hashed_index

package
v0.0.0-...-e0ee87b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 2 Imported by: 0

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