Documentation ¶
Index ¶
- Variables
- type Buckets
- type FinalIndex
- type FinalNode
- type HashedIndex
- func (h *HashedIndex) Begin() Iterator
- func (h *HashedIndex) Empty() bool
- func (h *HashedIndex) End() Iterator
- func (h *HashedIndex) Erase(iter Iterator)
- func (h *HashedIndex) Find(k Key) Iterator
- func (h *HashedIndex) GetFinalIndex() interface{}
- func (h *HashedIndex) GetSuperIndex() interface{}
- func (h *HashedIndex) Insert(v Value) (Iterator, bool)
- func (h *HashedIndex) Modify(iter Iterator, mod func(*Value)) bool
- func (h *HashedIndex) Size() int
- func (h *HashedIndex) Values() []Value
- type HashedIndexNode
- type Iterator
- type Key
- type SuperIndex
- type SuperNode
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var Allocator allocator.MemoryManager = nil
View Source
var Hasher = func(h Key) uintptr { return container.Hash(h) }
View Source
var KeyFunc = func(Value) Key { return 0 }
Functions ¶
This section is empty.
Types ¶
type Buckets ¶
type Buckets struct {
// contains filtered or unexported fields
}
func NewBuckets ¶
func (*Buckets) At ¶
func (b *Buckets) At(i uintptr) *HashedIndexNode
func (*Buckets) Put ¶
func (b *Buckets) Put(i uintptr, e *HashedIndexNode)
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 HashedIndex ¶
type HashedIndex struct {
// contains filtered or unexported fields
}
func (*HashedIndex) Begin ¶
func (h *HashedIndex) Begin() Iterator
func (*HashedIndex) Empty ¶
func (h *HashedIndex) Empty() bool
func (*HashedIndex) End ¶
func (h *HashedIndex) End() Iterator
func (*HashedIndex) Erase ¶
func (h *HashedIndex) Erase(iter Iterator)
func (*HashedIndex) Find ¶
func (h *HashedIndex) Find(k Key) Iterator
func (*HashedIndex) GetFinalIndex ¶
func (h *HashedIndex) GetFinalIndex() interface{}
func (*HashedIndex) GetSuperIndex ¶
func (h *HashedIndex) GetSuperIndex() interface{}
func (*HashedIndex) Size ¶
func (h *HashedIndex) Size() int
func (*HashedIndex) Values ¶
func (h *HashedIndex) Values() []Value
type HashedIndexNode ¶
type HashedIndexNode struct {
// contains filtered or unexported fields
}
func NewHashedIndexNode ¶
func NewHashedIndexNode(bucket uintptr, key Key) *HashedIndexNode
func (*HashedIndexNode) Get ¶
func (n *HashedIndexNode) Get(key Key) *HashedIndexNode
func (*HashedIndexNode) GetFinalNode ¶
func (n *HashedIndexNode) GetFinalNode() interface{}
func (*HashedIndexNode) GetSuperNode ¶
func (n *HashedIndexNode) GetSuperNode() interface{}
type Key ¶
type Key = int
template type HashedIndex(FinalIndex,FinalNode,SuperIndex,SuperNode,Value,Key,KeyFunc,Hasher,Allocator)
type SuperIndex ¶
type SuperIndex struct {
// contains filtered or unexported fields
}
generic class
func NewSuperIndex ¶
func NewSuperIndex() *SuperIndex
Click to show internal directories.
Click to hide internal directories.