Documentation ¶
Overview ¶
https://www.boost.org/doc/libs/1_79_0/libs/multi_index/doc/tutorial/basics.html
type specifier key-based ordered ordered_unique
ordered_non_unique ranked_unique ranked_non_unique hashed hashed_unique hashed_non_unique
non key-based sequenced
random_access
See also maps/builder.go
Index ¶
- func GetOrMake[K, V any](m MutMap[K, V], k K, fn func() V) V
- func Keys[K, V any](m Map[K, V]) bt.Iterable[K]
- func MapFormat[K, V any](f fmt.State, m Map[K, V])
- func MapMarshalJson[K, V any](m Map[K, V]) ([]byte, error)
- func MapString[K, V any](sb *strings.Builder, m Map[K, V])
- func SetPop[T comparable](s MutSet[T]) (T, bool)
- func Values[K, V any](m Map[K, V]) bt.Iterable[V]
- type BiMap
- type CowList
- func (m *CowList[T]) Append(v T)
- func (m *CowList[T]) Clone() *CowList[T]
- func (m *CowList[T]) Delete(i int)
- func (m *CowList[T]) ForEach(fn func(v T) bool) bool
- func (m *CowList[T]) Get(i int) T
- func (m *CowList[T]) Iterate() bt.Iterator[T]
- func (m *CowList[T]) Len() int
- func (m *CowList[T]) Put(i int, v T)
- type CowMap
- func (m *CowMap[K, V]) Clone() *CowMap[K, V]
- func (m *CowMap[K, V]) Contains(k K) bool
- func (m *CowMap[K, V]) Default(k K, v V) bool
- func (m *CowMap[K, V]) Delete(k K)
- func (m *CowMap[K, V]) ForEach(fn func(bt.Kv[K, V]) bool) bool
- func (m *CowMap[K, V]) Get(k K) V
- func (m *CowMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *CowMap[K, V]) Len() int
- func (m *CowMap[K, V]) Put(k K, v V)
- func (m *CowMap[K, V]) TryGet(k K) (V, bool)
- type Decay
- type DenseList8
- type HashEqMap
- type IndexError
- type IntrusiveList
- func (l *IntrusiveList[T]) Append(v *T)
- func (l IntrusiveList[T]) Back() *T
- func (l *IntrusiveList[T]) Delete(i int)
- func (l IntrusiveList[T]) ForEach(fn func(v *T) bool) bool
- func (l IntrusiveList[T]) Front() *T
- func (l IntrusiveList[T]) Get(i int) *T
- func (l *IntrusiveList[T]) InsertAfter(v, mark *T) *T
- func (l *IntrusiveList[T]) InsertBefore(v, mark *T) *T
- func (l IntrusiveList[T]) Iterate() bt.Iterator[*T]
- func (l IntrusiveList[T]) IterateFrom(e *T) bt.Iterator[*T]
- func (l IntrusiveList[T]) Len() int
- func (l *IntrusiveList[T]) MoveAfter(e, mark *T) *T
- func (l *IntrusiveList[T]) MoveBefore(e, mark *T) *T
- func (l *IntrusiveList[T]) MoveToBack(e *T) *T
- func (l *IntrusiveList[T]) MoveToFront(e *T) *T
- func (l *IntrusiveList[T]) PushBack(v *T) *T
- func (l *IntrusiveList[T]) PushFront(v *T) *T
- func (l *IntrusiveList[T]) Put(i int, v *T)
- func (l *IntrusiveList[T]) Remove(e *T) *T
- func (l *IntrusiveList[T]) ReverseIterate() bt.Iterator[*T]
- func (l *IntrusiveList[T]) ReverseIterateFrom(e *T) bt.Iterator[*T]
- type IntrusiveListNode
- type IntrusiveListOps
- type KeyError
- type LinkedList
- func (l *LinkedList[T]) Append(v T)
- func (l *LinkedList[T]) Delete(i int)
- func (l *LinkedList[T]) ForEach(fn func(v T) bool) bool
- func (l *LinkedList[T]) Get(i int) T
- func (l *LinkedList[T]) GetElement(i int) *list.Element
- func (l *LinkedList[T]) Iterate() bt.Iterator[T]
- func (l *LinkedList[T]) Len() int
- func (l *LinkedList[T]) Put(i int, v T)
- type LinkedMap
- func (m LinkedMap[K, V]) AnyIterate() bt.Iterator[any]
- func (m LinkedMap[K, V]) Contains(k K) bool
- func (m LinkedMap[K, V]) ForEach(fn func(bt.Kv[K, V]) bool) bool
- func (m LinkedMap[K, V]) Get(k K) V
- func (m LinkedMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m LinkedMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m LinkedMap[K, V]) Len() int
- func (m LinkedMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
- func (m LinkedMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m LinkedMap[K, V]) TryGet(k K) (V, bool)
- type List
- type ListView
- type LockedMap
- func (m *LockedMap[K, V]) Contains(k K) bool
- func (m *LockedMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m *LockedMap[K, V]) Get(k K) V
- func (m *LockedMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *LockedMap[K, V]) Len() int
- func (m *LockedMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *LockedMap[K, V]) TryGet(k K) (V, bool)
- func (m *LockedMap[K, V]) UnmarshalJSON(b []byte) error
- type LockedMutMap
- type Map
- type MapBuilder
- func (b *MapBuilder[K, V]) Build() OrderedMap[K, V]
- func (b *MapBuilder[K, V]) Default(k K, v V) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) Delete(k K) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) Filter(fn func(kv bt.Kv[K, V]) bool) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) FilterKeys(fn func(k K) bool) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) FilterValues(fn func(v V) bool) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) Put(k K, v V) *MapBuilder[K, V]
- func (b *MapBuilder[K, V]) Update(it bt.Iterable[bt.Kv[K, V]]) *MapBuilder[K, V]
- type MapFormatter
- type MapShape
- type MapStringer
- type MapView
- func (m MapView[K, VF, VT]) Contains(k K) bool
- func (m MapView[K, VF, VT]) ForEach(fn func(v bt.Kv[K, VT]) bool) bool
- func (m MapView[K, VF, VT]) Get(k K) VT
- func (m MapView[K, VF, VT]) Iterate() bt.Iterator[bt.Kv[K, VT]]
- func (m MapView[K, VF, VT]) Len() int
- func (m MapView[K, VF, VT]) TryGet(k K) (VT, bool)
- type Mut
- type MutBiMap
- type MutDenseList8
- func (l *MutDenseList8[T]) Append(v T)
- func (l *MutDenseList8[T]) Delete(i int)
- func (l *MutDenseList8[T]) ForEach(fn func(v T) bool) bool
- func (l *MutDenseList8[T]) Get(i int) T
- func (l *MutDenseList8[T]) Iterate() bt.Iterator[T]
- func (l *MutDenseList8[T]) Len() int
- func (l *MutDenseList8[T]) Put(i int, v T)
- type MutHashEqMap
- func (m *MutHashEqMap[K, V]) Contains(k K) bool
- func (m *MutHashEqMap[K, V]) Decay() Map[K, V]
- func (m *MutHashEqMap[K, V]) Default(k K, v V) bool
- func (m *MutHashEqMap[K, V]) Delete(k K)
- func (m *MutHashEqMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m *MutHashEqMap[K, V]) Get(k K) V
- func (m *MutHashEqMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutHashEqMap[K, V]) Len() int
- func (m *MutHashEqMap[K, V]) Put(k K, v V)
- func (m *MutHashEqMap[K, V]) TryGet(k K) (V, bool)
- type MutLinkedMap
- func (m *MutLinkedMap[K, V]) Contains(k K) bool
- func (m *MutLinkedMap[K, V]) Decay() Map[K, V]
- func (m *MutLinkedMap[K, V]) Default(k K, v V) bool
- func (m *MutLinkedMap[K, V]) Delete(k K)
- func (m *MutLinkedMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m *MutLinkedMap[K, V]) Get(k K) V
- func (m *MutLinkedMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutLinkedMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m *MutLinkedMap[K, V]) Len() int
- func (m *MutLinkedMap[K, V]) Put(k K, v V)
- func (m *MutLinkedMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutLinkedMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m *MutLinkedMap[K, V]) TryGet(k K) (V, bool)
- type MutList
- type MutMap
- type MutOrderedMap
- type MutRbTreeMap
- func (m *MutRbTreeMap[K, V]) Contains(k K) bool
- func (m *MutRbTreeMap[K, V]) Decay() Map[K, V]
- func (m *MutRbTreeMap[K, V]) Default(k K, v V) bool
- func (m *MutRbTreeMap[K, V]) Delete(k K)
- func (m *MutRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m *MutRbTreeMap[K, V]) Get(k K) V
- func (m *MutRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutRbTreeMap[K, V]) Len() int
- func (m MutRbTreeMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *MutRbTreeMap[K, V]) Put(k K, v V)
- func (m *MutRbTreeMap[K, V]) TryGet(k K) (V, bool)
- func (m *MutRbTreeMap[K, V]) UnmarshalJSON(b []byte) error
- type MutSet
- type MutShapeMap
- func (m MutShapeMap[K, V]) Contains(k K) bool
- func (m MutShapeMap[K, V]) Default(k K, v V) bool
- func (m MutShapeMap[K, V]) Delete(k K)
- func (m MutShapeMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
- func (m MutShapeMap[K, V]) Format(f fmt.State, c rune)
- func (m MutShapeMap[K, V]) Get(k K) V
- func (m MutShapeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m MutShapeMap[K, V]) Len() int
- func (m MutShapeMap[K, V]) MarshalJSON() ([]byte, error)
- func (m MutShapeMap[K, V]) Put(k K, v V)
- func (m MutShapeMap[K, V]) Shape() MapShape[K]
- func (m MutShapeMap[K, V]) String() string
- func (m MutShapeMap[K, V]) TryGet(k K) (V, bool)
- func (m MutShapeMap[K, V]) Value(i int) *V
- func (m MutShapeMap[K, V]) Values() []V
- type MutSimpleBiMap
- func (m MutSimpleBiMap[K, V]) Contains(k K) bool
- func (m MutSimpleBiMap[K, V]) Default(k K, v V) bool
- func (m MutSimpleBiMap[K, V]) Delete(k K)
- func (m MutSimpleBiMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
- func (m MutSimpleBiMap[K, V]) Get(k K) V
- func (m MutSimpleBiMap[K, V]) Invert() BiMap[V, K]
- func (m MutSimpleBiMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m MutSimpleBiMap[K, V]) Len() int
- func (m MutSimpleBiMap[K, V]) MarshalJSON() ([]byte, error)
- func (m MutSimpleBiMap[K, V]) MutInvert() MutBiMap[V, K]
- func (m MutSimpleBiMap[K, V]) Put(k K, v V)
- func (m MutSimpleBiMap[K, V]) TryGet(k K) (V, bool)
- func (m *MutSimpleBiMap[K, V]) UnmarshalJSON(b []byte) error
- type MutSliceList
- func (l *MutSliceList[T]) Append(v T)
- func (l *MutSliceList[T]) Decay() List[T]
- func (l *MutSliceList[T]) Delete(i int)
- func (l *MutSliceList[T]) ForEach(fn func(v T) bool) bool
- func (l *MutSliceList[T]) Get(i int) T
- func (l *MutSliceList[T]) Iterate() bt.Iterator[T]
- func (l *MutSliceList[T]) Len() int
- func (l MutSliceList[T]) MarshalJSON() ([]byte, error)
- func (l *MutSliceList[T]) Put(i int, v T)
- func (l *MutSliceList[T]) UnmarshalJSON(b []byte) error
- type MutSliceMap
- func (m *MutSliceMap[K, V]) All() []bt.Kv[K, V]
- func (m *MutSliceMap[K, V]) Contains(k K) bool
- func (m *MutSliceMap[K, V]) Decay() Map[K, V]
- func (m *MutSliceMap[K, V]) Default(k K, v V) bool
- func (m *MutSliceMap[K, V]) Delete(k K)
- func (m *MutSliceMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m MutSliceMap[K, V]) Format(f fmt.State, c rune)
- func (m *MutSliceMap[K, V]) Get(k K) V
- func (m *MutSliceMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutSliceMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m *MutSliceMap[K, V]) Len() int
- func (m MutSliceMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *MutSliceMap[K, V]) Put(k K, v V)
- func (m *MutSliceMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutSliceMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m MutSliceMap[K, V]) String() string
- func (m *MutSliceMap[K, V]) TryGet(k K) (V, bool)
- func (m *MutSliceMap[K, V]) UnmarshalJSON(b []byte) error
- type MutStdMap
- func (m *MutStdMap[K, V]) Contains(k K) bool
- func (m *MutStdMap[K, V]) Decay() Map[K, V]
- func (m *MutStdMap[K, V]) Default(k K, v V) bool
- func (m *MutStdMap[K, V]) Delete(k K)
- func (m *MutStdMap[K, V]) ForEach(fn func(bt.Kv[K, V]) bool) bool
- func (m *MutStdMap[K, V]) Get(k K) V
- func (m *MutStdMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *MutStdMap[K, V]) Len() int
- func (m MutStdMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *MutStdMap[K, V]) Put(k K, v V)
- func (m *MutStdMap[K, V]) TryGet(k K) (V, bool)
- func (m *MutStdMap[K, V]) UnmarshalJSON(b []byte) error
- type MutStdSet
- func (s *MutStdSet[T]) Add(value T)
- func (s *MutStdSet[T]) Contains(v T) bool
- func (s *MutStdSet[T]) Decay() Set[T]
- func (s *MutStdSet[T]) ForEach(fn func(v T) bool) bool
- func (s *MutStdSet[T]) Iterate() bt.Iterator[T]
- func (s *MutStdSet[T]) Len() int
- func (s MutStdSet[T]) MarshalJSON() ([]byte, error)
- func (s *MutStdSet[T]) Remove(value T)
- func (s *MutStdSet[T]) TryAdd(value T) bool
- func (s *MutStdSet[T]) TryRemove(value T) bool
- func (s *MutStdSet[T]) UnmarshalJSON(b []byte) error
- type Ordered
- type OrderedMap
- type Persistent
- type PersistentMap
- type PrimitiveMutRbTreeMap
- func (m *PrimitiveMutRbTreeMap[K, V]) Contains(k K) bool
- func (m *PrimitiveMutRbTreeMap[K, V]) Decay() Map[K, V]
- func (m *PrimitiveMutRbTreeMap[K, V]) Default(k K, v V) bool
- func (m *PrimitiveMutRbTreeMap[K, V]) Delete(k K)
- func (m *PrimitiveMutRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m *PrimitiveMutRbTreeMap[K, V]) Get(k K) V
- func (m *PrimitiveMutRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m *PrimitiveMutRbTreeMap[K, V]) Len() int
- func (m *PrimitiveMutRbTreeMap[K, V]) Put(k K, v V)
- func (m *PrimitiveMutRbTreeMap[K, V]) TryGet(k K) (V, bool)
- type PrimitiveRbTreeMap
- func (m PrimitiveRbTreeMap[K, V]) Contains(k K) bool
- func (m PrimitiveRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m PrimitiveRbTreeMap[K, V]) Get(k K) V
- func (m PrimitiveRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m PrimitiveRbTreeMap[K, V]) Len() int
- func (m PrimitiveRbTreeMap[K, V]) TryGet(k K) (V, bool)
- type RbTreeMap
- func (m RbTreeMap[K, V]) Contains(k K) bool
- func (m RbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
- func (m RbTreeMap[K, V]) Get(k K) V
- func (m RbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m RbTreeMap[K, V]) Len() int
- func (m RbTreeMap[K, V]) MarshalJSON() ([]byte, error)
- func (m RbTreeMap[K, V]) TryGet(k K) (V, bool)
- func (m *RbTreeMap[K, V]) UnmarshalJSON(b []byte) error
- type Set
- func DecaySet[T comparable](l MutSet[T]) Set[T]
- func Difference[T comparable](ss ...Set[T]) Set[T]
- func Intersection[T comparable](ss ...Set[T]) Set[T]
- func NewHashEqSet[K any](he bt.HashEqImpl[K], it bt.Iterable[K]) Set[K]
- func NewMapSet[K, V any](m Map[K, V]) Set[K]
- func Union[T comparable](ss ...Set[T]) Set[T]
- type SetView
- type ShapeMap
- func (m ShapeMap[K, V]) Clone() ShapeMap[K, V]
- func (m ShapeMap[K, V]) Contains(k K) bool
- func (m ShapeMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
- func (m ShapeMap[K, V]) Format(f fmt.State, c rune)
- func (m ShapeMap[K, V]) Get(k K) V
- func (m ShapeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m ShapeMap[K, V]) Len() int
- func (m ShapeMap[K, V]) MarshalJSON() ([]byte, error)
- func (m ShapeMap[K, V]) Shape() MapShape[K]
- func (m ShapeMap[K, V]) String() string
- func (m ShapeMap[K, V]) TryGet(k K) (V, bool)
- func (m ShapeMap[K, V]) Value(i int) V
- func (m ShapeMap[K, V]) Values() []V
- type SimpleBiMap
- type SliceList
- type SliceMap
- func (m SliceMap[K, V]) AnyIterate() bt.Iterator[any]
- func (m SliceMap[K, V]) Contains(k K) bool
- func (m SliceMap[K, V]) ForEach(fn func(bt.Kv[K, V]) bool) bool
- func (m SliceMap[K, V]) Format(f fmt.State, c rune)
- func (m SliceMap[K, V]) Get(k K) V
- func (m SliceMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m SliceMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m SliceMap[K, V]) Len() int
- func (m SliceMap[K, V]) MarshalJSON() ([]byte, error)
- func (m SliceMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
- func (m SliceMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
- func (m SliceMap[K, V]) String() string
- func (m SliceMap[K, V]) TryGet(k K) (V, bool)
- func (m *SliceMap[K, V]) UnmarshalJSON(b []byte) error
- type Sorted
- type StdMap
- func (m StdMap[K, V]) Contains(k K) bool
- func (m StdMap[K, V]) ForEach(fn func(bt.Kv[K, V]) bool) bool
- func (m StdMap[K, V]) Get(k K) V
- func (m StdMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m StdMap[K, V]) Len() int
- func (m StdMap[K, V]) MarshalJSON() ([]byte, error)
- func (m StdMap[K, V]) TryGet(k K) (V, bool)
- func (m *StdMap[K, V]) UnmarshalJSON(b []byte) error
- type StdSet
- type Sync
- type SyncList
- type SyncMap
- type SyncMutList
- type SyncMutMap
- type TreapMap
- func (m TreapMap[K, V]) Contains(k K) bool
- func (m TreapMap[K, V]) Default(k K, v V) PersistentMap[K, V]
- func (m TreapMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
- func (m TreapMap[K, V]) Get(k K) V
- func (m TreapMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
- func (m TreapMap[K, V]) Len() int
- func (m TreapMap[K, V]) TryGet(k K) (V, bool)
- func (m TreapMap[K, V]) With(k K, v V) PersistentMap[K, V]
- func (m TreapMap[K, V]) Without(k K) PersistentMap[K, V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPop ¶
func SetPop[T comparable](s MutSet[T]) (T, bool)
Types ¶
type BiMap ¶
type BiMap[K, V comparable] interface { Map[K, V] Invert() BiMap[V, K] }
type CowList ¶
type CowList[T any] struct { // contains filtered or unexported fields }
func NewCowListOf ¶
type CowMap ¶
type CowMap[K comparable, V any] struct { // contains filtered or unexported fields }
type DenseList8 ¶
type DenseList8[T any] struct { // contains filtered or unexported fields }
func (DenseList8[T]) ForEach ¶
func (l DenseList8[T]) ForEach(fn func(v T) bool) bool
func (DenseList8[T]) Get ¶
func (l DenseList8[T]) Get(i int) T
func (DenseList8[T]) Iterate ¶
func (l DenseList8[T]) Iterate() bt.Iterator[T]
func (DenseList8[T]) Len ¶
func (l DenseList8[T]) Len() int
type HashEqMap ¶
type HashEqMap[K, V any] struct { // contains filtered or unexported fields }
func NewHashEqMap ¶
type IndexError ¶
type IndexError struct {
Index int
}
func (IndexError) Error ¶
func (e IndexError) Error() string
func (IndexError) String ¶
func (e IndexError) String() string
type IntrusiveList ¶
type IntrusiveList[T any] struct { // contains filtered or unexported fields }
func NewIntrusiveList ¶
func NewIntrusiveList[T any](ops IntrusiveListOps[T]) *IntrusiveList[T]
func (*IntrusiveList[T]) Append ¶
func (l *IntrusiveList[T]) Append(v *T)
func (IntrusiveList[T]) Back ¶
func (l IntrusiveList[T]) Back() *T
func (*IntrusiveList[T]) Delete ¶
func (l *IntrusiveList[T]) Delete(i int)
func (IntrusiveList[T]) ForEach ¶
func (l IntrusiveList[T]) ForEach(fn func(v *T) bool) bool
func (IntrusiveList[T]) Front ¶
func (l IntrusiveList[T]) Front() *T
func (IntrusiveList[T]) Get ¶
func (l IntrusiveList[T]) Get(i int) *T
func (*IntrusiveList[T]) InsertAfter ¶
func (l *IntrusiveList[T]) InsertAfter(v, mark *T) *T
func (*IntrusiveList[T]) InsertBefore ¶
func (l *IntrusiveList[T]) InsertBefore(v, mark *T) *T
func (IntrusiveList[T]) Iterate ¶
func (l IntrusiveList[T]) Iterate() bt.Iterator[*T]
func (IntrusiveList[T]) IterateFrom ¶
func (l IntrusiveList[T]) IterateFrom(e *T) bt.Iterator[*T]
func (IntrusiveList[T]) Len ¶
func (l IntrusiveList[T]) Len() int
func (*IntrusiveList[T]) MoveAfter ¶
func (l *IntrusiveList[T]) MoveAfter(e, mark *T) *T
func (*IntrusiveList[T]) MoveBefore ¶
func (l *IntrusiveList[T]) MoveBefore(e, mark *T) *T
func (*IntrusiveList[T]) MoveToBack ¶
func (l *IntrusiveList[T]) MoveToBack(e *T) *T
func (*IntrusiveList[T]) MoveToFront ¶
func (l *IntrusiveList[T]) MoveToFront(e *T) *T
func (*IntrusiveList[T]) PushBack ¶
func (l *IntrusiveList[T]) PushBack(v *T) *T
func (*IntrusiveList[T]) PushFront ¶
func (l *IntrusiveList[T]) PushFront(v *T) *T
func (*IntrusiveList[T]) Put ¶
func (l *IntrusiveList[T]) Put(i int, v *T)
func (*IntrusiveList[T]) Remove ¶
func (l *IntrusiveList[T]) Remove(e *T) *T
func (*IntrusiveList[T]) ReverseIterate ¶
func (l *IntrusiveList[T]) ReverseIterate() bt.Iterator[*T]
func (*IntrusiveList[T]) ReverseIterateFrom ¶
func (l *IntrusiveList[T]) ReverseIterateFrom(e *T) bt.Iterator[*T]
type IntrusiveListNode ¶
type IntrusiveListNode[T any] struct { // contains filtered or unexported fields }
func (IntrusiveListNode[T]) Next ¶
func (n IntrusiveListNode[T]) Next() *T
func (IntrusiveListNode[T]) Prev ¶
func (n IntrusiveListNode[T]) Prev() *T
func (IntrusiveListNode[T]) String ¶
func (n IntrusiveListNode[T]) String() string
type IntrusiveListOps ¶
type IntrusiveListOps[T any] struct { // contains filtered or unexported fields }
func NewIntrusiveListOps ¶
func NewIntrusiveListOps[T any](getNode func(*T) *IntrusiveListNode[T]) IntrusiveListOps[T]
func (IntrusiveListOps[T]) GetNode ¶
func (o IntrusiveListOps[T]) GetNode(e *T) *IntrusiveListNode[T]
type LinkedList ¶
func NewLinkedList ¶
func NewLinkedList[T any](it bt.Iterable[T]) *LinkedList[T]
func (*LinkedList[T]) Append ¶
func (l *LinkedList[T]) Append(v T)
func (*LinkedList[T]) Delete ¶
func (l *LinkedList[T]) Delete(i int)
func (*LinkedList[T]) ForEach ¶
func (l *LinkedList[T]) ForEach(fn func(v T) bool) bool
func (*LinkedList[T]) Get ¶
func (l *LinkedList[T]) Get(i int) T
func (*LinkedList[T]) GetElement ¶
func (l *LinkedList[T]) GetElement(i int) *list.Element
func (*LinkedList[T]) Iterate ¶
func (l *LinkedList[T]) Iterate() bt.Iterator[T]
func (*LinkedList[T]) Len ¶
func (l *LinkedList[T]) Len() int
func (*LinkedList[T]) Put ¶
func (l *LinkedList[T]) Put(i int, v T)
type LinkedMap ¶
type LinkedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewLinkedMap ¶
func (LinkedMap[K, V]) IterateFrom ¶
func (LinkedMap[K, V]) ReverseIterate ¶
func (LinkedMap[K, V]) ReverseIterateFrom ¶
type ListView ¶
type ListView[F, T any] struct { // contains filtered or unexported fields }
func NewListView ¶
type LockedMap ¶
type LockedMap[K, V any] struct { // contains filtered or unexported fields }
func NewLockedMap ¶
func (*LockedMap[K, V]) MarshalJSON ¶
func (*LockedMap[K, V]) UnmarshalJSON ¶
type LockedMutMap ¶
func NewLockedMutMap ¶
func NewLockedMutMap[K, V any](m MutMap[K, V]) *LockedMutMap[K, V]
func (*LockedMutMap[K, V]) Default ¶
func (m *LockedMutMap[K, V]) Default(k K, v V) bool
func (*LockedMutMap[K, V]) Delete ¶
func (m *LockedMutMap[K, V]) Delete(k K)
func (*LockedMutMap[K, V]) MarshalJSON ¶
func (m *LockedMutMap[K, V]) MarshalJSON() ([]byte, error)
func (*LockedMutMap[K, V]) Put ¶
func (m *LockedMutMap[K, V]) Put(k K, v V)
func (*LockedMutMap[K, V]) UnmarshalJSON ¶
func (m *LockedMutMap[K, V]) UnmarshalJSON(b []byte) error
type Map ¶
type Map[K, V any] interface { Len() int Contains(k K) bool Get(k K) V TryGet(k K) (V, bool) bt.Iterable[bt.Kv[K, V]] bt.Traversable[bt.Kv[K, V]] }
type MapBuilder ¶
type MapBuilder[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMapBuilder ¶
func NewMapBuilder[K comparable, V any]() *MapBuilder[K, V]
func (*MapBuilder[K, V]) Build ¶
func (b *MapBuilder[K, V]) Build() OrderedMap[K, V]
func (*MapBuilder[K, V]) Default ¶
func (b *MapBuilder[K, V]) Default(k K, v V) *MapBuilder[K, V]
func (*MapBuilder[K, V]) Delete ¶
func (b *MapBuilder[K, V]) Delete(k K) *MapBuilder[K, V]
func (*MapBuilder[K, V]) Filter ¶
func (b *MapBuilder[K, V]) Filter(fn func(kv bt.Kv[K, V]) bool) *MapBuilder[K, V]
func (*MapBuilder[K, V]) FilterKeys ¶
func (b *MapBuilder[K, V]) FilterKeys(fn func(k K) bool) *MapBuilder[K, V]
func (*MapBuilder[K, V]) FilterValues ¶
func (b *MapBuilder[K, V]) FilterValues(fn func(v V) bool) *MapBuilder[K, V]
func (*MapBuilder[K, V]) Put ¶
func (b *MapBuilder[K, V]) Put(k K, v V) *MapBuilder[K, V]
func (*MapBuilder[K, V]) Update ¶
func (b *MapBuilder[K, V]) Update(it bt.Iterable[bt.Kv[K, V]]) *MapBuilder[K, V]
type MapFormatter ¶
type MapFormatter struct {
// contains filtered or unexported fields
}
func (MapFormatter) WriteBegin ¶
func (mf MapFormatter) WriteBegin()
func (MapFormatter) WriteEnd ¶
func (mf MapFormatter) WriteEnd()
func (MapFormatter) WriteEntry ¶
func (mf MapFormatter) WriteEntry(i int, k, v any)
func (MapFormatter) WriteString ¶
func (mf MapFormatter) WriteString(s string)
type MapShape ¶
type MapShape[K comparable] struct { // contains filtered or unexported fields }
func NewMapShape ¶
func NewMapShape[K comparable](ks bt.Iterable[K]) MapShape[K]
type MapStringer ¶
type MapStringer struct {
// contains filtered or unexported fields
}
func (MapStringer) WriteBegin ¶
func (ms MapStringer) WriteBegin()
func (MapStringer) WriteEnd ¶
func (ms MapStringer) WriteEnd()
func (MapStringer) WriteEntry ¶
func (ms MapStringer) WriteEntry(i int, k, v any)
type MapView ¶
type MapView[K comparable, VF, VT any] struct { // contains filtered or unexported fields }
func NewMapView ¶
func NewMapView[K comparable, VF, VT any](m Map[K, VF], fn func(VF) VT) MapView[K, VF, VT]
type MutBiMap ¶
type MutBiMap[K, V comparable] interface { MutMap[K, V] BiMap[K, V] MutInvert() MutBiMap[V, K] }
type MutDenseList8 ¶
type MutDenseList8[T any] struct { // contains filtered or unexported fields }
func (*MutDenseList8[T]) Append ¶
func (l *MutDenseList8[T]) Append(v T)
func (*MutDenseList8[T]) Delete ¶
func (l *MutDenseList8[T]) Delete(i int)
func (*MutDenseList8[T]) ForEach ¶
func (l *MutDenseList8[T]) ForEach(fn func(v T) bool) bool
func (*MutDenseList8[T]) Get ¶
func (l *MutDenseList8[T]) Get(i int) T
func (*MutDenseList8[T]) Iterate ¶
func (l *MutDenseList8[T]) Iterate() bt.Iterator[T]
func (*MutDenseList8[T]) Len ¶
func (l *MutDenseList8[T]) Len() int
func (*MutDenseList8[T]) Put ¶
func (l *MutDenseList8[T]) Put(i int, v T)
type MutHashEqMap ¶
type MutHashEqMap[K, V any] struct { // contains filtered or unexported fields }
func NewMutHashEqMap ¶
func NewMutHashEqMap[K, V any](he bt.HashEqImpl[K], it bt.Iterable[bt.Kv[K, V]]) *MutHashEqMap[K, V]
func (*MutHashEqMap[K, V]) Contains ¶
func (m *MutHashEqMap[K, V]) Contains(k K) bool
func (*MutHashEqMap[K, V]) Decay ¶
func (m *MutHashEqMap[K, V]) Decay() Map[K, V]
func (*MutHashEqMap[K, V]) Default ¶
func (m *MutHashEqMap[K, V]) Default(k K, v V) bool
func (*MutHashEqMap[K, V]) Delete ¶
func (m *MutHashEqMap[K, V]) Delete(k K)
func (*MutHashEqMap[K, V]) ForEach ¶
func (m *MutHashEqMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (*MutHashEqMap[K, V]) Get ¶
func (m *MutHashEqMap[K, V]) Get(k K) V
func (*MutHashEqMap[K, V]) Iterate ¶
func (m *MutHashEqMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (*MutHashEqMap[K, V]) Len ¶
func (m *MutHashEqMap[K, V]) Len() int
func (*MutHashEqMap[K, V]) Put ¶
func (m *MutHashEqMap[K, V]) Put(k K, v V)
func (*MutHashEqMap[K, V]) TryGet ¶
func (m *MutHashEqMap[K, V]) TryGet(k K) (V, bool)
type MutLinkedMap ¶
type MutLinkedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMutLinkedMap ¶
func NewMutLinkedMap[K comparable, V any](it bt.Iterable[bt.Kv[K, V]]) *MutLinkedMap[K, V]
func (*MutLinkedMap[K, V]) Contains ¶
func (m *MutLinkedMap[K, V]) Contains(k K) bool
func (*MutLinkedMap[K, V]) Decay ¶
func (m *MutLinkedMap[K, V]) Decay() Map[K, V]
func (*MutLinkedMap[K, V]) Default ¶
func (m *MutLinkedMap[K, V]) Default(k K, v V) bool
func (*MutLinkedMap[K, V]) Delete ¶
func (m *MutLinkedMap[K, V]) Delete(k K)
func (*MutLinkedMap[K, V]) ForEach ¶
func (m *MutLinkedMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (*MutLinkedMap[K, V]) Get ¶
func (m *MutLinkedMap[K, V]) Get(k K) V
func (*MutLinkedMap[K, V]) Iterate ¶
func (m *MutLinkedMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (*MutLinkedMap[K, V]) IterateFrom ¶
func (m *MutLinkedMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
func (*MutLinkedMap[K, V]) Len ¶
func (m *MutLinkedMap[K, V]) Len() int
func (*MutLinkedMap[K, V]) Put ¶
func (m *MutLinkedMap[K, V]) Put(k K, v V)
func (*MutLinkedMap[K, V]) ReverseIterate ¶
func (m *MutLinkedMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
func (*MutLinkedMap[K, V]) ReverseIterateFrom ¶
func (m *MutLinkedMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
func (*MutLinkedMap[K, V]) TryGet ¶
func (m *MutLinkedMap[K, V]) TryGet(k K) (V, bool)
type MutMap ¶
func NewMutSetMap ¶
type MutOrderedMap ¶
type MutOrderedMap[K, V any] interface { OrderedMap[K, V] MutMap[K, V] }
type MutRbTreeMap ¶
type MutRbTreeMap[K, V any] struct { // contains filtered or unexported fields }
func NewMutRbTreeMap ¶
func (*MutRbTreeMap[K, V]) Contains ¶
func (m *MutRbTreeMap[K, V]) Contains(k K) bool
func (*MutRbTreeMap[K, V]) Decay ¶
func (m *MutRbTreeMap[K, V]) Decay() Map[K, V]
func (*MutRbTreeMap[K, V]) Default ¶
func (m *MutRbTreeMap[K, V]) Default(k K, v V) bool
func (*MutRbTreeMap[K, V]) Delete ¶
func (m *MutRbTreeMap[K, V]) Delete(k K)
func (*MutRbTreeMap[K, V]) ForEach ¶
func (m *MutRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (*MutRbTreeMap[K, V]) Get ¶
func (m *MutRbTreeMap[K, V]) Get(k K) V
func (*MutRbTreeMap[K, V]) Iterate ¶
func (m *MutRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (*MutRbTreeMap[K, V]) Len ¶
func (m *MutRbTreeMap[K, V]) Len() int
func (MutRbTreeMap[K, V]) MarshalJSON ¶
func (m MutRbTreeMap[K, V]) MarshalJSON() ([]byte, error)
func (*MutRbTreeMap[K, V]) Put ¶
func (m *MutRbTreeMap[K, V]) Put(k K, v V)
func (*MutRbTreeMap[K, V]) TryGet ¶
func (m *MutRbTreeMap[K, V]) TryGet(k K) (V, bool)
func (*MutRbTreeMap[K, V]) UnmarshalJSON ¶
func (m *MutRbTreeMap[K, V]) UnmarshalJSON(b []byte) error
type MutSet ¶
type MutSet[T any] interface { Set[T] Mut Add(v T) TryAdd(v T) bool Remove(v T) TryRemove(v T) bool }
func NewMutHashEqSet ¶
func NewMutMapSet ¶
type MutShapeMap ¶
type MutShapeMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMutShapeMap ¶
func NewMutShapeMap[K comparable, V any](shape MapShape[K], vs bt.Iterable[V]) MutShapeMap[K, V]
func (MutShapeMap[K, V]) Contains ¶
func (m MutShapeMap[K, V]) Contains(k K) bool
func (MutShapeMap[K, V]) Default ¶
func (m MutShapeMap[K, V]) Default(k K, v V) bool
func (MutShapeMap[K, V]) Delete ¶
func (m MutShapeMap[K, V]) Delete(k K)
func (MutShapeMap[K, V]) ForEach ¶
func (m MutShapeMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
func (MutShapeMap[K, V]) Get ¶
func (m MutShapeMap[K, V]) Get(k K) V
func (MutShapeMap[K, V]) Len ¶
func (m MutShapeMap[K, V]) Len() int
func (MutShapeMap[K, V]) MarshalJSON ¶
func (m MutShapeMap[K, V]) MarshalJSON() ([]byte, error)
func (MutShapeMap[K, V]) Put ¶
func (m MutShapeMap[K, V]) Put(k K, v V)
func (MutShapeMap[K, V]) Shape ¶
func (m MutShapeMap[K, V]) Shape() MapShape[K]
func (MutShapeMap[K, V]) String ¶
func (m MutShapeMap[K, V]) String() string
func (MutShapeMap[K, V]) TryGet ¶
func (m MutShapeMap[K, V]) TryGet(k K) (V, bool)
func (MutShapeMap[K, V]) Value ¶
func (m MutShapeMap[K, V]) Value(i int) *V
func (MutShapeMap[K, V]) Values ¶
func (m MutShapeMap[K, V]) Values() []V
type MutSimpleBiMap ¶
type MutSimpleBiMap[K, V comparable] struct { // contains filtered or unexported fields }
func NewMutSimpleBiMap ¶
func NewMutSimpleBiMap[K, V comparable](it bt.Iterable[bt.Kv[K, V]]) MutSimpleBiMap[K, V]
func (MutSimpleBiMap[K, V]) Contains ¶
func (m MutSimpleBiMap[K, V]) Contains(k K) bool
func (MutSimpleBiMap[K, V]) Default ¶
func (m MutSimpleBiMap[K, V]) Default(k K, v V) bool
func (MutSimpleBiMap[K, V]) Delete ¶
func (m MutSimpleBiMap[K, V]) Delete(k K)
func (MutSimpleBiMap[K, V]) ForEach ¶
func (m MutSimpleBiMap[K, V]) ForEach(fn func(kv bt.Kv[K, V]) bool) bool
func (MutSimpleBiMap[K, V]) Get ¶
func (m MutSimpleBiMap[K, V]) Get(k K) V
func (MutSimpleBiMap[K, V]) Invert ¶
func (m MutSimpleBiMap[K, V]) Invert() BiMap[V, K]
func (MutSimpleBiMap[K, V]) Iterate ¶
func (m MutSimpleBiMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (MutSimpleBiMap[K, V]) Len ¶
func (m MutSimpleBiMap[K, V]) Len() int
func (MutSimpleBiMap[K, V]) MarshalJSON ¶
func (m MutSimpleBiMap[K, V]) MarshalJSON() ([]byte, error)
func (MutSimpleBiMap[K, V]) MutInvert ¶
func (m MutSimpleBiMap[K, V]) MutInvert() MutBiMap[V, K]
func (MutSimpleBiMap[K, V]) Put ¶
func (m MutSimpleBiMap[K, V]) Put(k K, v V)
func (MutSimpleBiMap[K, V]) TryGet ¶
func (m MutSimpleBiMap[K, V]) TryGet(k K) (V, bool)
func (*MutSimpleBiMap[K, V]) UnmarshalJSON ¶
func (m *MutSimpleBiMap[K, V]) UnmarshalJSON(b []byte) error
type MutSliceList ¶
type MutSliceList[T any] struct { // contains filtered or unexported fields }
func NewMutSliceList ¶
func NewMutSliceList[T any](it bt.Iterable[T]) *MutSliceList[T]
func NewMutSliceListOf ¶
func NewMutSliceListOf[T any](vs ...T) *MutSliceList[T]
func (*MutSliceList[T]) Append ¶
func (l *MutSliceList[T]) Append(v T)
func (*MutSliceList[T]) Decay ¶
func (l *MutSliceList[T]) Decay() List[T]
func (*MutSliceList[T]) Delete ¶
func (l *MutSliceList[T]) Delete(i int)
func (*MutSliceList[T]) ForEach ¶
func (l *MutSliceList[T]) ForEach(fn func(v T) bool) bool
func (*MutSliceList[T]) Get ¶
func (l *MutSliceList[T]) Get(i int) T
func (*MutSliceList[T]) Iterate ¶
func (l *MutSliceList[T]) Iterate() bt.Iterator[T]
func (*MutSliceList[T]) Len ¶
func (l *MutSliceList[T]) Len() int
func (MutSliceList[T]) MarshalJSON ¶
func (l MutSliceList[T]) MarshalJSON() ([]byte, error)
func (*MutSliceList[T]) Put ¶
func (l *MutSliceList[T]) Put(i int, v T)
func (*MutSliceList[T]) UnmarshalJSON ¶
func (l *MutSliceList[T]) UnmarshalJSON(b []byte) error
type MutSliceMap ¶
type MutSliceMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMutSliceMap ¶
func NewMutSliceMap[K comparable, V any](it bt.Iterable[bt.Kv[K, V]]) *MutSliceMap[K, V]
func (*MutSliceMap[K, V]) All ¶
func (m *MutSliceMap[K, V]) All() []bt.Kv[K, V]
func (*MutSliceMap[K, V]) Contains ¶
func (m *MutSliceMap[K, V]) Contains(k K) bool
func (*MutSliceMap[K, V]) Decay ¶
func (m *MutSliceMap[K, V]) Decay() Map[K, V]
func (*MutSliceMap[K, V]) Default ¶
func (m *MutSliceMap[K, V]) Default(k K, v V) bool
func (*MutSliceMap[K, V]) Delete ¶
func (m *MutSliceMap[K, V]) Delete(k K)
func (*MutSliceMap[K, V]) ForEach ¶
func (m *MutSliceMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (*MutSliceMap[K, V]) Get ¶
func (m *MutSliceMap[K, V]) Get(k K) V
func (*MutSliceMap[K, V]) IterateFrom ¶
func (m *MutSliceMap[K, V]) IterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
func (*MutSliceMap[K, V]) Len ¶
func (m *MutSliceMap[K, V]) Len() int
func (MutSliceMap[K, V]) MarshalJSON ¶
func (m MutSliceMap[K, V]) MarshalJSON() ([]byte, error)
func (*MutSliceMap[K, V]) Put ¶
func (m *MutSliceMap[K, V]) Put(k K, v V)
func (*MutSliceMap[K, V]) ReverseIterate ¶
func (m *MutSliceMap[K, V]) ReverseIterate() bt.Iterator[bt.Kv[K, V]]
func (*MutSliceMap[K, V]) ReverseIterateFrom ¶
func (m *MutSliceMap[K, V]) ReverseIterateFrom(k K) bt.Iterator[bt.Kv[K, V]]
func (MutSliceMap[K, V]) String ¶
func (m MutSliceMap[K, V]) String() string
func (*MutSliceMap[K, V]) TryGet ¶
func (m *MutSliceMap[K, V]) TryGet(k K) (V, bool)
func (*MutSliceMap[K, V]) UnmarshalJSON ¶
func (m *MutSliceMap[K, V]) UnmarshalJSON(b []byte) error
type MutStdMap ¶
type MutStdMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMutStdMap ¶
func WrapMap ¶
func WrapMap[K comparable, V any](m map[K]V) *MutStdMap[K, V]
func (MutStdMap[K, V]) MarshalJSON ¶
func (*MutStdMap[K, V]) UnmarshalJSON ¶
type MutStdSet ¶
type MutStdSet[T comparable] struct { // contains filtered or unexported fields }
func NewMutStdSet ¶
func NewMutStdSet[T comparable](it bt.Iterable[T]) *MutStdSet[T]
func NewMutStdSetOf ¶
func NewMutStdSetOf[T comparable](vs ...T) *MutStdSet[T]
func WrapSet ¶
func WrapSet[T comparable](s map[T]struct{}) *MutStdSet[T]
func (MutStdSet[T]) MarshalJSON ¶
func (*MutStdSet[T]) UnmarshalJSON ¶
type Persistent ¶
type PersistentMap ¶
type PersistentMap[K, V any] interface { Map[K, V] Persistent[bt.Kv[K, V]] With(k K, v V) PersistentMap[K, V] Without(k K) PersistentMap[K, V] Default(k K, v V) PersistentMap[K, V] }
type PrimitiveMutRbTreeMap ¶
type PrimitiveMutRbTreeMap[K constraints.Ordered, V any] struct { // contains filtered or unexported fields }
func NewPrimitiveMutRbTreeMap ¶
func NewPrimitiveMutRbTreeMap[K constraints.Ordered, V any](it bt.Iterable[bt.Kv[K, V]]) *PrimitiveMutRbTreeMap[K, V]
func (*PrimitiveMutRbTreeMap[K, V]) Contains ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Contains(k K) bool
func (*PrimitiveMutRbTreeMap[K, V]) Decay ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Decay() Map[K, V]
func (*PrimitiveMutRbTreeMap[K, V]) Default ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Default(k K, v V) bool
func (*PrimitiveMutRbTreeMap[K, V]) Delete ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Delete(k K)
func (*PrimitiveMutRbTreeMap[K, V]) ForEach ¶
func (m *PrimitiveMutRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (*PrimitiveMutRbTreeMap[K, V]) Get ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Get(k K) V
func (*PrimitiveMutRbTreeMap[K, V]) Iterate ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (*PrimitiveMutRbTreeMap[K, V]) Len ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Len() int
func (*PrimitiveMutRbTreeMap[K, V]) Put ¶
func (m *PrimitiveMutRbTreeMap[K, V]) Put(k K, v V)
func (*PrimitiveMutRbTreeMap[K, V]) TryGet ¶
func (m *PrimitiveMutRbTreeMap[K, V]) TryGet(k K) (V, bool)
type PrimitiveRbTreeMap ¶
type PrimitiveRbTreeMap[K constraints.Ordered, V any] struct { // contains filtered or unexported fields }
func NewPrimitiveRbTreeMap ¶
func NewPrimitiveRbTreeMap[K constraints.Ordered, V any](it bt.Iterable[bt.Kv[K, V]]) PrimitiveRbTreeMap[K, V]
func (PrimitiveRbTreeMap[K, V]) Contains ¶
func (m PrimitiveRbTreeMap[K, V]) Contains(k K) bool
func (PrimitiveRbTreeMap[K, V]) ForEach ¶
func (m PrimitiveRbTreeMap[K, V]) ForEach(fn func(v bt.Kv[K, V]) bool) bool
func (PrimitiveRbTreeMap[K, V]) Get ¶
func (m PrimitiveRbTreeMap[K, V]) Get(k K) V
func (PrimitiveRbTreeMap[K, V]) Iterate ¶
func (m PrimitiveRbTreeMap[K, V]) Iterate() bt.Iterator[bt.Kv[K, V]]
func (PrimitiveRbTreeMap[K, V]) Len ¶
func (m PrimitiveRbTreeMap[K, V]) Len() int
func (PrimitiveRbTreeMap[K, V]) TryGet ¶
func (m PrimitiveRbTreeMap[K, V]) TryGet(k K) (V, bool)
type RbTreeMap ¶
type RbTreeMap[K, V any] struct { // contains filtered or unexported fields }
func NewRbTreeMap ¶
func (RbTreeMap[K, V]) MarshalJSON ¶
func (*RbTreeMap[K, V]) UnmarshalJSON ¶
type Set ¶
func DecaySet ¶
func DecaySet[T comparable](l MutSet[T]) Set[T]
func Difference ¶
func Difference[T comparable](ss ...Set[T]) Set[T]
func Intersection ¶
func Intersection[T comparable](ss ...Set[T]) Set[T]
func NewHashEqSet ¶
func Union ¶
func Union[T comparable](ss ...Set[T]) Set[T]
type ShapeMap ¶
type ShapeMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewShapeMap ¶
func NewShapeMapFromSlice ¶
func NewShapeMapFromSlice[K comparable, V any](shape MapShape[K], s []V) ShapeMap[K, V]
func (ShapeMap[K, V]) MarshalJSON ¶
type SimpleBiMap ¶
type SimpleBiMap[K, V comparable] struct { Map[K, V] // contains filtered or unexported fields }
func NewSimpleBiMap ¶
func NewSimpleBiMap[K, V comparable](it bt.Iterable[bt.Kv[K, V]]) SimpleBiMap[K, V]
func (SimpleBiMap[K, V]) Invert ¶
func (m SimpleBiMap[K, V]) Invert() BiMap[V, K]
func (SimpleBiMap[K, V]) MarshalJSON ¶
func (m SimpleBiMap[K, V]) MarshalJSON() ([]byte, error)
func (*SimpleBiMap[K, V]) UnmarshalJSON ¶
func (m *SimpleBiMap[K, V]) UnmarshalJSON(b []byte) error
type SliceList ¶
type SliceList[T any] struct { // contains filtered or unexported fields }
func NewSliceListOf ¶
func (SliceList[T]) MarshalJSON ¶
func (*SliceList[T]) UnmarshalJSON ¶
type SliceMap ¶
type SliceMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSliceMap ¶
func (SliceMap[K, V]) IterateFrom ¶
func (SliceMap[K, V]) MarshalJSON ¶
func (SliceMap[K, V]) ReverseIterate ¶
func (SliceMap[K, V]) ReverseIterateFrom ¶
func (*SliceMap[K, V]) UnmarshalJSON ¶
type StdMap ¶
type StdMap[K comparable, V any] struct { // contains filtered or unexported fields }
func (StdMap[K, V]) MarshalJSON ¶
func (*StdMap[K, V]) UnmarshalJSON ¶
type StdSet ¶
type StdSet[T comparable] struct { // contains filtered or unexported fields }
func NewStdSetOf ¶
func NewStdSetOf[T comparable](vs ...T) StdSet[T]
func (StdSet[T]) MarshalJSON ¶
func (*StdSet[T]) UnmarshalJSON ¶
type SyncMutList ¶
type SyncMutMap ¶
type TreapMap ¶
type TreapMap[K, V any] struct { // contains filtered or unexported fields }
func (TreapMap[K, V]) Default ¶
func (m TreapMap[K, V]) Default(k K, v V) PersistentMap[K, V]
func (TreapMap[K, V]) With ¶
func (m TreapMap[K, V]) With(k K, v V) PersistentMap[K, V]
func (TreapMap[K, V]) Without ¶
func (m TreapMap[K, V]) Without(k K) PersistentMap[K, V]
Source Files ¶
- convert.go
- cowlist.go
- cowmap.go
- decay.go
- denselist.go
- errors.go
- hasheqmap.go
- index.go
- interfaces.go
- intrusivelist.go
- linkedlist.go
- linkedmap.go
- locked.go
- locked_json.go
- mapbuilder.go
- maps.go
- maps_fmt.go
- maps_json.go
- rbtreemap.go
- rbtreemap_json.go
- sets.go
- shapemap.go
- shapemap_fmt.go
- shapemap_json.go
- simplebimap.go
- simplebimap_json.go
- slicelist.go
- slicelist_json.go
- slicemap.go
- slicemap_fmt.go
- slicemap_json.go
- stdmap.go
- stdmap_json.go
- stdset.go
- stdset_json.go
- treapmap.go
- views.go
Click to show internal directories.
Click to hide internal directories.