Documentation ¶
Overview ¶
Package genmap provides specialized hashmaps for integer types.
Installation
go get github.com/s-l-teichmann/genmap
Example program using a uint64 to int map:
package main import ( "fmt" "github.com/s-l-teichmann/genmap" ) func main() { // Create a new hash map. h := genmap.NewHashUint64ToInt(16) // Creates new key/value pairs 42 -> 10 and 47 -> 11. h.Add(42, 10) h.Add(47, 11) // Increases the value of key 47 to 111. h.Add(47, 100) // Increments value 42 to 43 of key 42. h.Inc(42) // Fetch value of key 42 from map. fmt.Printf("value: %d\n", h.Get(42)) // Prints the number of key/value pairs in the map. fmt.Printf("size: %d\n", h.Size()) // Prints all key/value pairs in map in undefined order. h.Visit(func(k uint64, v int) { fmt.Printf("key: %d value: %d\n", k, v) }) }
For a more complete set of methods see the index.
Index ¶
- type MapInt16ToInt
- func (h *MapInt16ToInt) Add(k int16, v int)
- func (h *MapInt16ToInt) Clear()
- func (h *MapInt16ToInt) Contains(k int16) bool
- func (h *MapInt16ToInt) Find(k int16) (int, bool)
- func (h *MapInt16ToInt) Get(k int16) int
- func (h *MapInt16ToInt) Inc(k int16)
- func (h *MapInt16ToInt) Modify(k int16, fn func(v *int))
- func (h *MapInt16ToInt) Put(k int16, v int)
- func (h *MapInt16ToInt) Remove(k int16)
- func (h *MapInt16ToInt) Size() int
- func (h *MapInt16ToInt) Visit(fn func(int16, int))
- type MapInt16ToInt16
- func (h *MapInt16ToInt16) Add(k int16, v int16)
- func (h *MapInt16ToInt16) Clear()
- func (h *MapInt16ToInt16) Contains(k int16) bool
- func (h *MapInt16ToInt16) Find(k int16) (int16, bool)
- func (h *MapInt16ToInt16) Get(k int16) int16
- func (h *MapInt16ToInt16) Inc(k int16)
- func (h *MapInt16ToInt16) Modify(k int16, fn func(v *int16))
- func (h *MapInt16ToInt16) Put(k int16, v int16)
- func (h *MapInt16ToInt16) Remove(k int16)
- func (h *MapInt16ToInt16) Size() int
- func (h *MapInt16ToInt16) Visit(fn func(int16, int16))
- type MapInt16ToInt32
- func (h *MapInt16ToInt32) Add(k int16, v int32)
- func (h *MapInt16ToInt32) Clear()
- func (h *MapInt16ToInt32) Contains(k int16) bool
- func (h *MapInt16ToInt32) Find(k int16) (int32, bool)
- func (h *MapInt16ToInt32) Get(k int16) int32
- func (h *MapInt16ToInt32) Inc(k int16)
- func (h *MapInt16ToInt32) Modify(k int16, fn func(v *int32))
- func (h *MapInt16ToInt32) Put(k int16, v int32)
- func (h *MapInt16ToInt32) Remove(k int16)
- func (h *MapInt16ToInt32) Size() int
- func (h *MapInt16ToInt32) Visit(fn func(int16, int32))
- type MapInt16ToInt64
- func (h *MapInt16ToInt64) Add(k int16, v int64)
- func (h *MapInt16ToInt64) Clear()
- func (h *MapInt16ToInt64) Contains(k int16) bool
- func (h *MapInt16ToInt64) Find(k int16) (int64, bool)
- func (h *MapInt16ToInt64) Get(k int16) int64
- func (h *MapInt16ToInt64) Inc(k int16)
- func (h *MapInt16ToInt64) Modify(k int16, fn func(v *int64))
- func (h *MapInt16ToInt64) Put(k int16, v int64)
- func (h *MapInt16ToInt64) Remove(k int16)
- func (h *MapInt16ToInt64) Size() int
- func (h *MapInt16ToInt64) Visit(fn func(int16, int64))
- type MapInt16ToInt8
- func (h *MapInt16ToInt8) Add(k int16, v int8)
- func (h *MapInt16ToInt8) Clear()
- func (h *MapInt16ToInt8) Contains(k int16) bool
- func (h *MapInt16ToInt8) Find(k int16) (int8, bool)
- func (h *MapInt16ToInt8) Get(k int16) int8
- func (h *MapInt16ToInt8) Inc(k int16)
- func (h *MapInt16ToInt8) Modify(k int16, fn func(v *int8))
- func (h *MapInt16ToInt8) Put(k int16, v int8)
- func (h *MapInt16ToInt8) Remove(k int16)
- func (h *MapInt16ToInt8) Size() int
- func (h *MapInt16ToInt8) Visit(fn func(int16, int8))
- type MapInt16ToUint
- func (h *MapInt16ToUint) Add(k int16, v uint)
- func (h *MapInt16ToUint) Clear()
- func (h *MapInt16ToUint) Contains(k int16) bool
- func (h *MapInt16ToUint) Find(k int16) (uint, bool)
- func (h *MapInt16ToUint) Get(k int16) uint
- func (h *MapInt16ToUint) Inc(k int16)
- func (h *MapInt16ToUint) Modify(k int16, fn func(v *uint))
- func (h *MapInt16ToUint) Put(k int16, v uint)
- func (h *MapInt16ToUint) Remove(k int16)
- func (h *MapInt16ToUint) Size() int
- func (h *MapInt16ToUint) Visit(fn func(int16, uint))
- type MapInt16ToUint16
- func (h *MapInt16ToUint16) Add(k int16, v uint16)
- func (h *MapInt16ToUint16) Clear()
- func (h *MapInt16ToUint16) Contains(k int16) bool
- func (h *MapInt16ToUint16) Find(k int16) (uint16, bool)
- func (h *MapInt16ToUint16) Get(k int16) uint16
- func (h *MapInt16ToUint16) Inc(k int16)
- func (h *MapInt16ToUint16) Modify(k int16, fn func(v *uint16))
- func (h *MapInt16ToUint16) Put(k int16, v uint16)
- func (h *MapInt16ToUint16) Remove(k int16)
- func (h *MapInt16ToUint16) Size() int
- func (h *MapInt16ToUint16) Visit(fn func(int16, uint16))
- type MapInt16ToUint32
- func (h *MapInt16ToUint32) Add(k int16, v uint32)
- func (h *MapInt16ToUint32) Clear()
- func (h *MapInt16ToUint32) Contains(k int16) bool
- func (h *MapInt16ToUint32) Find(k int16) (uint32, bool)
- func (h *MapInt16ToUint32) Get(k int16) uint32
- func (h *MapInt16ToUint32) Inc(k int16)
- func (h *MapInt16ToUint32) Modify(k int16, fn func(v *uint32))
- func (h *MapInt16ToUint32) Put(k int16, v uint32)
- func (h *MapInt16ToUint32) Remove(k int16)
- func (h *MapInt16ToUint32) Size() int
- func (h *MapInt16ToUint32) Visit(fn func(int16, uint32))
- type MapInt16ToUint64
- func (h *MapInt16ToUint64) Add(k int16, v uint64)
- func (h *MapInt16ToUint64) Clear()
- func (h *MapInt16ToUint64) Contains(k int16) bool
- func (h *MapInt16ToUint64) Find(k int16) (uint64, bool)
- func (h *MapInt16ToUint64) Get(k int16) uint64
- func (h *MapInt16ToUint64) Inc(k int16)
- func (h *MapInt16ToUint64) Modify(k int16, fn func(v *uint64))
- func (h *MapInt16ToUint64) Put(k int16, v uint64)
- func (h *MapInt16ToUint64) Remove(k int16)
- func (h *MapInt16ToUint64) Size() int
- func (h *MapInt16ToUint64) Visit(fn func(int16, uint64))
- type MapInt16ToUint8
- func (h *MapInt16ToUint8) Add(k int16, v uint8)
- func (h *MapInt16ToUint8) Clear()
- func (h *MapInt16ToUint8) Contains(k int16) bool
- func (h *MapInt16ToUint8) Find(k int16) (uint8, bool)
- func (h *MapInt16ToUint8) Get(k int16) uint8
- func (h *MapInt16ToUint8) Inc(k int16)
- func (h *MapInt16ToUint8) Modify(k int16, fn func(v *uint8))
- func (h *MapInt16ToUint8) Put(k int16, v uint8)
- func (h *MapInt16ToUint8) Remove(k int16)
- func (h *MapInt16ToUint8) Size() int
- func (h *MapInt16ToUint8) Visit(fn func(int16, uint8))
- type MapInt32ToInt
- func (h *MapInt32ToInt) Add(k int32, v int)
- func (h *MapInt32ToInt) Clear()
- func (h *MapInt32ToInt) Contains(k int32) bool
- func (h *MapInt32ToInt) Find(k int32) (int, bool)
- func (h *MapInt32ToInt) Get(k int32) int
- func (h *MapInt32ToInt) Inc(k int32)
- func (h *MapInt32ToInt) Modify(k int32, fn func(v *int))
- func (h *MapInt32ToInt) Put(k int32, v int)
- func (h *MapInt32ToInt) Remove(k int32)
- func (h *MapInt32ToInt) Size() int
- func (h *MapInt32ToInt) Visit(fn func(int32, int))
- type MapInt32ToInt16
- func (h *MapInt32ToInt16) Add(k int32, v int16)
- func (h *MapInt32ToInt16) Clear()
- func (h *MapInt32ToInt16) Contains(k int32) bool
- func (h *MapInt32ToInt16) Find(k int32) (int16, bool)
- func (h *MapInt32ToInt16) Get(k int32) int16
- func (h *MapInt32ToInt16) Inc(k int32)
- func (h *MapInt32ToInt16) Modify(k int32, fn func(v *int16))
- func (h *MapInt32ToInt16) Put(k int32, v int16)
- func (h *MapInt32ToInt16) Remove(k int32)
- func (h *MapInt32ToInt16) Size() int
- func (h *MapInt32ToInt16) Visit(fn func(int32, int16))
- type MapInt32ToInt32
- func (h *MapInt32ToInt32) Add(k int32, v int32)
- func (h *MapInt32ToInt32) Clear()
- func (h *MapInt32ToInt32) Contains(k int32) bool
- func (h *MapInt32ToInt32) Find(k int32) (int32, bool)
- func (h *MapInt32ToInt32) Get(k int32) int32
- func (h *MapInt32ToInt32) Inc(k int32)
- func (h *MapInt32ToInt32) Modify(k int32, fn func(v *int32))
- func (h *MapInt32ToInt32) Put(k int32, v int32)
- func (h *MapInt32ToInt32) Remove(k int32)
- func (h *MapInt32ToInt32) Size() int
- func (h *MapInt32ToInt32) Visit(fn func(int32, int32))
- type MapInt32ToInt64
- func (h *MapInt32ToInt64) Add(k int32, v int64)
- func (h *MapInt32ToInt64) Clear()
- func (h *MapInt32ToInt64) Contains(k int32) bool
- func (h *MapInt32ToInt64) Find(k int32) (int64, bool)
- func (h *MapInt32ToInt64) Get(k int32) int64
- func (h *MapInt32ToInt64) Inc(k int32)
- func (h *MapInt32ToInt64) Modify(k int32, fn func(v *int64))
- func (h *MapInt32ToInt64) Put(k int32, v int64)
- func (h *MapInt32ToInt64) Remove(k int32)
- func (h *MapInt32ToInt64) Size() int
- func (h *MapInt32ToInt64) Visit(fn func(int32, int64))
- type MapInt32ToInt8
- func (h *MapInt32ToInt8) Add(k int32, v int8)
- func (h *MapInt32ToInt8) Clear()
- func (h *MapInt32ToInt8) Contains(k int32) bool
- func (h *MapInt32ToInt8) Find(k int32) (int8, bool)
- func (h *MapInt32ToInt8) Get(k int32) int8
- func (h *MapInt32ToInt8) Inc(k int32)
- func (h *MapInt32ToInt8) Modify(k int32, fn func(v *int8))
- func (h *MapInt32ToInt8) Put(k int32, v int8)
- func (h *MapInt32ToInt8) Remove(k int32)
- func (h *MapInt32ToInt8) Size() int
- func (h *MapInt32ToInt8) Visit(fn func(int32, int8))
- type MapInt32ToUint
- func (h *MapInt32ToUint) Add(k int32, v uint)
- func (h *MapInt32ToUint) Clear()
- func (h *MapInt32ToUint) Contains(k int32) bool
- func (h *MapInt32ToUint) Find(k int32) (uint, bool)
- func (h *MapInt32ToUint) Get(k int32) uint
- func (h *MapInt32ToUint) Inc(k int32)
- func (h *MapInt32ToUint) Modify(k int32, fn func(v *uint))
- func (h *MapInt32ToUint) Put(k int32, v uint)
- func (h *MapInt32ToUint) Remove(k int32)
- func (h *MapInt32ToUint) Size() int
- func (h *MapInt32ToUint) Visit(fn func(int32, uint))
- type MapInt32ToUint16
- func (h *MapInt32ToUint16) Add(k int32, v uint16)
- func (h *MapInt32ToUint16) Clear()
- func (h *MapInt32ToUint16) Contains(k int32) bool
- func (h *MapInt32ToUint16) Find(k int32) (uint16, bool)
- func (h *MapInt32ToUint16) Get(k int32) uint16
- func (h *MapInt32ToUint16) Inc(k int32)
- func (h *MapInt32ToUint16) Modify(k int32, fn func(v *uint16))
- func (h *MapInt32ToUint16) Put(k int32, v uint16)
- func (h *MapInt32ToUint16) Remove(k int32)
- func (h *MapInt32ToUint16) Size() int
- func (h *MapInt32ToUint16) Visit(fn func(int32, uint16))
- type MapInt32ToUint32
- func (h *MapInt32ToUint32) Add(k int32, v uint32)
- func (h *MapInt32ToUint32) Clear()
- func (h *MapInt32ToUint32) Contains(k int32) bool
- func (h *MapInt32ToUint32) Find(k int32) (uint32, bool)
- func (h *MapInt32ToUint32) Get(k int32) uint32
- func (h *MapInt32ToUint32) Inc(k int32)
- func (h *MapInt32ToUint32) Modify(k int32, fn func(v *uint32))
- func (h *MapInt32ToUint32) Put(k int32, v uint32)
- func (h *MapInt32ToUint32) Remove(k int32)
- func (h *MapInt32ToUint32) Size() int
- func (h *MapInt32ToUint32) Visit(fn func(int32, uint32))
- type MapInt32ToUint64
- func (h *MapInt32ToUint64) Add(k int32, v uint64)
- func (h *MapInt32ToUint64) Clear()
- func (h *MapInt32ToUint64) Contains(k int32) bool
- func (h *MapInt32ToUint64) Find(k int32) (uint64, bool)
- func (h *MapInt32ToUint64) Get(k int32) uint64
- func (h *MapInt32ToUint64) Inc(k int32)
- func (h *MapInt32ToUint64) Modify(k int32, fn func(v *uint64))
- func (h *MapInt32ToUint64) Put(k int32, v uint64)
- func (h *MapInt32ToUint64) Remove(k int32)
- func (h *MapInt32ToUint64) Size() int
- func (h *MapInt32ToUint64) Visit(fn func(int32, uint64))
- type MapInt32ToUint8
- func (h *MapInt32ToUint8) Add(k int32, v uint8)
- func (h *MapInt32ToUint8) Clear()
- func (h *MapInt32ToUint8) Contains(k int32) bool
- func (h *MapInt32ToUint8) Find(k int32) (uint8, bool)
- func (h *MapInt32ToUint8) Get(k int32) uint8
- func (h *MapInt32ToUint8) Inc(k int32)
- func (h *MapInt32ToUint8) Modify(k int32, fn func(v *uint8))
- func (h *MapInt32ToUint8) Put(k int32, v uint8)
- func (h *MapInt32ToUint8) Remove(k int32)
- func (h *MapInt32ToUint8) Size() int
- func (h *MapInt32ToUint8) Visit(fn func(int32, uint8))
- type MapInt64ToInt
- func (h *MapInt64ToInt) Add(k int64, v int)
- func (h *MapInt64ToInt) Clear()
- func (h *MapInt64ToInt) Contains(k int64) bool
- func (h *MapInt64ToInt) Find(k int64) (int, bool)
- func (h *MapInt64ToInt) Get(k int64) int
- func (h *MapInt64ToInt) Inc(k int64)
- func (h *MapInt64ToInt) Modify(k int64, fn func(v *int))
- func (h *MapInt64ToInt) Put(k int64, v int)
- func (h *MapInt64ToInt) Remove(k int64)
- func (h *MapInt64ToInt) Size() int
- func (h *MapInt64ToInt) Visit(fn func(int64, int))
- type MapInt64ToInt16
- func (h *MapInt64ToInt16) Add(k int64, v int16)
- func (h *MapInt64ToInt16) Clear()
- func (h *MapInt64ToInt16) Contains(k int64) bool
- func (h *MapInt64ToInt16) Find(k int64) (int16, bool)
- func (h *MapInt64ToInt16) Get(k int64) int16
- func (h *MapInt64ToInt16) Inc(k int64)
- func (h *MapInt64ToInt16) Modify(k int64, fn func(v *int16))
- func (h *MapInt64ToInt16) Put(k int64, v int16)
- func (h *MapInt64ToInt16) Remove(k int64)
- func (h *MapInt64ToInt16) Size() int
- func (h *MapInt64ToInt16) Visit(fn func(int64, int16))
- type MapInt64ToInt32
- func (h *MapInt64ToInt32) Add(k int64, v int32)
- func (h *MapInt64ToInt32) Clear()
- func (h *MapInt64ToInt32) Contains(k int64) bool
- func (h *MapInt64ToInt32) Find(k int64) (int32, bool)
- func (h *MapInt64ToInt32) Get(k int64) int32
- func (h *MapInt64ToInt32) Inc(k int64)
- func (h *MapInt64ToInt32) Modify(k int64, fn func(v *int32))
- func (h *MapInt64ToInt32) Put(k int64, v int32)
- func (h *MapInt64ToInt32) Remove(k int64)
- func (h *MapInt64ToInt32) Size() int
- func (h *MapInt64ToInt32) Visit(fn func(int64, int32))
- type MapInt64ToInt64
- func (h *MapInt64ToInt64) Add(k int64, v int64)
- func (h *MapInt64ToInt64) Clear()
- func (h *MapInt64ToInt64) Contains(k int64) bool
- func (h *MapInt64ToInt64) Find(k int64) (int64, bool)
- func (h *MapInt64ToInt64) Get(k int64) int64
- func (h *MapInt64ToInt64) Inc(k int64)
- func (h *MapInt64ToInt64) Modify(k int64, fn func(v *int64))
- func (h *MapInt64ToInt64) Put(k int64, v int64)
- func (h *MapInt64ToInt64) Remove(k int64)
- func (h *MapInt64ToInt64) Size() int
- func (h *MapInt64ToInt64) Visit(fn func(int64, int64))
- type MapInt64ToInt8
- func (h *MapInt64ToInt8) Add(k int64, v int8)
- func (h *MapInt64ToInt8) Clear()
- func (h *MapInt64ToInt8) Contains(k int64) bool
- func (h *MapInt64ToInt8) Find(k int64) (int8, bool)
- func (h *MapInt64ToInt8) Get(k int64) int8
- func (h *MapInt64ToInt8) Inc(k int64)
- func (h *MapInt64ToInt8) Modify(k int64, fn func(v *int8))
- func (h *MapInt64ToInt8) Put(k int64, v int8)
- func (h *MapInt64ToInt8) Remove(k int64)
- func (h *MapInt64ToInt8) Size() int
- func (h *MapInt64ToInt8) Visit(fn func(int64, int8))
- type MapInt64ToUint
- func (h *MapInt64ToUint) Add(k int64, v uint)
- func (h *MapInt64ToUint) Clear()
- func (h *MapInt64ToUint) Contains(k int64) bool
- func (h *MapInt64ToUint) Find(k int64) (uint, bool)
- func (h *MapInt64ToUint) Get(k int64) uint
- func (h *MapInt64ToUint) Inc(k int64)
- func (h *MapInt64ToUint) Modify(k int64, fn func(v *uint))
- func (h *MapInt64ToUint) Put(k int64, v uint)
- func (h *MapInt64ToUint) Remove(k int64)
- func (h *MapInt64ToUint) Size() int
- func (h *MapInt64ToUint) Visit(fn func(int64, uint))
- type MapInt64ToUint16
- func (h *MapInt64ToUint16) Add(k int64, v uint16)
- func (h *MapInt64ToUint16) Clear()
- func (h *MapInt64ToUint16) Contains(k int64) bool
- func (h *MapInt64ToUint16) Find(k int64) (uint16, bool)
- func (h *MapInt64ToUint16) Get(k int64) uint16
- func (h *MapInt64ToUint16) Inc(k int64)
- func (h *MapInt64ToUint16) Modify(k int64, fn func(v *uint16))
- func (h *MapInt64ToUint16) Put(k int64, v uint16)
- func (h *MapInt64ToUint16) Remove(k int64)
- func (h *MapInt64ToUint16) Size() int
- func (h *MapInt64ToUint16) Visit(fn func(int64, uint16))
- type MapInt64ToUint32
- func (h *MapInt64ToUint32) Add(k int64, v uint32)
- func (h *MapInt64ToUint32) Clear()
- func (h *MapInt64ToUint32) Contains(k int64) bool
- func (h *MapInt64ToUint32) Find(k int64) (uint32, bool)
- func (h *MapInt64ToUint32) Get(k int64) uint32
- func (h *MapInt64ToUint32) Inc(k int64)
- func (h *MapInt64ToUint32) Modify(k int64, fn func(v *uint32))
- func (h *MapInt64ToUint32) Put(k int64, v uint32)
- func (h *MapInt64ToUint32) Remove(k int64)
- func (h *MapInt64ToUint32) Size() int
- func (h *MapInt64ToUint32) Visit(fn func(int64, uint32))
- type MapInt64ToUint64
- func (h *MapInt64ToUint64) Add(k int64, v uint64)
- func (h *MapInt64ToUint64) Clear()
- func (h *MapInt64ToUint64) Contains(k int64) bool
- func (h *MapInt64ToUint64) Find(k int64) (uint64, bool)
- func (h *MapInt64ToUint64) Get(k int64) uint64
- func (h *MapInt64ToUint64) Inc(k int64)
- func (h *MapInt64ToUint64) Modify(k int64, fn func(v *uint64))
- func (h *MapInt64ToUint64) Put(k int64, v uint64)
- func (h *MapInt64ToUint64) Remove(k int64)
- func (h *MapInt64ToUint64) Size() int
- func (h *MapInt64ToUint64) Visit(fn func(int64, uint64))
- type MapInt64ToUint8
- func (h *MapInt64ToUint8) Add(k int64, v uint8)
- func (h *MapInt64ToUint8) Clear()
- func (h *MapInt64ToUint8) Contains(k int64) bool
- func (h *MapInt64ToUint8) Find(k int64) (uint8, bool)
- func (h *MapInt64ToUint8) Get(k int64) uint8
- func (h *MapInt64ToUint8) Inc(k int64)
- func (h *MapInt64ToUint8) Modify(k int64, fn func(v *uint8))
- func (h *MapInt64ToUint8) Put(k int64, v uint8)
- func (h *MapInt64ToUint8) Remove(k int64)
- func (h *MapInt64ToUint8) Size() int
- func (h *MapInt64ToUint8) Visit(fn func(int64, uint8))
- type MapInt8ToInt
- func (h *MapInt8ToInt) Add(k int8, v int)
- func (h *MapInt8ToInt) Clear()
- func (h *MapInt8ToInt) Contains(k int8) bool
- func (h *MapInt8ToInt) Find(k int8) (int, bool)
- func (h *MapInt8ToInt) Get(k int8) int
- func (h *MapInt8ToInt) Inc(k int8)
- func (h *MapInt8ToInt) Modify(k int8, fn func(v *int))
- func (h *MapInt8ToInt) Put(k int8, v int)
- func (h *MapInt8ToInt) Remove(k int8)
- func (h *MapInt8ToInt) Size() int
- func (h *MapInt8ToInt) Visit(fn func(int8, int))
- type MapInt8ToInt16
- func (h *MapInt8ToInt16) Add(k int8, v int16)
- func (h *MapInt8ToInt16) Clear()
- func (h *MapInt8ToInt16) Contains(k int8) bool
- func (h *MapInt8ToInt16) Find(k int8) (int16, bool)
- func (h *MapInt8ToInt16) Get(k int8) int16
- func (h *MapInt8ToInt16) Inc(k int8)
- func (h *MapInt8ToInt16) Modify(k int8, fn func(v *int16))
- func (h *MapInt8ToInt16) Put(k int8, v int16)
- func (h *MapInt8ToInt16) Remove(k int8)
- func (h *MapInt8ToInt16) Size() int
- func (h *MapInt8ToInt16) Visit(fn func(int8, int16))
- type MapInt8ToInt32
- func (h *MapInt8ToInt32) Add(k int8, v int32)
- func (h *MapInt8ToInt32) Clear()
- func (h *MapInt8ToInt32) Contains(k int8) bool
- func (h *MapInt8ToInt32) Find(k int8) (int32, bool)
- func (h *MapInt8ToInt32) Get(k int8) int32
- func (h *MapInt8ToInt32) Inc(k int8)
- func (h *MapInt8ToInt32) Modify(k int8, fn func(v *int32))
- func (h *MapInt8ToInt32) Put(k int8, v int32)
- func (h *MapInt8ToInt32) Remove(k int8)
- func (h *MapInt8ToInt32) Size() int
- func (h *MapInt8ToInt32) Visit(fn func(int8, int32))
- type MapInt8ToInt64
- func (h *MapInt8ToInt64) Add(k int8, v int64)
- func (h *MapInt8ToInt64) Clear()
- func (h *MapInt8ToInt64) Contains(k int8) bool
- func (h *MapInt8ToInt64) Find(k int8) (int64, bool)
- func (h *MapInt8ToInt64) Get(k int8) int64
- func (h *MapInt8ToInt64) Inc(k int8)
- func (h *MapInt8ToInt64) Modify(k int8, fn func(v *int64))
- func (h *MapInt8ToInt64) Put(k int8, v int64)
- func (h *MapInt8ToInt64) Remove(k int8)
- func (h *MapInt8ToInt64) Size() int
- func (h *MapInt8ToInt64) Visit(fn func(int8, int64))
- type MapInt8ToInt8
- func (h *MapInt8ToInt8) Add(k int8, v int8)
- func (h *MapInt8ToInt8) Clear()
- func (h *MapInt8ToInt8) Contains(k int8) bool
- func (h *MapInt8ToInt8) Find(k int8) (int8, bool)
- func (h *MapInt8ToInt8) Get(k int8) int8
- func (h *MapInt8ToInt8) Inc(k int8)
- func (h *MapInt8ToInt8) Modify(k int8, fn func(v *int8))
- func (h *MapInt8ToInt8) Put(k int8, v int8)
- func (h *MapInt8ToInt8) Remove(k int8)
- func (h *MapInt8ToInt8) Size() int
- func (h *MapInt8ToInt8) Visit(fn func(int8, int8))
- type MapInt8ToUint
- func (h *MapInt8ToUint) Add(k int8, v uint)
- func (h *MapInt8ToUint) Clear()
- func (h *MapInt8ToUint) Contains(k int8) bool
- func (h *MapInt8ToUint) Find(k int8) (uint, bool)
- func (h *MapInt8ToUint) Get(k int8) uint
- func (h *MapInt8ToUint) Inc(k int8)
- func (h *MapInt8ToUint) Modify(k int8, fn func(v *uint))
- func (h *MapInt8ToUint) Put(k int8, v uint)
- func (h *MapInt8ToUint) Remove(k int8)
- func (h *MapInt8ToUint) Size() int
- func (h *MapInt8ToUint) Visit(fn func(int8, uint))
- type MapInt8ToUint16
- func (h *MapInt8ToUint16) Add(k int8, v uint16)
- func (h *MapInt8ToUint16) Clear()
- func (h *MapInt8ToUint16) Contains(k int8) bool
- func (h *MapInt8ToUint16) Find(k int8) (uint16, bool)
- func (h *MapInt8ToUint16) Get(k int8) uint16
- func (h *MapInt8ToUint16) Inc(k int8)
- func (h *MapInt8ToUint16) Modify(k int8, fn func(v *uint16))
- func (h *MapInt8ToUint16) Put(k int8, v uint16)
- func (h *MapInt8ToUint16) Remove(k int8)
- func (h *MapInt8ToUint16) Size() int
- func (h *MapInt8ToUint16) Visit(fn func(int8, uint16))
- type MapInt8ToUint32
- func (h *MapInt8ToUint32) Add(k int8, v uint32)
- func (h *MapInt8ToUint32) Clear()
- func (h *MapInt8ToUint32) Contains(k int8) bool
- func (h *MapInt8ToUint32) Find(k int8) (uint32, bool)
- func (h *MapInt8ToUint32) Get(k int8) uint32
- func (h *MapInt8ToUint32) Inc(k int8)
- func (h *MapInt8ToUint32) Modify(k int8, fn func(v *uint32))
- func (h *MapInt8ToUint32) Put(k int8, v uint32)
- func (h *MapInt8ToUint32) Remove(k int8)
- func (h *MapInt8ToUint32) Size() int
- func (h *MapInt8ToUint32) Visit(fn func(int8, uint32))
- type MapInt8ToUint64
- func (h *MapInt8ToUint64) Add(k int8, v uint64)
- func (h *MapInt8ToUint64) Clear()
- func (h *MapInt8ToUint64) Contains(k int8) bool
- func (h *MapInt8ToUint64) Find(k int8) (uint64, bool)
- func (h *MapInt8ToUint64) Get(k int8) uint64
- func (h *MapInt8ToUint64) Inc(k int8)
- func (h *MapInt8ToUint64) Modify(k int8, fn func(v *uint64))
- func (h *MapInt8ToUint64) Put(k int8, v uint64)
- func (h *MapInt8ToUint64) Remove(k int8)
- func (h *MapInt8ToUint64) Size() int
- func (h *MapInt8ToUint64) Visit(fn func(int8, uint64))
- type MapInt8ToUint8
- func (h *MapInt8ToUint8) Add(k int8, v uint8)
- func (h *MapInt8ToUint8) Clear()
- func (h *MapInt8ToUint8) Contains(k int8) bool
- func (h *MapInt8ToUint8) Find(k int8) (uint8, bool)
- func (h *MapInt8ToUint8) Get(k int8) uint8
- func (h *MapInt8ToUint8) Inc(k int8)
- func (h *MapInt8ToUint8) Modify(k int8, fn func(v *uint8))
- func (h *MapInt8ToUint8) Put(k int8, v uint8)
- func (h *MapInt8ToUint8) Remove(k int8)
- func (h *MapInt8ToUint8) Size() int
- func (h *MapInt8ToUint8) Visit(fn func(int8, uint8))
- type MapIntToInt
- func (h *MapIntToInt) Add(k int, v int)
- func (h *MapIntToInt) Clear()
- func (h *MapIntToInt) Contains(k int) bool
- func (h *MapIntToInt) Find(k int) (int, bool)
- func (h *MapIntToInt) Get(k int) int
- func (h *MapIntToInt) Inc(k int)
- func (h *MapIntToInt) Modify(k int, fn func(v *int))
- func (h *MapIntToInt) Put(k int, v int)
- func (h *MapIntToInt) Remove(k int)
- func (h *MapIntToInt) Size() int
- func (h *MapIntToInt) Visit(fn func(int, int))
- type MapIntToInt16
- func (h *MapIntToInt16) Add(k int, v int16)
- func (h *MapIntToInt16) Clear()
- func (h *MapIntToInt16) Contains(k int) bool
- func (h *MapIntToInt16) Find(k int) (int16, bool)
- func (h *MapIntToInt16) Get(k int) int16
- func (h *MapIntToInt16) Inc(k int)
- func (h *MapIntToInt16) Modify(k int, fn func(v *int16))
- func (h *MapIntToInt16) Put(k int, v int16)
- func (h *MapIntToInt16) Remove(k int)
- func (h *MapIntToInt16) Size() int
- func (h *MapIntToInt16) Visit(fn func(int, int16))
- type MapIntToInt32
- func (h *MapIntToInt32) Add(k int, v int32)
- func (h *MapIntToInt32) Clear()
- func (h *MapIntToInt32) Contains(k int) bool
- func (h *MapIntToInt32) Find(k int) (int32, bool)
- func (h *MapIntToInt32) Get(k int) int32
- func (h *MapIntToInt32) Inc(k int)
- func (h *MapIntToInt32) Modify(k int, fn func(v *int32))
- func (h *MapIntToInt32) Put(k int, v int32)
- func (h *MapIntToInt32) Remove(k int)
- func (h *MapIntToInt32) Size() int
- func (h *MapIntToInt32) Visit(fn func(int, int32))
- type MapIntToInt64
- func (h *MapIntToInt64) Add(k int, v int64)
- func (h *MapIntToInt64) Clear()
- func (h *MapIntToInt64) Contains(k int) bool
- func (h *MapIntToInt64) Find(k int) (int64, bool)
- func (h *MapIntToInt64) Get(k int) int64
- func (h *MapIntToInt64) Inc(k int)
- func (h *MapIntToInt64) Modify(k int, fn func(v *int64))
- func (h *MapIntToInt64) Put(k int, v int64)
- func (h *MapIntToInt64) Remove(k int)
- func (h *MapIntToInt64) Size() int
- func (h *MapIntToInt64) Visit(fn func(int, int64))
- type MapIntToInt8
- func (h *MapIntToInt8) Add(k int, v int8)
- func (h *MapIntToInt8) Clear()
- func (h *MapIntToInt8) Contains(k int) bool
- func (h *MapIntToInt8) Find(k int) (int8, bool)
- func (h *MapIntToInt8) Get(k int) int8
- func (h *MapIntToInt8) Inc(k int)
- func (h *MapIntToInt8) Modify(k int, fn func(v *int8))
- func (h *MapIntToInt8) Put(k int, v int8)
- func (h *MapIntToInt8) Remove(k int)
- func (h *MapIntToInt8) Size() int
- func (h *MapIntToInt8) Visit(fn func(int, int8))
- type MapIntToUint
- func (h *MapIntToUint) Add(k int, v uint)
- func (h *MapIntToUint) Clear()
- func (h *MapIntToUint) Contains(k int) bool
- func (h *MapIntToUint) Find(k int) (uint, bool)
- func (h *MapIntToUint) Get(k int) uint
- func (h *MapIntToUint) Inc(k int)
- func (h *MapIntToUint) Modify(k int, fn func(v *uint))
- func (h *MapIntToUint) Put(k int, v uint)
- func (h *MapIntToUint) Remove(k int)
- func (h *MapIntToUint) Size() int
- func (h *MapIntToUint) Visit(fn func(int, uint))
- type MapIntToUint16
- func (h *MapIntToUint16) Add(k int, v uint16)
- func (h *MapIntToUint16) Clear()
- func (h *MapIntToUint16) Contains(k int) bool
- func (h *MapIntToUint16) Find(k int) (uint16, bool)
- func (h *MapIntToUint16) Get(k int) uint16
- func (h *MapIntToUint16) Inc(k int)
- func (h *MapIntToUint16) Modify(k int, fn func(v *uint16))
- func (h *MapIntToUint16) Put(k int, v uint16)
- func (h *MapIntToUint16) Remove(k int)
- func (h *MapIntToUint16) Size() int
- func (h *MapIntToUint16) Visit(fn func(int, uint16))
- type MapIntToUint32
- func (h *MapIntToUint32) Add(k int, v uint32)
- func (h *MapIntToUint32) Clear()
- func (h *MapIntToUint32) Contains(k int) bool
- func (h *MapIntToUint32) Find(k int) (uint32, bool)
- func (h *MapIntToUint32) Get(k int) uint32
- func (h *MapIntToUint32) Inc(k int)
- func (h *MapIntToUint32) Modify(k int, fn func(v *uint32))
- func (h *MapIntToUint32) Put(k int, v uint32)
- func (h *MapIntToUint32) Remove(k int)
- func (h *MapIntToUint32) Size() int
- func (h *MapIntToUint32) Visit(fn func(int, uint32))
- type MapIntToUint64
- func (h *MapIntToUint64) Add(k int, v uint64)
- func (h *MapIntToUint64) Clear()
- func (h *MapIntToUint64) Contains(k int) bool
- func (h *MapIntToUint64) Find(k int) (uint64, bool)
- func (h *MapIntToUint64) Get(k int) uint64
- func (h *MapIntToUint64) Inc(k int)
- func (h *MapIntToUint64) Modify(k int, fn func(v *uint64))
- func (h *MapIntToUint64) Put(k int, v uint64)
- func (h *MapIntToUint64) Remove(k int)
- func (h *MapIntToUint64) Size() int
- func (h *MapIntToUint64) Visit(fn func(int, uint64))
- type MapIntToUint8
- func (h *MapIntToUint8) Add(k int, v uint8)
- func (h *MapIntToUint8) Clear()
- func (h *MapIntToUint8) Contains(k int) bool
- func (h *MapIntToUint8) Find(k int) (uint8, bool)
- func (h *MapIntToUint8) Get(k int) uint8
- func (h *MapIntToUint8) Inc(k int)
- func (h *MapIntToUint8) Modify(k int, fn func(v *uint8))
- func (h *MapIntToUint8) Put(k int, v uint8)
- func (h *MapIntToUint8) Remove(k int)
- func (h *MapIntToUint8) Size() int
- func (h *MapIntToUint8) Visit(fn func(int, uint8))
- type MapUint16ToInt
- func (h *MapUint16ToInt) Add(k uint16, v int)
- func (h *MapUint16ToInt) Clear()
- func (h *MapUint16ToInt) Contains(k uint16) bool
- func (h *MapUint16ToInt) Find(k uint16) (int, bool)
- func (h *MapUint16ToInt) Get(k uint16) int
- func (h *MapUint16ToInt) Inc(k uint16)
- func (h *MapUint16ToInt) Modify(k uint16, fn func(v *int))
- func (h *MapUint16ToInt) Put(k uint16, v int)
- func (h *MapUint16ToInt) Remove(k uint16)
- func (h *MapUint16ToInt) Size() int
- func (h *MapUint16ToInt) Visit(fn func(uint16, int))
- type MapUint16ToInt16
- func (h *MapUint16ToInt16) Add(k uint16, v int16)
- func (h *MapUint16ToInt16) Clear()
- func (h *MapUint16ToInt16) Contains(k uint16) bool
- func (h *MapUint16ToInt16) Find(k uint16) (int16, bool)
- func (h *MapUint16ToInt16) Get(k uint16) int16
- func (h *MapUint16ToInt16) Inc(k uint16)
- func (h *MapUint16ToInt16) Modify(k uint16, fn func(v *int16))
- func (h *MapUint16ToInt16) Put(k uint16, v int16)
- func (h *MapUint16ToInt16) Remove(k uint16)
- func (h *MapUint16ToInt16) Size() int
- func (h *MapUint16ToInt16) Visit(fn func(uint16, int16))
- type MapUint16ToInt32
- func (h *MapUint16ToInt32) Add(k uint16, v int32)
- func (h *MapUint16ToInt32) Clear()
- func (h *MapUint16ToInt32) Contains(k uint16) bool
- func (h *MapUint16ToInt32) Find(k uint16) (int32, bool)
- func (h *MapUint16ToInt32) Get(k uint16) int32
- func (h *MapUint16ToInt32) Inc(k uint16)
- func (h *MapUint16ToInt32) Modify(k uint16, fn func(v *int32))
- func (h *MapUint16ToInt32) Put(k uint16, v int32)
- func (h *MapUint16ToInt32) Remove(k uint16)
- func (h *MapUint16ToInt32) Size() int
- func (h *MapUint16ToInt32) Visit(fn func(uint16, int32))
- type MapUint16ToInt64
- func (h *MapUint16ToInt64) Add(k uint16, v int64)
- func (h *MapUint16ToInt64) Clear()
- func (h *MapUint16ToInt64) Contains(k uint16) bool
- func (h *MapUint16ToInt64) Find(k uint16) (int64, bool)
- func (h *MapUint16ToInt64) Get(k uint16) int64
- func (h *MapUint16ToInt64) Inc(k uint16)
- func (h *MapUint16ToInt64) Modify(k uint16, fn func(v *int64))
- func (h *MapUint16ToInt64) Put(k uint16, v int64)
- func (h *MapUint16ToInt64) Remove(k uint16)
- func (h *MapUint16ToInt64) Size() int
- func (h *MapUint16ToInt64) Visit(fn func(uint16, int64))
- type MapUint16ToInt8
- func (h *MapUint16ToInt8) Add(k uint16, v int8)
- func (h *MapUint16ToInt8) Clear()
- func (h *MapUint16ToInt8) Contains(k uint16) bool
- func (h *MapUint16ToInt8) Find(k uint16) (int8, bool)
- func (h *MapUint16ToInt8) Get(k uint16) int8
- func (h *MapUint16ToInt8) Inc(k uint16)
- func (h *MapUint16ToInt8) Modify(k uint16, fn func(v *int8))
- func (h *MapUint16ToInt8) Put(k uint16, v int8)
- func (h *MapUint16ToInt8) Remove(k uint16)
- func (h *MapUint16ToInt8) Size() int
- func (h *MapUint16ToInt8) Visit(fn func(uint16, int8))
- type MapUint16ToUint
- func (h *MapUint16ToUint) Add(k uint16, v uint)
- func (h *MapUint16ToUint) Clear()
- func (h *MapUint16ToUint) Contains(k uint16) bool
- func (h *MapUint16ToUint) Find(k uint16) (uint, bool)
- func (h *MapUint16ToUint) Get(k uint16) uint
- func (h *MapUint16ToUint) Inc(k uint16)
- func (h *MapUint16ToUint) Modify(k uint16, fn func(v *uint))
- func (h *MapUint16ToUint) Put(k uint16, v uint)
- func (h *MapUint16ToUint) Remove(k uint16)
- func (h *MapUint16ToUint) Size() int
- func (h *MapUint16ToUint) Visit(fn func(uint16, uint))
- type MapUint16ToUint16
- func (h *MapUint16ToUint16) Add(k uint16, v uint16)
- func (h *MapUint16ToUint16) Clear()
- func (h *MapUint16ToUint16) Contains(k uint16) bool
- func (h *MapUint16ToUint16) Find(k uint16) (uint16, bool)
- func (h *MapUint16ToUint16) Get(k uint16) uint16
- func (h *MapUint16ToUint16) Inc(k uint16)
- func (h *MapUint16ToUint16) Modify(k uint16, fn func(v *uint16))
- func (h *MapUint16ToUint16) Put(k uint16, v uint16)
- func (h *MapUint16ToUint16) Remove(k uint16)
- func (h *MapUint16ToUint16) Size() int
- func (h *MapUint16ToUint16) Visit(fn func(uint16, uint16))
- type MapUint16ToUint32
- func (h *MapUint16ToUint32) Add(k uint16, v uint32)
- func (h *MapUint16ToUint32) Clear()
- func (h *MapUint16ToUint32) Contains(k uint16) bool
- func (h *MapUint16ToUint32) Find(k uint16) (uint32, bool)
- func (h *MapUint16ToUint32) Get(k uint16) uint32
- func (h *MapUint16ToUint32) Inc(k uint16)
- func (h *MapUint16ToUint32) Modify(k uint16, fn func(v *uint32))
- func (h *MapUint16ToUint32) Put(k uint16, v uint32)
- func (h *MapUint16ToUint32) Remove(k uint16)
- func (h *MapUint16ToUint32) Size() int
- func (h *MapUint16ToUint32) Visit(fn func(uint16, uint32))
- type MapUint16ToUint64
- func (h *MapUint16ToUint64) Add(k uint16, v uint64)
- func (h *MapUint16ToUint64) Clear()
- func (h *MapUint16ToUint64) Contains(k uint16) bool
- func (h *MapUint16ToUint64) Find(k uint16) (uint64, bool)
- func (h *MapUint16ToUint64) Get(k uint16) uint64
- func (h *MapUint16ToUint64) Inc(k uint16)
- func (h *MapUint16ToUint64) Modify(k uint16, fn func(v *uint64))
- func (h *MapUint16ToUint64) Put(k uint16, v uint64)
- func (h *MapUint16ToUint64) Remove(k uint16)
- func (h *MapUint16ToUint64) Size() int
- func (h *MapUint16ToUint64) Visit(fn func(uint16, uint64))
- type MapUint16ToUint8
- func (h *MapUint16ToUint8) Add(k uint16, v uint8)
- func (h *MapUint16ToUint8) Clear()
- func (h *MapUint16ToUint8) Contains(k uint16) bool
- func (h *MapUint16ToUint8) Find(k uint16) (uint8, bool)
- func (h *MapUint16ToUint8) Get(k uint16) uint8
- func (h *MapUint16ToUint8) Inc(k uint16)
- func (h *MapUint16ToUint8) Modify(k uint16, fn func(v *uint8))
- func (h *MapUint16ToUint8) Put(k uint16, v uint8)
- func (h *MapUint16ToUint8) Remove(k uint16)
- func (h *MapUint16ToUint8) Size() int
- func (h *MapUint16ToUint8) Visit(fn func(uint16, uint8))
- type MapUint32ToInt
- func (h *MapUint32ToInt) Add(k uint32, v int)
- func (h *MapUint32ToInt) Clear()
- func (h *MapUint32ToInt) Contains(k uint32) bool
- func (h *MapUint32ToInt) Find(k uint32) (int, bool)
- func (h *MapUint32ToInt) Get(k uint32) int
- func (h *MapUint32ToInt) Inc(k uint32)
- func (h *MapUint32ToInt) Modify(k uint32, fn func(v *int))
- func (h *MapUint32ToInt) Put(k uint32, v int)
- func (h *MapUint32ToInt) Remove(k uint32)
- func (h *MapUint32ToInt) Size() int
- func (h *MapUint32ToInt) Visit(fn func(uint32, int))
- type MapUint32ToInt16
- func (h *MapUint32ToInt16) Add(k uint32, v int16)
- func (h *MapUint32ToInt16) Clear()
- func (h *MapUint32ToInt16) Contains(k uint32) bool
- func (h *MapUint32ToInt16) Find(k uint32) (int16, bool)
- func (h *MapUint32ToInt16) Get(k uint32) int16
- func (h *MapUint32ToInt16) Inc(k uint32)
- func (h *MapUint32ToInt16) Modify(k uint32, fn func(v *int16))
- func (h *MapUint32ToInt16) Put(k uint32, v int16)
- func (h *MapUint32ToInt16) Remove(k uint32)
- func (h *MapUint32ToInt16) Size() int
- func (h *MapUint32ToInt16) Visit(fn func(uint32, int16))
- type MapUint32ToInt32
- func (h *MapUint32ToInt32) Add(k uint32, v int32)
- func (h *MapUint32ToInt32) Clear()
- func (h *MapUint32ToInt32) Contains(k uint32) bool
- func (h *MapUint32ToInt32) Find(k uint32) (int32, bool)
- func (h *MapUint32ToInt32) Get(k uint32) int32
- func (h *MapUint32ToInt32) Inc(k uint32)
- func (h *MapUint32ToInt32) Modify(k uint32, fn func(v *int32))
- func (h *MapUint32ToInt32) Put(k uint32, v int32)
- func (h *MapUint32ToInt32) Remove(k uint32)
- func (h *MapUint32ToInt32) Size() int
- func (h *MapUint32ToInt32) Visit(fn func(uint32, int32))
- type MapUint32ToInt64
- func (h *MapUint32ToInt64) Add(k uint32, v int64)
- func (h *MapUint32ToInt64) Clear()
- func (h *MapUint32ToInt64) Contains(k uint32) bool
- func (h *MapUint32ToInt64) Find(k uint32) (int64, bool)
- func (h *MapUint32ToInt64) Get(k uint32) int64
- func (h *MapUint32ToInt64) Inc(k uint32)
- func (h *MapUint32ToInt64) Modify(k uint32, fn func(v *int64))
- func (h *MapUint32ToInt64) Put(k uint32, v int64)
- func (h *MapUint32ToInt64) Remove(k uint32)
- func (h *MapUint32ToInt64) Size() int
- func (h *MapUint32ToInt64) Visit(fn func(uint32, int64))
- type MapUint32ToInt8
- func (h *MapUint32ToInt8) Add(k uint32, v int8)
- func (h *MapUint32ToInt8) Clear()
- func (h *MapUint32ToInt8) Contains(k uint32) bool
- func (h *MapUint32ToInt8) Find(k uint32) (int8, bool)
- func (h *MapUint32ToInt8) Get(k uint32) int8
- func (h *MapUint32ToInt8) Inc(k uint32)
- func (h *MapUint32ToInt8) Modify(k uint32, fn func(v *int8))
- func (h *MapUint32ToInt8) Put(k uint32, v int8)
- func (h *MapUint32ToInt8) Remove(k uint32)
- func (h *MapUint32ToInt8) Size() int
- func (h *MapUint32ToInt8) Visit(fn func(uint32, int8))
- type MapUint32ToUint
- func (h *MapUint32ToUint) Add(k uint32, v uint)
- func (h *MapUint32ToUint) Clear()
- func (h *MapUint32ToUint) Contains(k uint32) bool
- func (h *MapUint32ToUint) Find(k uint32) (uint, bool)
- func (h *MapUint32ToUint) Get(k uint32) uint
- func (h *MapUint32ToUint) Inc(k uint32)
- func (h *MapUint32ToUint) Modify(k uint32, fn func(v *uint))
- func (h *MapUint32ToUint) Put(k uint32, v uint)
- func (h *MapUint32ToUint) Remove(k uint32)
- func (h *MapUint32ToUint) Size() int
- func (h *MapUint32ToUint) Visit(fn func(uint32, uint))
- type MapUint32ToUint16
- func (h *MapUint32ToUint16) Add(k uint32, v uint16)
- func (h *MapUint32ToUint16) Clear()
- func (h *MapUint32ToUint16) Contains(k uint32) bool
- func (h *MapUint32ToUint16) Find(k uint32) (uint16, bool)
- func (h *MapUint32ToUint16) Get(k uint32) uint16
- func (h *MapUint32ToUint16) Inc(k uint32)
- func (h *MapUint32ToUint16) Modify(k uint32, fn func(v *uint16))
- func (h *MapUint32ToUint16) Put(k uint32, v uint16)
- func (h *MapUint32ToUint16) Remove(k uint32)
- func (h *MapUint32ToUint16) Size() int
- func (h *MapUint32ToUint16) Visit(fn func(uint32, uint16))
- type MapUint32ToUint32
- func (h *MapUint32ToUint32) Add(k uint32, v uint32)
- func (h *MapUint32ToUint32) Clear()
- func (h *MapUint32ToUint32) Contains(k uint32) bool
- func (h *MapUint32ToUint32) Find(k uint32) (uint32, bool)
- func (h *MapUint32ToUint32) Get(k uint32) uint32
- func (h *MapUint32ToUint32) Inc(k uint32)
- func (h *MapUint32ToUint32) Modify(k uint32, fn func(v *uint32))
- func (h *MapUint32ToUint32) Put(k uint32, v uint32)
- func (h *MapUint32ToUint32) Remove(k uint32)
- func (h *MapUint32ToUint32) Size() int
- func (h *MapUint32ToUint32) Visit(fn func(uint32, uint32))
- type MapUint32ToUint64
- func (h *MapUint32ToUint64) Add(k uint32, v uint64)
- func (h *MapUint32ToUint64) Clear()
- func (h *MapUint32ToUint64) Contains(k uint32) bool
- func (h *MapUint32ToUint64) Find(k uint32) (uint64, bool)
- func (h *MapUint32ToUint64) Get(k uint32) uint64
- func (h *MapUint32ToUint64) Inc(k uint32)
- func (h *MapUint32ToUint64) Modify(k uint32, fn func(v *uint64))
- func (h *MapUint32ToUint64) Put(k uint32, v uint64)
- func (h *MapUint32ToUint64) Remove(k uint32)
- func (h *MapUint32ToUint64) Size() int
- func (h *MapUint32ToUint64) Visit(fn func(uint32, uint64))
- type MapUint32ToUint8
- func (h *MapUint32ToUint8) Add(k uint32, v uint8)
- func (h *MapUint32ToUint8) Clear()
- func (h *MapUint32ToUint8) Contains(k uint32) bool
- func (h *MapUint32ToUint8) Find(k uint32) (uint8, bool)
- func (h *MapUint32ToUint8) Get(k uint32) uint8
- func (h *MapUint32ToUint8) Inc(k uint32)
- func (h *MapUint32ToUint8) Modify(k uint32, fn func(v *uint8))
- func (h *MapUint32ToUint8) Put(k uint32, v uint8)
- func (h *MapUint32ToUint8) Remove(k uint32)
- func (h *MapUint32ToUint8) Size() int
- func (h *MapUint32ToUint8) Visit(fn func(uint32, uint8))
- type MapUint64ToInt
- func (h *MapUint64ToInt) Add(k uint64, v int)
- func (h *MapUint64ToInt) Clear()
- func (h *MapUint64ToInt) Contains(k uint64) bool
- func (h *MapUint64ToInt) Find(k uint64) (int, bool)
- func (h *MapUint64ToInt) Get(k uint64) int
- func (h *MapUint64ToInt) Inc(k uint64)
- func (h *MapUint64ToInt) Modify(k uint64, fn func(v *int))
- func (h *MapUint64ToInt) Put(k uint64, v int)
- func (h *MapUint64ToInt) Remove(k uint64)
- func (h *MapUint64ToInt) Size() int
- func (h *MapUint64ToInt) Visit(fn func(uint64, int))
- type MapUint64ToInt16
- func (h *MapUint64ToInt16) Add(k uint64, v int16)
- func (h *MapUint64ToInt16) Clear()
- func (h *MapUint64ToInt16) Contains(k uint64) bool
- func (h *MapUint64ToInt16) Find(k uint64) (int16, bool)
- func (h *MapUint64ToInt16) Get(k uint64) int16
- func (h *MapUint64ToInt16) Inc(k uint64)
- func (h *MapUint64ToInt16) Modify(k uint64, fn func(v *int16))
- func (h *MapUint64ToInt16) Put(k uint64, v int16)
- func (h *MapUint64ToInt16) Remove(k uint64)
- func (h *MapUint64ToInt16) Size() int
- func (h *MapUint64ToInt16) Visit(fn func(uint64, int16))
- type MapUint64ToInt32
- func (h *MapUint64ToInt32) Add(k uint64, v int32)
- func (h *MapUint64ToInt32) Clear()
- func (h *MapUint64ToInt32) Contains(k uint64) bool
- func (h *MapUint64ToInt32) Find(k uint64) (int32, bool)
- func (h *MapUint64ToInt32) Get(k uint64) int32
- func (h *MapUint64ToInt32) Inc(k uint64)
- func (h *MapUint64ToInt32) Modify(k uint64, fn func(v *int32))
- func (h *MapUint64ToInt32) Put(k uint64, v int32)
- func (h *MapUint64ToInt32) Remove(k uint64)
- func (h *MapUint64ToInt32) Size() int
- func (h *MapUint64ToInt32) Visit(fn func(uint64, int32))
- type MapUint64ToInt64
- func (h *MapUint64ToInt64) Add(k uint64, v int64)
- func (h *MapUint64ToInt64) Clear()
- func (h *MapUint64ToInt64) Contains(k uint64) bool
- func (h *MapUint64ToInt64) Find(k uint64) (int64, bool)
- func (h *MapUint64ToInt64) Get(k uint64) int64
- func (h *MapUint64ToInt64) Inc(k uint64)
- func (h *MapUint64ToInt64) Modify(k uint64, fn func(v *int64))
- func (h *MapUint64ToInt64) Put(k uint64, v int64)
- func (h *MapUint64ToInt64) Remove(k uint64)
- func (h *MapUint64ToInt64) Size() int
- func (h *MapUint64ToInt64) Visit(fn func(uint64, int64))
- type MapUint64ToInt8
- func (h *MapUint64ToInt8) Add(k uint64, v int8)
- func (h *MapUint64ToInt8) Clear()
- func (h *MapUint64ToInt8) Contains(k uint64) bool
- func (h *MapUint64ToInt8) Find(k uint64) (int8, bool)
- func (h *MapUint64ToInt8) Get(k uint64) int8
- func (h *MapUint64ToInt8) Inc(k uint64)
- func (h *MapUint64ToInt8) Modify(k uint64, fn func(v *int8))
- func (h *MapUint64ToInt8) Put(k uint64, v int8)
- func (h *MapUint64ToInt8) Remove(k uint64)
- func (h *MapUint64ToInt8) Size() int
- func (h *MapUint64ToInt8) Visit(fn func(uint64, int8))
- type MapUint64ToUint
- func (h *MapUint64ToUint) Add(k uint64, v uint)
- func (h *MapUint64ToUint) Clear()
- func (h *MapUint64ToUint) Contains(k uint64) bool
- func (h *MapUint64ToUint) Find(k uint64) (uint, bool)
- func (h *MapUint64ToUint) Get(k uint64) uint
- func (h *MapUint64ToUint) Inc(k uint64)
- func (h *MapUint64ToUint) Modify(k uint64, fn func(v *uint))
- func (h *MapUint64ToUint) Put(k uint64, v uint)
- func (h *MapUint64ToUint) Remove(k uint64)
- func (h *MapUint64ToUint) Size() int
- func (h *MapUint64ToUint) Visit(fn func(uint64, uint))
- type MapUint64ToUint16
- func (h *MapUint64ToUint16) Add(k uint64, v uint16)
- func (h *MapUint64ToUint16) Clear()
- func (h *MapUint64ToUint16) Contains(k uint64) bool
- func (h *MapUint64ToUint16) Find(k uint64) (uint16, bool)
- func (h *MapUint64ToUint16) Get(k uint64) uint16
- func (h *MapUint64ToUint16) Inc(k uint64)
- func (h *MapUint64ToUint16) Modify(k uint64, fn func(v *uint16))
- func (h *MapUint64ToUint16) Put(k uint64, v uint16)
- func (h *MapUint64ToUint16) Remove(k uint64)
- func (h *MapUint64ToUint16) Size() int
- func (h *MapUint64ToUint16) Visit(fn func(uint64, uint16))
- type MapUint64ToUint32
- func (h *MapUint64ToUint32) Add(k uint64, v uint32)
- func (h *MapUint64ToUint32) Clear()
- func (h *MapUint64ToUint32) Contains(k uint64) bool
- func (h *MapUint64ToUint32) Find(k uint64) (uint32, bool)
- func (h *MapUint64ToUint32) Get(k uint64) uint32
- func (h *MapUint64ToUint32) Inc(k uint64)
- func (h *MapUint64ToUint32) Modify(k uint64, fn func(v *uint32))
- func (h *MapUint64ToUint32) Put(k uint64, v uint32)
- func (h *MapUint64ToUint32) Remove(k uint64)
- func (h *MapUint64ToUint32) Size() int
- func (h *MapUint64ToUint32) Visit(fn func(uint64, uint32))
- type MapUint64ToUint64
- func (h *MapUint64ToUint64) Add(k uint64, v uint64)
- func (h *MapUint64ToUint64) Clear()
- func (h *MapUint64ToUint64) Contains(k uint64) bool
- func (h *MapUint64ToUint64) Find(k uint64) (uint64, bool)
- func (h *MapUint64ToUint64) Get(k uint64) uint64
- func (h *MapUint64ToUint64) Inc(k uint64)
- func (h *MapUint64ToUint64) Modify(k uint64, fn func(v *uint64))
- func (h *MapUint64ToUint64) Put(k uint64, v uint64)
- func (h *MapUint64ToUint64) Remove(k uint64)
- func (h *MapUint64ToUint64) Size() int
- func (h *MapUint64ToUint64) Visit(fn func(uint64, uint64))
- type MapUint64ToUint8
- func (h *MapUint64ToUint8) Add(k uint64, v uint8)
- func (h *MapUint64ToUint8) Clear()
- func (h *MapUint64ToUint8) Contains(k uint64) bool
- func (h *MapUint64ToUint8) Find(k uint64) (uint8, bool)
- func (h *MapUint64ToUint8) Get(k uint64) uint8
- func (h *MapUint64ToUint8) Inc(k uint64)
- func (h *MapUint64ToUint8) Modify(k uint64, fn func(v *uint8))
- func (h *MapUint64ToUint8) Put(k uint64, v uint8)
- func (h *MapUint64ToUint8) Remove(k uint64)
- func (h *MapUint64ToUint8) Size() int
- func (h *MapUint64ToUint8) Visit(fn func(uint64, uint8))
- type MapUint8ToInt
- func (h *MapUint8ToInt) Add(k uint8, v int)
- func (h *MapUint8ToInt) Clear()
- func (h *MapUint8ToInt) Contains(k uint8) bool
- func (h *MapUint8ToInt) Find(k uint8) (int, bool)
- func (h *MapUint8ToInt) Get(k uint8) int
- func (h *MapUint8ToInt) Inc(k uint8)
- func (h *MapUint8ToInt) Modify(k uint8, fn func(v *int))
- func (h *MapUint8ToInt) Put(k uint8, v int)
- func (h *MapUint8ToInt) Remove(k uint8)
- func (h *MapUint8ToInt) Size() int
- func (h *MapUint8ToInt) Visit(fn func(uint8, int))
- type MapUint8ToInt16
- func (h *MapUint8ToInt16) Add(k uint8, v int16)
- func (h *MapUint8ToInt16) Clear()
- func (h *MapUint8ToInt16) Contains(k uint8) bool
- func (h *MapUint8ToInt16) Find(k uint8) (int16, bool)
- func (h *MapUint8ToInt16) Get(k uint8) int16
- func (h *MapUint8ToInt16) Inc(k uint8)
- func (h *MapUint8ToInt16) Modify(k uint8, fn func(v *int16))
- func (h *MapUint8ToInt16) Put(k uint8, v int16)
- func (h *MapUint8ToInt16) Remove(k uint8)
- func (h *MapUint8ToInt16) Size() int
- func (h *MapUint8ToInt16) Visit(fn func(uint8, int16))
- type MapUint8ToInt32
- func (h *MapUint8ToInt32) Add(k uint8, v int32)
- func (h *MapUint8ToInt32) Clear()
- func (h *MapUint8ToInt32) Contains(k uint8) bool
- func (h *MapUint8ToInt32) Find(k uint8) (int32, bool)
- func (h *MapUint8ToInt32) Get(k uint8) int32
- func (h *MapUint8ToInt32) Inc(k uint8)
- func (h *MapUint8ToInt32) Modify(k uint8, fn func(v *int32))
- func (h *MapUint8ToInt32) Put(k uint8, v int32)
- func (h *MapUint8ToInt32) Remove(k uint8)
- func (h *MapUint8ToInt32) Size() int
- func (h *MapUint8ToInt32) Visit(fn func(uint8, int32))
- type MapUint8ToInt64
- func (h *MapUint8ToInt64) Add(k uint8, v int64)
- func (h *MapUint8ToInt64) Clear()
- func (h *MapUint8ToInt64) Contains(k uint8) bool
- func (h *MapUint8ToInt64) Find(k uint8) (int64, bool)
- func (h *MapUint8ToInt64) Get(k uint8) int64
- func (h *MapUint8ToInt64) Inc(k uint8)
- func (h *MapUint8ToInt64) Modify(k uint8, fn func(v *int64))
- func (h *MapUint8ToInt64) Put(k uint8, v int64)
- func (h *MapUint8ToInt64) Remove(k uint8)
- func (h *MapUint8ToInt64) Size() int
- func (h *MapUint8ToInt64) Visit(fn func(uint8, int64))
- type MapUint8ToInt8
- func (h *MapUint8ToInt8) Add(k uint8, v int8)
- func (h *MapUint8ToInt8) Clear()
- func (h *MapUint8ToInt8) Contains(k uint8) bool
- func (h *MapUint8ToInt8) Find(k uint8) (int8, bool)
- func (h *MapUint8ToInt8) Get(k uint8) int8
- func (h *MapUint8ToInt8) Inc(k uint8)
- func (h *MapUint8ToInt8) Modify(k uint8, fn func(v *int8))
- func (h *MapUint8ToInt8) Put(k uint8, v int8)
- func (h *MapUint8ToInt8) Remove(k uint8)
- func (h *MapUint8ToInt8) Size() int
- func (h *MapUint8ToInt8) Visit(fn func(uint8, int8))
- type MapUint8ToUint
- func (h *MapUint8ToUint) Add(k uint8, v uint)
- func (h *MapUint8ToUint) Clear()
- func (h *MapUint8ToUint) Contains(k uint8) bool
- func (h *MapUint8ToUint) Find(k uint8) (uint, bool)
- func (h *MapUint8ToUint) Get(k uint8) uint
- func (h *MapUint8ToUint) Inc(k uint8)
- func (h *MapUint8ToUint) Modify(k uint8, fn func(v *uint))
- func (h *MapUint8ToUint) Put(k uint8, v uint)
- func (h *MapUint8ToUint) Remove(k uint8)
- func (h *MapUint8ToUint) Size() int
- func (h *MapUint8ToUint) Visit(fn func(uint8, uint))
- type MapUint8ToUint16
- func (h *MapUint8ToUint16) Add(k uint8, v uint16)
- func (h *MapUint8ToUint16) Clear()
- func (h *MapUint8ToUint16) Contains(k uint8) bool
- func (h *MapUint8ToUint16) Find(k uint8) (uint16, bool)
- func (h *MapUint8ToUint16) Get(k uint8) uint16
- func (h *MapUint8ToUint16) Inc(k uint8)
- func (h *MapUint8ToUint16) Modify(k uint8, fn func(v *uint16))
- func (h *MapUint8ToUint16) Put(k uint8, v uint16)
- func (h *MapUint8ToUint16) Remove(k uint8)
- func (h *MapUint8ToUint16) Size() int
- func (h *MapUint8ToUint16) Visit(fn func(uint8, uint16))
- type MapUint8ToUint32
- func (h *MapUint8ToUint32) Add(k uint8, v uint32)
- func (h *MapUint8ToUint32) Clear()
- func (h *MapUint8ToUint32) Contains(k uint8) bool
- func (h *MapUint8ToUint32) Find(k uint8) (uint32, bool)
- func (h *MapUint8ToUint32) Get(k uint8) uint32
- func (h *MapUint8ToUint32) Inc(k uint8)
- func (h *MapUint8ToUint32) Modify(k uint8, fn func(v *uint32))
- func (h *MapUint8ToUint32) Put(k uint8, v uint32)
- func (h *MapUint8ToUint32) Remove(k uint8)
- func (h *MapUint8ToUint32) Size() int
- func (h *MapUint8ToUint32) Visit(fn func(uint8, uint32))
- type MapUint8ToUint64
- func (h *MapUint8ToUint64) Add(k uint8, v uint64)
- func (h *MapUint8ToUint64) Clear()
- func (h *MapUint8ToUint64) Contains(k uint8) bool
- func (h *MapUint8ToUint64) Find(k uint8) (uint64, bool)
- func (h *MapUint8ToUint64) Get(k uint8) uint64
- func (h *MapUint8ToUint64) Inc(k uint8)
- func (h *MapUint8ToUint64) Modify(k uint8, fn func(v *uint64))
- func (h *MapUint8ToUint64) Put(k uint8, v uint64)
- func (h *MapUint8ToUint64) Remove(k uint8)
- func (h *MapUint8ToUint64) Size() int
- func (h *MapUint8ToUint64) Visit(fn func(uint8, uint64))
- type MapUint8ToUint8
- func (h *MapUint8ToUint8) Add(k uint8, v uint8)
- func (h *MapUint8ToUint8) Clear()
- func (h *MapUint8ToUint8) Contains(k uint8) bool
- func (h *MapUint8ToUint8) Find(k uint8) (uint8, bool)
- func (h *MapUint8ToUint8) Get(k uint8) uint8
- func (h *MapUint8ToUint8) Inc(k uint8)
- func (h *MapUint8ToUint8) Modify(k uint8, fn func(v *uint8))
- func (h *MapUint8ToUint8) Put(k uint8, v uint8)
- func (h *MapUint8ToUint8) Remove(k uint8)
- func (h *MapUint8ToUint8) Size() int
- func (h *MapUint8ToUint8) Visit(fn func(uint8, uint8))
- type MapUintToInt
- func (h *MapUintToInt) Add(k uint, v int)
- func (h *MapUintToInt) Clear()
- func (h *MapUintToInt) Contains(k uint) bool
- func (h *MapUintToInt) Find(k uint) (int, bool)
- func (h *MapUintToInt) Get(k uint) int
- func (h *MapUintToInt) Inc(k uint)
- func (h *MapUintToInt) Modify(k uint, fn func(v *int))
- func (h *MapUintToInt) Put(k uint, v int)
- func (h *MapUintToInt) Remove(k uint)
- func (h *MapUintToInt) Size() int
- func (h *MapUintToInt) Visit(fn func(uint, int))
- type MapUintToInt16
- func (h *MapUintToInt16) Add(k uint, v int16)
- func (h *MapUintToInt16) Clear()
- func (h *MapUintToInt16) Contains(k uint) bool
- func (h *MapUintToInt16) Find(k uint) (int16, bool)
- func (h *MapUintToInt16) Get(k uint) int16
- func (h *MapUintToInt16) Inc(k uint)
- func (h *MapUintToInt16) Modify(k uint, fn func(v *int16))
- func (h *MapUintToInt16) Put(k uint, v int16)
- func (h *MapUintToInt16) Remove(k uint)
- func (h *MapUintToInt16) Size() int
- func (h *MapUintToInt16) Visit(fn func(uint, int16))
- type MapUintToInt32
- func (h *MapUintToInt32) Add(k uint, v int32)
- func (h *MapUintToInt32) Clear()
- func (h *MapUintToInt32) Contains(k uint) bool
- func (h *MapUintToInt32) Find(k uint) (int32, bool)
- func (h *MapUintToInt32) Get(k uint) int32
- func (h *MapUintToInt32) Inc(k uint)
- func (h *MapUintToInt32) Modify(k uint, fn func(v *int32))
- func (h *MapUintToInt32) Put(k uint, v int32)
- func (h *MapUintToInt32) Remove(k uint)
- func (h *MapUintToInt32) Size() int
- func (h *MapUintToInt32) Visit(fn func(uint, int32))
- type MapUintToInt64
- func (h *MapUintToInt64) Add(k uint, v int64)
- func (h *MapUintToInt64) Clear()
- func (h *MapUintToInt64) Contains(k uint) bool
- func (h *MapUintToInt64) Find(k uint) (int64, bool)
- func (h *MapUintToInt64) Get(k uint) int64
- func (h *MapUintToInt64) Inc(k uint)
- func (h *MapUintToInt64) Modify(k uint, fn func(v *int64))
- func (h *MapUintToInt64) Put(k uint, v int64)
- func (h *MapUintToInt64) Remove(k uint)
- func (h *MapUintToInt64) Size() int
- func (h *MapUintToInt64) Visit(fn func(uint, int64))
- type MapUintToInt8
- func (h *MapUintToInt8) Add(k uint, v int8)
- func (h *MapUintToInt8) Clear()
- func (h *MapUintToInt8) Contains(k uint) bool
- func (h *MapUintToInt8) Find(k uint) (int8, bool)
- func (h *MapUintToInt8) Get(k uint) int8
- func (h *MapUintToInt8) Inc(k uint)
- func (h *MapUintToInt8) Modify(k uint, fn func(v *int8))
- func (h *MapUintToInt8) Put(k uint, v int8)
- func (h *MapUintToInt8) Remove(k uint)
- func (h *MapUintToInt8) Size() int
- func (h *MapUintToInt8) Visit(fn func(uint, int8))
- type MapUintToUint
- func (h *MapUintToUint) Add(k uint, v uint)
- func (h *MapUintToUint) Clear()
- func (h *MapUintToUint) Contains(k uint) bool
- func (h *MapUintToUint) Find(k uint) (uint, bool)
- func (h *MapUintToUint) Get(k uint) uint
- func (h *MapUintToUint) Inc(k uint)
- func (h *MapUintToUint) Modify(k uint, fn func(v *uint))
- func (h *MapUintToUint) Put(k uint, v uint)
- func (h *MapUintToUint) Remove(k uint)
- func (h *MapUintToUint) Size() int
- func (h *MapUintToUint) Visit(fn func(uint, uint))
- type MapUintToUint16
- func (h *MapUintToUint16) Add(k uint, v uint16)
- func (h *MapUintToUint16) Clear()
- func (h *MapUintToUint16) Contains(k uint) bool
- func (h *MapUintToUint16) Find(k uint) (uint16, bool)
- func (h *MapUintToUint16) Get(k uint) uint16
- func (h *MapUintToUint16) Inc(k uint)
- func (h *MapUintToUint16) Modify(k uint, fn func(v *uint16))
- func (h *MapUintToUint16) Put(k uint, v uint16)
- func (h *MapUintToUint16) Remove(k uint)
- func (h *MapUintToUint16) Size() int
- func (h *MapUintToUint16) Visit(fn func(uint, uint16))
- type MapUintToUint32
- func (h *MapUintToUint32) Add(k uint, v uint32)
- func (h *MapUintToUint32) Clear()
- func (h *MapUintToUint32) Contains(k uint) bool
- func (h *MapUintToUint32) Find(k uint) (uint32, bool)
- func (h *MapUintToUint32) Get(k uint) uint32
- func (h *MapUintToUint32) Inc(k uint)
- func (h *MapUintToUint32) Modify(k uint, fn func(v *uint32))
- func (h *MapUintToUint32) Put(k uint, v uint32)
- func (h *MapUintToUint32) Remove(k uint)
- func (h *MapUintToUint32) Size() int
- func (h *MapUintToUint32) Visit(fn func(uint, uint32))
- type MapUintToUint64
- func (h *MapUintToUint64) Add(k uint, v uint64)
- func (h *MapUintToUint64) Clear()
- func (h *MapUintToUint64) Contains(k uint) bool
- func (h *MapUintToUint64) Find(k uint) (uint64, bool)
- func (h *MapUintToUint64) Get(k uint) uint64
- func (h *MapUintToUint64) Inc(k uint)
- func (h *MapUintToUint64) Modify(k uint, fn func(v *uint64))
- func (h *MapUintToUint64) Put(k uint, v uint64)
- func (h *MapUintToUint64) Remove(k uint)
- func (h *MapUintToUint64) Size() int
- func (h *MapUintToUint64) Visit(fn func(uint, uint64))
- type MapUintToUint8
- func (h *MapUintToUint8) Add(k uint, v uint8)
- func (h *MapUintToUint8) Clear()
- func (h *MapUintToUint8) Contains(k uint) bool
- func (h *MapUintToUint8) Find(k uint) (uint8, bool)
- func (h *MapUintToUint8) Get(k uint) uint8
- func (h *MapUintToUint8) Inc(k uint)
- func (h *MapUintToUint8) Modify(k uint, fn func(v *uint8))
- func (h *MapUintToUint8) Put(k uint, v uint8)
- func (h *MapUintToUint8) Remove(k uint)
- func (h *MapUintToUint8) Size() int
- func (h *MapUintToUint8) Visit(fn func(uint, uint8))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapInt16ToInt ¶
type MapInt16ToInt struct {
// contains filtered or unexported fields
}
MapInt16ToInt implements a hash map from int16 to int.
func NewMapInt16ToInt ¶
func NewMapInt16ToInt(size int) *MapInt16ToInt
NewMapInt16ToInt creates a new MapInt16ToInt with at least a size of size.
func (*MapInt16ToInt) Add ¶
func (h *MapInt16ToInt) Add(k int16, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt) Clear ¶
func (h *MapInt16ToInt) Clear()
Clear removes all elements from the map.
func (*MapInt16ToInt) Contains ¶
func (h *MapInt16ToInt) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToInt) Find ¶
func (h *MapInt16ToInt) Find(k int16) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToInt) Get ¶
func (h *MapInt16ToInt) Get(k int16) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToInt) Inc ¶
func (h *MapInt16ToInt) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToInt) Modify ¶
func (h *MapInt16ToInt) Modify(k int16, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToInt) Put ¶
func (h *MapInt16ToInt) Put(k int16, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt) Remove ¶
func (h *MapInt16ToInt) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToInt) Size ¶
func (h *MapInt16ToInt) Size() int
Size returns the current size of the map.
func (*MapInt16ToInt) Visit ¶
func (h *MapInt16ToInt) Visit(fn func(int16, int))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToInt16 ¶
type MapInt16ToInt16 struct {
// contains filtered or unexported fields
}
MapInt16ToInt16 implements a hash map from int16 to int16.
func NewMapInt16ToInt16 ¶
func NewMapInt16ToInt16(size int) *MapInt16ToInt16
NewMapInt16ToInt16 creates a new MapInt16ToInt16 with at least a size of size.
func (*MapInt16ToInt16) Add ¶
func (h *MapInt16ToInt16) Add(k int16, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt16) Clear ¶
func (h *MapInt16ToInt16) Clear()
Clear removes all elements from the map.
func (*MapInt16ToInt16) Contains ¶
func (h *MapInt16ToInt16) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToInt16) Find ¶
func (h *MapInt16ToInt16) Find(k int16) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToInt16) Get ¶
func (h *MapInt16ToInt16) Get(k int16) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToInt16) Inc ¶
func (h *MapInt16ToInt16) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToInt16) Modify ¶
func (h *MapInt16ToInt16) Modify(k int16, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToInt16) Put ¶
func (h *MapInt16ToInt16) Put(k int16, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt16) Remove ¶
func (h *MapInt16ToInt16) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToInt16) Size ¶
func (h *MapInt16ToInt16) Size() int
Size returns the current size of the map.
func (*MapInt16ToInt16) Visit ¶
func (h *MapInt16ToInt16) Visit(fn func(int16, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToInt32 ¶
type MapInt16ToInt32 struct {
// contains filtered or unexported fields
}
MapInt16ToInt32 implements a hash map from int16 to int32.
func NewMapInt16ToInt32 ¶
func NewMapInt16ToInt32(size int) *MapInt16ToInt32
NewMapInt16ToInt32 creates a new MapInt16ToInt32 with at least a size of size.
func (*MapInt16ToInt32) Add ¶
func (h *MapInt16ToInt32) Add(k int16, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt32) Clear ¶
func (h *MapInt16ToInt32) Clear()
Clear removes all elements from the map.
func (*MapInt16ToInt32) Contains ¶
func (h *MapInt16ToInt32) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToInt32) Find ¶
func (h *MapInt16ToInt32) Find(k int16) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToInt32) Get ¶
func (h *MapInt16ToInt32) Get(k int16) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToInt32) Inc ¶
func (h *MapInt16ToInt32) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToInt32) Modify ¶
func (h *MapInt16ToInt32) Modify(k int16, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToInt32) Put ¶
func (h *MapInt16ToInt32) Put(k int16, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt32) Remove ¶
func (h *MapInt16ToInt32) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToInt32) Size ¶
func (h *MapInt16ToInt32) Size() int
Size returns the current size of the map.
func (*MapInt16ToInt32) Visit ¶
func (h *MapInt16ToInt32) Visit(fn func(int16, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToInt64 ¶
type MapInt16ToInt64 struct {
// contains filtered or unexported fields
}
MapInt16ToInt64 implements a hash map from int16 to int64.
func NewMapInt16ToInt64 ¶
func NewMapInt16ToInt64(size int) *MapInt16ToInt64
NewMapInt16ToInt64 creates a new MapInt16ToInt64 with at least a size of size.
func (*MapInt16ToInt64) Add ¶
func (h *MapInt16ToInt64) Add(k int16, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt64) Clear ¶
func (h *MapInt16ToInt64) Clear()
Clear removes all elements from the map.
func (*MapInt16ToInt64) Contains ¶
func (h *MapInt16ToInt64) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToInt64) Find ¶
func (h *MapInt16ToInt64) Find(k int16) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToInt64) Get ¶
func (h *MapInt16ToInt64) Get(k int16) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToInt64) Inc ¶
func (h *MapInt16ToInt64) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToInt64) Modify ¶
func (h *MapInt16ToInt64) Modify(k int16, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToInt64) Put ¶
func (h *MapInt16ToInt64) Put(k int16, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt64) Remove ¶
func (h *MapInt16ToInt64) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToInt64) Size ¶
func (h *MapInt16ToInt64) Size() int
Size returns the current size of the map.
func (*MapInt16ToInt64) Visit ¶
func (h *MapInt16ToInt64) Visit(fn func(int16, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToInt8 ¶
type MapInt16ToInt8 struct {
// contains filtered or unexported fields
}
MapInt16ToInt8 implements a hash map from int16 to int8.
func NewMapInt16ToInt8 ¶
func NewMapInt16ToInt8(size int) *MapInt16ToInt8
NewMapInt16ToInt8 creates a new MapInt16ToInt8 with at least a size of size.
func (*MapInt16ToInt8) Add ¶
func (h *MapInt16ToInt8) Add(k int16, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt8) Clear ¶
func (h *MapInt16ToInt8) Clear()
Clear removes all elements from the map.
func (*MapInt16ToInt8) Contains ¶
func (h *MapInt16ToInt8) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToInt8) Find ¶
func (h *MapInt16ToInt8) Find(k int16) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToInt8) Get ¶
func (h *MapInt16ToInt8) Get(k int16) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToInt8) Inc ¶
func (h *MapInt16ToInt8) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToInt8) Modify ¶
func (h *MapInt16ToInt8) Modify(k int16, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToInt8) Put ¶
func (h *MapInt16ToInt8) Put(k int16, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToInt8) Remove ¶
func (h *MapInt16ToInt8) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToInt8) Size ¶
func (h *MapInt16ToInt8) Size() int
Size returns the current size of the map.
func (*MapInt16ToInt8) Visit ¶
func (h *MapInt16ToInt8) Visit(fn func(int16, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToUint ¶
type MapInt16ToUint struct {
// contains filtered or unexported fields
}
MapInt16ToUint implements a hash map from int16 to uint.
func NewMapInt16ToUint ¶
func NewMapInt16ToUint(size int) *MapInt16ToUint
NewMapInt16ToUint creates a new MapInt16ToUint with at least a size of size.
func (*MapInt16ToUint) Add ¶
func (h *MapInt16ToUint) Add(k int16, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint) Clear ¶
func (h *MapInt16ToUint) Clear()
Clear removes all elements from the map.
func (*MapInt16ToUint) Contains ¶
func (h *MapInt16ToUint) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToUint) Find ¶
func (h *MapInt16ToUint) Find(k int16) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToUint) Get ¶
func (h *MapInt16ToUint) Get(k int16) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToUint) Inc ¶
func (h *MapInt16ToUint) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToUint) Modify ¶
func (h *MapInt16ToUint) Modify(k int16, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToUint) Put ¶
func (h *MapInt16ToUint) Put(k int16, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint) Remove ¶
func (h *MapInt16ToUint) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToUint) Size ¶
func (h *MapInt16ToUint) Size() int
Size returns the current size of the map.
func (*MapInt16ToUint) Visit ¶
func (h *MapInt16ToUint) Visit(fn func(int16, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToUint16 ¶
type MapInt16ToUint16 struct {
// contains filtered or unexported fields
}
MapInt16ToUint16 implements a hash map from int16 to uint16.
func NewMapInt16ToUint16 ¶
func NewMapInt16ToUint16(size int) *MapInt16ToUint16
NewMapInt16ToUint16 creates a new MapInt16ToUint16 with at least a size of size.
func (*MapInt16ToUint16) Add ¶
func (h *MapInt16ToUint16) Add(k int16, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint16) Clear ¶
func (h *MapInt16ToUint16) Clear()
Clear removes all elements from the map.
func (*MapInt16ToUint16) Contains ¶
func (h *MapInt16ToUint16) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToUint16) Find ¶
func (h *MapInt16ToUint16) Find(k int16) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToUint16) Get ¶
func (h *MapInt16ToUint16) Get(k int16) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToUint16) Inc ¶
func (h *MapInt16ToUint16) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToUint16) Modify ¶
func (h *MapInt16ToUint16) Modify(k int16, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToUint16) Put ¶
func (h *MapInt16ToUint16) Put(k int16, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint16) Remove ¶
func (h *MapInt16ToUint16) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToUint16) Size ¶
func (h *MapInt16ToUint16) Size() int
Size returns the current size of the map.
func (*MapInt16ToUint16) Visit ¶
func (h *MapInt16ToUint16) Visit(fn func(int16, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToUint32 ¶
type MapInt16ToUint32 struct {
// contains filtered or unexported fields
}
MapInt16ToUint32 implements a hash map from int16 to uint32.
func NewMapInt16ToUint32 ¶
func NewMapInt16ToUint32(size int) *MapInt16ToUint32
NewMapInt16ToUint32 creates a new MapInt16ToUint32 with at least a size of size.
func (*MapInt16ToUint32) Add ¶
func (h *MapInt16ToUint32) Add(k int16, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint32) Clear ¶
func (h *MapInt16ToUint32) Clear()
Clear removes all elements from the map.
func (*MapInt16ToUint32) Contains ¶
func (h *MapInt16ToUint32) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToUint32) Find ¶
func (h *MapInt16ToUint32) Find(k int16) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToUint32) Get ¶
func (h *MapInt16ToUint32) Get(k int16) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToUint32) Inc ¶
func (h *MapInt16ToUint32) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToUint32) Modify ¶
func (h *MapInt16ToUint32) Modify(k int16, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToUint32) Put ¶
func (h *MapInt16ToUint32) Put(k int16, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint32) Remove ¶
func (h *MapInt16ToUint32) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToUint32) Size ¶
func (h *MapInt16ToUint32) Size() int
Size returns the current size of the map.
func (*MapInt16ToUint32) Visit ¶
func (h *MapInt16ToUint32) Visit(fn func(int16, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToUint64 ¶
type MapInt16ToUint64 struct {
// contains filtered or unexported fields
}
MapInt16ToUint64 implements a hash map from int16 to uint64.
func NewMapInt16ToUint64 ¶
func NewMapInt16ToUint64(size int) *MapInt16ToUint64
NewMapInt16ToUint64 creates a new MapInt16ToUint64 with at least a size of size.
func (*MapInt16ToUint64) Add ¶
func (h *MapInt16ToUint64) Add(k int16, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint64) Clear ¶
func (h *MapInt16ToUint64) Clear()
Clear removes all elements from the map.
func (*MapInt16ToUint64) Contains ¶
func (h *MapInt16ToUint64) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToUint64) Find ¶
func (h *MapInt16ToUint64) Find(k int16) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToUint64) Get ¶
func (h *MapInt16ToUint64) Get(k int16) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToUint64) Inc ¶
func (h *MapInt16ToUint64) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToUint64) Modify ¶
func (h *MapInt16ToUint64) Modify(k int16, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToUint64) Put ¶
func (h *MapInt16ToUint64) Put(k int16, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint64) Remove ¶
func (h *MapInt16ToUint64) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToUint64) Size ¶
func (h *MapInt16ToUint64) Size() int
Size returns the current size of the map.
func (*MapInt16ToUint64) Visit ¶
func (h *MapInt16ToUint64) Visit(fn func(int16, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt16ToUint8 ¶
type MapInt16ToUint8 struct {
// contains filtered or unexported fields
}
MapInt16ToUint8 implements a hash map from int16 to uint8.
func NewMapInt16ToUint8 ¶
func NewMapInt16ToUint8(size int) *MapInt16ToUint8
NewMapInt16ToUint8 creates a new MapInt16ToUint8 with at least a size of size.
func (*MapInt16ToUint8) Add ¶
func (h *MapInt16ToUint8) Add(k int16, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint8) Clear ¶
func (h *MapInt16ToUint8) Clear()
Clear removes all elements from the map.
func (*MapInt16ToUint8) Contains ¶
func (h *MapInt16ToUint8) Contains(k int16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt16ToUint8) Find ¶
func (h *MapInt16ToUint8) Find(k int16) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt16ToUint8) Get ¶
func (h *MapInt16ToUint8) Get(k int16) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt16ToUint8) Inc ¶
func (h *MapInt16ToUint8) Inc(k int16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt16ToUint8) Modify ¶
func (h *MapInt16ToUint8) Modify(k int16, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt16ToUint8) Put ¶
func (h *MapInt16ToUint8) Put(k int16, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt16ToUint8) Remove ¶
func (h *MapInt16ToUint8) Remove(k int16)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt16ToUint8) Size ¶
func (h *MapInt16ToUint8) Size() int
Size returns the current size of the map.
func (*MapInt16ToUint8) Visit ¶
func (h *MapInt16ToUint8) Visit(fn func(int16, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToInt ¶
type MapInt32ToInt struct {
// contains filtered or unexported fields
}
MapInt32ToInt implements a hash map from int32 to int.
func NewMapInt32ToInt ¶
func NewMapInt32ToInt(size int) *MapInt32ToInt
NewMapInt32ToInt creates a new MapInt32ToInt with at least a size of size.
func (*MapInt32ToInt) Add ¶
func (h *MapInt32ToInt) Add(k int32, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt) Clear ¶
func (h *MapInt32ToInt) Clear()
Clear removes all elements from the map.
func (*MapInt32ToInt) Contains ¶
func (h *MapInt32ToInt) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToInt) Find ¶
func (h *MapInt32ToInt) Find(k int32) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToInt) Get ¶
func (h *MapInt32ToInt) Get(k int32) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToInt) Inc ¶
func (h *MapInt32ToInt) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToInt) Modify ¶
func (h *MapInt32ToInt) Modify(k int32, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToInt) Put ¶
func (h *MapInt32ToInt) Put(k int32, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt) Remove ¶
func (h *MapInt32ToInt) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToInt) Size ¶
func (h *MapInt32ToInt) Size() int
Size returns the current size of the map.
func (*MapInt32ToInt) Visit ¶
func (h *MapInt32ToInt) Visit(fn func(int32, int))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToInt16 ¶
type MapInt32ToInt16 struct {
// contains filtered or unexported fields
}
MapInt32ToInt16 implements a hash map from int32 to int16.
func NewMapInt32ToInt16 ¶
func NewMapInt32ToInt16(size int) *MapInt32ToInt16
NewMapInt32ToInt16 creates a new MapInt32ToInt16 with at least a size of size.
func (*MapInt32ToInt16) Add ¶
func (h *MapInt32ToInt16) Add(k int32, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt16) Clear ¶
func (h *MapInt32ToInt16) Clear()
Clear removes all elements from the map.
func (*MapInt32ToInt16) Contains ¶
func (h *MapInt32ToInt16) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToInt16) Find ¶
func (h *MapInt32ToInt16) Find(k int32) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToInt16) Get ¶
func (h *MapInt32ToInt16) Get(k int32) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToInt16) Inc ¶
func (h *MapInt32ToInt16) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToInt16) Modify ¶
func (h *MapInt32ToInt16) Modify(k int32, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToInt16) Put ¶
func (h *MapInt32ToInt16) Put(k int32, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt16) Remove ¶
func (h *MapInt32ToInt16) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToInt16) Size ¶
func (h *MapInt32ToInt16) Size() int
Size returns the current size of the map.
func (*MapInt32ToInt16) Visit ¶
func (h *MapInt32ToInt16) Visit(fn func(int32, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToInt32 ¶
type MapInt32ToInt32 struct {
// contains filtered or unexported fields
}
MapInt32ToInt32 implements a hash map from int32 to int32.
func NewMapInt32ToInt32 ¶
func NewMapInt32ToInt32(size int) *MapInt32ToInt32
NewMapInt32ToInt32 creates a new MapInt32ToInt32 with at least a size of size.
func (*MapInt32ToInt32) Add ¶
func (h *MapInt32ToInt32) Add(k int32, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt32) Clear ¶
func (h *MapInt32ToInt32) Clear()
Clear removes all elements from the map.
func (*MapInt32ToInt32) Contains ¶
func (h *MapInt32ToInt32) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToInt32) Find ¶
func (h *MapInt32ToInt32) Find(k int32) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToInt32) Get ¶
func (h *MapInt32ToInt32) Get(k int32) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToInt32) Inc ¶
func (h *MapInt32ToInt32) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToInt32) Modify ¶
func (h *MapInt32ToInt32) Modify(k int32, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToInt32) Put ¶
func (h *MapInt32ToInt32) Put(k int32, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt32) Remove ¶
func (h *MapInt32ToInt32) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToInt32) Size ¶
func (h *MapInt32ToInt32) Size() int
Size returns the current size of the map.
func (*MapInt32ToInt32) Visit ¶
func (h *MapInt32ToInt32) Visit(fn func(int32, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToInt64 ¶
type MapInt32ToInt64 struct {
// contains filtered or unexported fields
}
MapInt32ToInt64 implements a hash map from int32 to int64.
func NewMapInt32ToInt64 ¶
func NewMapInt32ToInt64(size int) *MapInt32ToInt64
NewMapInt32ToInt64 creates a new MapInt32ToInt64 with at least a size of size.
func (*MapInt32ToInt64) Add ¶
func (h *MapInt32ToInt64) Add(k int32, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt64) Clear ¶
func (h *MapInt32ToInt64) Clear()
Clear removes all elements from the map.
func (*MapInt32ToInt64) Contains ¶
func (h *MapInt32ToInt64) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToInt64) Find ¶
func (h *MapInt32ToInt64) Find(k int32) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToInt64) Get ¶
func (h *MapInt32ToInt64) Get(k int32) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToInt64) Inc ¶
func (h *MapInt32ToInt64) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToInt64) Modify ¶
func (h *MapInt32ToInt64) Modify(k int32, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToInt64) Put ¶
func (h *MapInt32ToInt64) Put(k int32, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt64) Remove ¶
func (h *MapInt32ToInt64) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToInt64) Size ¶
func (h *MapInt32ToInt64) Size() int
Size returns the current size of the map.
func (*MapInt32ToInt64) Visit ¶
func (h *MapInt32ToInt64) Visit(fn func(int32, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToInt8 ¶
type MapInt32ToInt8 struct {
// contains filtered or unexported fields
}
MapInt32ToInt8 implements a hash map from int32 to int8.
func NewMapInt32ToInt8 ¶
func NewMapInt32ToInt8(size int) *MapInt32ToInt8
NewMapInt32ToInt8 creates a new MapInt32ToInt8 with at least a size of size.
func (*MapInt32ToInt8) Add ¶
func (h *MapInt32ToInt8) Add(k int32, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt8) Clear ¶
func (h *MapInt32ToInt8) Clear()
Clear removes all elements from the map.
func (*MapInt32ToInt8) Contains ¶
func (h *MapInt32ToInt8) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToInt8) Find ¶
func (h *MapInt32ToInt8) Find(k int32) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToInt8) Get ¶
func (h *MapInt32ToInt8) Get(k int32) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToInt8) Inc ¶
func (h *MapInt32ToInt8) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToInt8) Modify ¶
func (h *MapInt32ToInt8) Modify(k int32, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToInt8) Put ¶
func (h *MapInt32ToInt8) Put(k int32, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToInt8) Remove ¶
func (h *MapInt32ToInt8) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToInt8) Size ¶
func (h *MapInt32ToInt8) Size() int
Size returns the current size of the map.
func (*MapInt32ToInt8) Visit ¶
func (h *MapInt32ToInt8) Visit(fn func(int32, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToUint ¶
type MapInt32ToUint struct {
// contains filtered or unexported fields
}
MapInt32ToUint implements a hash map from int32 to uint.
func NewMapInt32ToUint ¶
func NewMapInt32ToUint(size int) *MapInt32ToUint
NewMapInt32ToUint creates a new MapInt32ToUint with at least a size of size.
func (*MapInt32ToUint) Add ¶
func (h *MapInt32ToUint) Add(k int32, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint) Clear ¶
func (h *MapInt32ToUint) Clear()
Clear removes all elements from the map.
func (*MapInt32ToUint) Contains ¶
func (h *MapInt32ToUint) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToUint) Find ¶
func (h *MapInt32ToUint) Find(k int32) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToUint) Get ¶
func (h *MapInt32ToUint) Get(k int32) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToUint) Inc ¶
func (h *MapInt32ToUint) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToUint) Modify ¶
func (h *MapInt32ToUint) Modify(k int32, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToUint) Put ¶
func (h *MapInt32ToUint) Put(k int32, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint) Remove ¶
func (h *MapInt32ToUint) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToUint) Size ¶
func (h *MapInt32ToUint) Size() int
Size returns the current size of the map.
func (*MapInt32ToUint) Visit ¶
func (h *MapInt32ToUint) Visit(fn func(int32, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToUint16 ¶
type MapInt32ToUint16 struct {
// contains filtered or unexported fields
}
MapInt32ToUint16 implements a hash map from int32 to uint16.
func NewMapInt32ToUint16 ¶
func NewMapInt32ToUint16(size int) *MapInt32ToUint16
NewMapInt32ToUint16 creates a new MapInt32ToUint16 with at least a size of size.
func (*MapInt32ToUint16) Add ¶
func (h *MapInt32ToUint16) Add(k int32, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint16) Clear ¶
func (h *MapInt32ToUint16) Clear()
Clear removes all elements from the map.
func (*MapInt32ToUint16) Contains ¶
func (h *MapInt32ToUint16) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToUint16) Find ¶
func (h *MapInt32ToUint16) Find(k int32) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToUint16) Get ¶
func (h *MapInt32ToUint16) Get(k int32) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToUint16) Inc ¶
func (h *MapInt32ToUint16) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToUint16) Modify ¶
func (h *MapInt32ToUint16) Modify(k int32, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToUint16) Put ¶
func (h *MapInt32ToUint16) Put(k int32, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint16) Remove ¶
func (h *MapInt32ToUint16) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToUint16) Size ¶
func (h *MapInt32ToUint16) Size() int
Size returns the current size of the map.
func (*MapInt32ToUint16) Visit ¶
func (h *MapInt32ToUint16) Visit(fn func(int32, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToUint32 ¶
type MapInt32ToUint32 struct {
// contains filtered or unexported fields
}
MapInt32ToUint32 implements a hash map from int32 to uint32.
func NewMapInt32ToUint32 ¶
func NewMapInt32ToUint32(size int) *MapInt32ToUint32
NewMapInt32ToUint32 creates a new MapInt32ToUint32 with at least a size of size.
func (*MapInt32ToUint32) Add ¶
func (h *MapInt32ToUint32) Add(k int32, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint32) Clear ¶
func (h *MapInt32ToUint32) Clear()
Clear removes all elements from the map.
func (*MapInt32ToUint32) Contains ¶
func (h *MapInt32ToUint32) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToUint32) Find ¶
func (h *MapInt32ToUint32) Find(k int32) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToUint32) Get ¶
func (h *MapInt32ToUint32) Get(k int32) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToUint32) Inc ¶
func (h *MapInt32ToUint32) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToUint32) Modify ¶
func (h *MapInt32ToUint32) Modify(k int32, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToUint32) Put ¶
func (h *MapInt32ToUint32) Put(k int32, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint32) Remove ¶
func (h *MapInt32ToUint32) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToUint32) Size ¶
func (h *MapInt32ToUint32) Size() int
Size returns the current size of the map.
func (*MapInt32ToUint32) Visit ¶
func (h *MapInt32ToUint32) Visit(fn func(int32, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToUint64 ¶
type MapInt32ToUint64 struct {
// contains filtered or unexported fields
}
MapInt32ToUint64 implements a hash map from int32 to uint64.
func NewMapInt32ToUint64 ¶
func NewMapInt32ToUint64(size int) *MapInt32ToUint64
NewMapInt32ToUint64 creates a new MapInt32ToUint64 with at least a size of size.
func (*MapInt32ToUint64) Add ¶
func (h *MapInt32ToUint64) Add(k int32, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint64) Clear ¶
func (h *MapInt32ToUint64) Clear()
Clear removes all elements from the map.
func (*MapInt32ToUint64) Contains ¶
func (h *MapInt32ToUint64) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToUint64) Find ¶
func (h *MapInt32ToUint64) Find(k int32) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToUint64) Get ¶
func (h *MapInt32ToUint64) Get(k int32) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToUint64) Inc ¶
func (h *MapInt32ToUint64) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToUint64) Modify ¶
func (h *MapInt32ToUint64) Modify(k int32, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToUint64) Put ¶
func (h *MapInt32ToUint64) Put(k int32, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint64) Remove ¶
func (h *MapInt32ToUint64) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToUint64) Size ¶
func (h *MapInt32ToUint64) Size() int
Size returns the current size of the map.
func (*MapInt32ToUint64) Visit ¶
func (h *MapInt32ToUint64) Visit(fn func(int32, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt32ToUint8 ¶
type MapInt32ToUint8 struct {
// contains filtered or unexported fields
}
MapInt32ToUint8 implements a hash map from int32 to uint8.
func NewMapInt32ToUint8 ¶
func NewMapInt32ToUint8(size int) *MapInt32ToUint8
NewMapInt32ToUint8 creates a new MapInt32ToUint8 with at least a size of size.
func (*MapInt32ToUint8) Add ¶
func (h *MapInt32ToUint8) Add(k int32, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint8) Clear ¶
func (h *MapInt32ToUint8) Clear()
Clear removes all elements from the map.
func (*MapInt32ToUint8) Contains ¶
func (h *MapInt32ToUint8) Contains(k int32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt32ToUint8) Find ¶
func (h *MapInt32ToUint8) Find(k int32) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt32ToUint8) Get ¶
func (h *MapInt32ToUint8) Get(k int32) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt32ToUint8) Inc ¶
func (h *MapInt32ToUint8) Inc(k int32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt32ToUint8) Modify ¶
func (h *MapInt32ToUint8) Modify(k int32, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt32ToUint8) Put ¶
func (h *MapInt32ToUint8) Put(k int32, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt32ToUint8) Remove ¶
func (h *MapInt32ToUint8) Remove(k int32)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt32ToUint8) Size ¶
func (h *MapInt32ToUint8) Size() int
Size returns the current size of the map.
func (*MapInt32ToUint8) Visit ¶
func (h *MapInt32ToUint8) Visit(fn func(int32, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToInt ¶
type MapInt64ToInt struct {
// contains filtered or unexported fields
}
MapInt64ToInt implements a hash map from int64 to int.
func NewMapInt64ToInt ¶
func NewMapInt64ToInt(size int) *MapInt64ToInt
NewMapInt64ToInt creates a new MapInt64ToInt with at least a size of size.
func (*MapInt64ToInt) Add ¶
func (h *MapInt64ToInt) Add(k int64, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt) Clear ¶
func (h *MapInt64ToInt) Clear()
Clear removes all elements from the map.
func (*MapInt64ToInt) Contains ¶
func (h *MapInt64ToInt) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToInt) Find ¶
func (h *MapInt64ToInt) Find(k int64) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToInt) Get ¶
func (h *MapInt64ToInt) Get(k int64) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToInt) Inc ¶
func (h *MapInt64ToInt) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToInt) Modify ¶
func (h *MapInt64ToInt) Modify(k int64, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToInt) Put ¶
func (h *MapInt64ToInt) Put(k int64, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt) Remove ¶
func (h *MapInt64ToInt) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToInt) Size ¶
func (h *MapInt64ToInt) Size() int
Size returns the current size of the map.
func (*MapInt64ToInt) Visit ¶
func (h *MapInt64ToInt) Visit(fn func(int64, int))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToInt16 ¶
type MapInt64ToInt16 struct {
// contains filtered or unexported fields
}
MapInt64ToInt16 implements a hash map from int64 to int16.
func NewMapInt64ToInt16 ¶
func NewMapInt64ToInt16(size int) *MapInt64ToInt16
NewMapInt64ToInt16 creates a new MapInt64ToInt16 with at least a size of size.
func (*MapInt64ToInt16) Add ¶
func (h *MapInt64ToInt16) Add(k int64, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt16) Clear ¶
func (h *MapInt64ToInt16) Clear()
Clear removes all elements from the map.
func (*MapInt64ToInt16) Contains ¶
func (h *MapInt64ToInt16) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToInt16) Find ¶
func (h *MapInt64ToInt16) Find(k int64) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToInt16) Get ¶
func (h *MapInt64ToInt16) Get(k int64) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToInt16) Inc ¶
func (h *MapInt64ToInt16) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToInt16) Modify ¶
func (h *MapInt64ToInt16) Modify(k int64, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToInt16) Put ¶
func (h *MapInt64ToInt16) Put(k int64, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt16) Remove ¶
func (h *MapInt64ToInt16) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToInt16) Size ¶
func (h *MapInt64ToInt16) Size() int
Size returns the current size of the map.
func (*MapInt64ToInt16) Visit ¶
func (h *MapInt64ToInt16) Visit(fn func(int64, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToInt32 ¶
type MapInt64ToInt32 struct {
// contains filtered or unexported fields
}
MapInt64ToInt32 implements a hash map from int64 to int32.
func NewMapInt64ToInt32 ¶
func NewMapInt64ToInt32(size int) *MapInt64ToInt32
NewMapInt64ToInt32 creates a new MapInt64ToInt32 with at least a size of size.
func (*MapInt64ToInt32) Add ¶
func (h *MapInt64ToInt32) Add(k int64, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt32) Clear ¶
func (h *MapInt64ToInt32) Clear()
Clear removes all elements from the map.
func (*MapInt64ToInt32) Contains ¶
func (h *MapInt64ToInt32) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToInt32) Find ¶
func (h *MapInt64ToInt32) Find(k int64) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToInt32) Get ¶
func (h *MapInt64ToInt32) Get(k int64) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToInt32) Inc ¶
func (h *MapInt64ToInt32) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToInt32) Modify ¶
func (h *MapInt64ToInt32) Modify(k int64, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToInt32) Put ¶
func (h *MapInt64ToInt32) Put(k int64, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt32) Remove ¶
func (h *MapInt64ToInt32) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToInt32) Size ¶
func (h *MapInt64ToInt32) Size() int
Size returns the current size of the map.
func (*MapInt64ToInt32) Visit ¶
func (h *MapInt64ToInt32) Visit(fn func(int64, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToInt64 ¶
type MapInt64ToInt64 struct {
// contains filtered or unexported fields
}
MapInt64ToInt64 implements a hash map from int64 to int64.
func NewMapInt64ToInt64 ¶
func NewMapInt64ToInt64(size int) *MapInt64ToInt64
NewMapInt64ToInt64 creates a new MapInt64ToInt64 with at least a size of size.
func (*MapInt64ToInt64) Add ¶
func (h *MapInt64ToInt64) Add(k int64, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt64) Clear ¶
func (h *MapInt64ToInt64) Clear()
Clear removes all elements from the map.
func (*MapInt64ToInt64) Contains ¶
func (h *MapInt64ToInt64) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToInt64) Find ¶
func (h *MapInt64ToInt64) Find(k int64) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToInt64) Get ¶
func (h *MapInt64ToInt64) Get(k int64) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToInt64) Inc ¶
func (h *MapInt64ToInt64) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToInt64) Modify ¶
func (h *MapInt64ToInt64) Modify(k int64, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToInt64) Put ¶
func (h *MapInt64ToInt64) Put(k int64, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt64) Remove ¶
func (h *MapInt64ToInt64) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToInt64) Size ¶
func (h *MapInt64ToInt64) Size() int
Size returns the current size of the map.
func (*MapInt64ToInt64) Visit ¶
func (h *MapInt64ToInt64) Visit(fn func(int64, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToInt8 ¶
type MapInt64ToInt8 struct {
// contains filtered or unexported fields
}
MapInt64ToInt8 implements a hash map from int64 to int8.
func NewMapInt64ToInt8 ¶
func NewMapInt64ToInt8(size int) *MapInt64ToInt8
NewMapInt64ToInt8 creates a new MapInt64ToInt8 with at least a size of size.
func (*MapInt64ToInt8) Add ¶
func (h *MapInt64ToInt8) Add(k int64, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt8) Clear ¶
func (h *MapInt64ToInt8) Clear()
Clear removes all elements from the map.
func (*MapInt64ToInt8) Contains ¶
func (h *MapInt64ToInt8) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToInt8) Find ¶
func (h *MapInt64ToInt8) Find(k int64) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToInt8) Get ¶
func (h *MapInt64ToInt8) Get(k int64) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToInt8) Inc ¶
func (h *MapInt64ToInt8) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToInt8) Modify ¶
func (h *MapInt64ToInt8) Modify(k int64, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToInt8) Put ¶
func (h *MapInt64ToInt8) Put(k int64, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToInt8) Remove ¶
func (h *MapInt64ToInt8) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToInt8) Size ¶
func (h *MapInt64ToInt8) Size() int
Size returns the current size of the map.
func (*MapInt64ToInt8) Visit ¶
func (h *MapInt64ToInt8) Visit(fn func(int64, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToUint ¶
type MapInt64ToUint struct {
// contains filtered or unexported fields
}
MapInt64ToUint implements a hash map from int64 to uint.
func NewMapInt64ToUint ¶
func NewMapInt64ToUint(size int) *MapInt64ToUint
NewMapInt64ToUint creates a new MapInt64ToUint with at least a size of size.
func (*MapInt64ToUint) Add ¶
func (h *MapInt64ToUint) Add(k int64, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint) Clear ¶
func (h *MapInt64ToUint) Clear()
Clear removes all elements from the map.
func (*MapInt64ToUint) Contains ¶
func (h *MapInt64ToUint) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToUint) Find ¶
func (h *MapInt64ToUint) Find(k int64) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToUint) Get ¶
func (h *MapInt64ToUint) Get(k int64) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToUint) Inc ¶
func (h *MapInt64ToUint) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToUint) Modify ¶
func (h *MapInt64ToUint) Modify(k int64, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToUint) Put ¶
func (h *MapInt64ToUint) Put(k int64, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint) Remove ¶
func (h *MapInt64ToUint) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToUint) Size ¶
func (h *MapInt64ToUint) Size() int
Size returns the current size of the map.
func (*MapInt64ToUint) Visit ¶
func (h *MapInt64ToUint) Visit(fn func(int64, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToUint16 ¶
type MapInt64ToUint16 struct {
// contains filtered or unexported fields
}
MapInt64ToUint16 implements a hash map from int64 to uint16.
func NewMapInt64ToUint16 ¶
func NewMapInt64ToUint16(size int) *MapInt64ToUint16
NewMapInt64ToUint16 creates a new MapInt64ToUint16 with at least a size of size.
func (*MapInt64ToUint16) Add ¶
func (h *MapInt64ToUint16) Add(k int64, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint16) Clear ¶
func (h *MapInt64ToUint16) Clear()
Clear removes all elements from the map.
func (*MapInt64ToUint16) Contains ¶
func (h *MapInt64ToUint16) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToUint16) Find ¶
func (h *MapInt64ToUint16) Find(k int64) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToUint16) Get ¶
func (h *MapInt64ToUint16) Get(k int64) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToUint16) Inc ¶
func (h *MapInt64ToUint16) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToUint16) Modify ¶
func (h *MapInt64ToUint16) Modify(k int64, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToUint16) Put ¶
func (h *MapInt64ToUint16) Put(k int64, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint16) Remove ¶
func (h *MapInt64ToUint16) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToUint16) Size ¶
func (h *MapInt64ToUint16) Size() int
Size returns the current size of the map.
func (*MapInt64ToUint16) Visit ¶
func (h *MapInt64ToUint16) Visit(fn func(int64, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToUint32 ¶
type MapInt64ToUint32 struct {
// contains filtered or unexported fields
}
MapInt64ToUint32 implements a hash map from int64 to uint32.
func NewMapInt64ToUint32 ¶
func NewMapInt64ToUint32(size int) *MapInt64ToUint32
NewMapInt64ToUint32 creates a new MapInt64ToUint32 with at least a size of size.
func (*MapInt64ToUint32) Add ¶
func (h *MapInt64ToUint32) Add(k int64, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint32) Clear ¶
func (h *MapInt64ToUint32) Clear()
Clear removes all elements from the map.
func (*MapInt64ToUint32) Contains ¶
func (h *MapInt64ToUint32) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToUint32) Find ¶
func (h *MapInt64ToUint32) Find(k int64) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToUint32) Get ¶
func (h *MapInt64ToUint32) Get(k int64) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToUint32) Inc ¶
func (h *MapInt64ToUint32) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToUint32) Modify ¶
func (h *MapInt64ToUint32) Modify(k int64, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToUint32) Put ¶
func (h *MapInt64ToUint32) Put(k int64, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint32) Remove ¶
func (h *MapInt64ToUint32) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToUint32) Size ¶
func (h *MapInt64ToUint32) Size() int
Size returns the current size of the map.
func (*MapInt64ToUint32) Visit ¶
func (h *MapInt64ToUint32) Visit(fn func(int64, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToUint64 ¶
type MapInt64ToUint64 struct {
// contains filtered or unexported fields
}
MapInt64ToUint64 implements a hash map from int64 to uint64.
func NewMapInt64ToUint64 ¶
func NewMapInt64ToUint64(size int) *MapInt64ToUint64
NewMapInt64ToUint64 creates a new MapInt64ToUint64 with at least a size of size.
func (*MapInt64ToUint64) Add ¶
func (h *MapInt64ToUint64) Add(k int64, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint64) Clear ¶
func (h *MapInt64ToUint64) Clear()
Clear removes all elements from the map.
func (*MapInt64ToUint64) Contains ¶
func (h *MapInt64ToUint64) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToUint64) Find ¶
func (h *MapInt64ToUint64) Find(k int64) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToUint64) Get ¶
func (h *MapInt64ToUint64) Get(k int64) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToUint64) Inc ¶
func (h *MapInt64ToUint64) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToUint64) Modify ¶
func (h *MapInt64ToUint64) Modify(k int64, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToUint64) Put ¶
func (h *MapInt64ToUint64) Put(k int64, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint64) Remove ¶
func (h *MapInt64ToUint64) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToUint64) Size ¶
func (h *MapInt64ToUint64) Size() int
Size returns the current size of the map.
func (*MapInt64ToUint64) Visit ¶
func (h *MapInt64ToUint64) Visit(fn func(int64, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt64ToUint8 ¶
type MapInt64ToUint8 struct {
// contains filtered or unexported fields
}
MapInt64ToUint8 implements a hash map from int64 to uint8.
func NewMapInt64ToUint8 ¶
func NewMapInt64ToUint8(size int) *MapInt64ToUint8
NewMapInt64ToUint8 creates a new MapInt64ToUint8 with at least a size of size.
func (*MapInt64ToUint8) Add ¶
func (h *MapInt64ToUint8) Add(k int64, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint8) Clear ¶
func (h *MapInt64ToUint8) Clear()
Clear removes all elements from the map.
func (*MapInt64ToUint8) Contains ¶
func (h *MapInt64ToUint8) Contains(k int64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt64ToUint8) Find ¶
func (h *MapInt64ToUint8) Find(k int64) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt64ToUint8) Get ¶
func (h *MapInt64ToUint8) Get(k int64) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt64ToUint8) Inc ¶
func (h *MapInt64ToUint8) Inc(k int64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt64ToUint8) Modify ¶
func (h *MapInt64ToUint8) Modify(k int64, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt64ToUint8) Put ¶
func (h *MapInt64ToUint8) Put(k int64, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt64ToUint8) Remove ¶
func (h *MapInt64ToUint8) Remove(k int64)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt64ToUint8) Size ¶
func (h *MapInt64ToUint8) Size() int
Size returns the current size of the map.
func (*MapInt64ToUint8) Visit ¶
func (h *MapInt64ToUint8) Visit(fn func(int64, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToInt ¶
type MapInt8ToInt struct {
// contains filtered or unexported fields
}
MapInt8ToInt implements a hash map from int8 to int.
func NewMapInt8ToInt ¶
func NewMapInt8ToInt(size int) *MapInt8ToInt
NewMapInt8ToInt creates a new MapInt8ToInt with at least a size of size.
func (*MapInt8ToInt) Add ¶
func (h *MapInt8ToInt) Add(k int8, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt) Clear ¶
func (h *MapInt8ToInt) Clear()
Clear removes all elements from the map.
func (*MapInt8ToInt) Contains ¶
func (h *MapInt8ToInt) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToInt) Find ¶
func (h *MapInt8ToInt) Find(k int8) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToInt) Get ¶
func (h *MapInt8ToInt) Get(k int8) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToInt) Inc ¶
func (h *MapInt8ToInt) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToInt) Modify ¶
func (h *MapInt8ToInt) Modify(k int8, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToInt) Put ¶
func (h *MapInt8ToInt) Put(k int8, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt) Remove ¶
func (h *MapInt8ToInt) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToInt) Size ¶
func (h *MapInt8ToInt) Size() int
Size returns the current size of the map.
func (*MapInt8ToInt) Visit ¶
func (h *MapInt8ToInt) Visit(fn func(int8, int))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToInt16 ¶
type MapInt8ToInt16 struct {
// contains filtered or unexported fields
}
MapInt8ToInt16 implements a hash map from int8 to int16.
func NewMapInt8ToInt16 ¶
func NewMapInt8ToInt16(size int) *MapInt8ToInt16
NewMapInt8ToInt16 creates a new MapInt8ToInt16 with at least a size of size.
func (*MapInt8ToInt16) Add ¶
func (h *MapInt8ToInt16) Add(k int8, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt16) Clear ¶
func (h *MapInt8ToInt16) Clear()
Clear removes all elements from the map.
func (*MapInt8ToInt16) Contains ¶
func (h *MapInt8ToInt16) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToInt16) Find ¶
func (h *MapInt8ToInt16) Find(k int8) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToInt16) Get ¶
func (h *MapInt8ToInt16) Get(k int8) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToInt16) Inc ¶
func (h *MapInt8ToInt16) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToInt16) Modify ¶
func (h *MapInt8ToInt16) Modify(k int8, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToInt16) Put ¶
func (h *MapInt8ToInt16) Put(k int8, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt16) Remove ¶
func (h *MapInt8ToInt16) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToInt16) Size ¶
func (h *MapInt8ToInt16) Size() int
Size returns the current size of the map.
func (*MapInt8ToInt16) Visit ¶
func (h *MapInt8ToInt16) Visit(fn func(int8, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToInt32 ¶
type MapInt8ToInt32 struct {
// contains filtered or unexported fields
}
MapInt8ToInt32 implements a hash map from int8 to int32.
func NewMapInt8ToInt32 ¶
func NewMapInt8ToInt32(size int) *MapInt8ToInt32
NewMapInt8ToInt32 creates a new MapInt8ToInt32 with at least a size of size.
func (*MapInt8ToInt32) Add ¶
func (h *MapInt8ToInt32) Add(k int8, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt32) Clear ¶
func (h *MapInt8ToInt32) Clear()
Clear removes all elements from the map.
func (*MapInt8ToInt32) Contains ¶
func (h *MapInt8ToInt32) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToInt32) Find ¶
func (h *MapInt8ToInt32) Find(k int8) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToInt32) Get ¶
func (h *MapInt8ToInt32) Get(k int8) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToInt32) Inc ¶
func (h *MapInt8ToInt32) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToInt32) Modify ¶
func (h *MapInt8ToInt32) Modify(k int8, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToInt32) Put ¶
func (h *MapInt8ToInt32) Put(k int8, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt32) Remove ¶
func (h *MapInt8ToInt32) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToInt32) Size ¶
func (h *MapInt8ToInt32) Size() int
Size returns the current size of the map.
func (*MapInt8ToInt32) Visit ¶
func (h *MapInt8ToInt32) Visit(fn func(int8, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToInt64 ¶
type MapInt8ToInt64 struct {
// contains filtered or unexported fields
}
MapInt8ToInt64 implements a hash map from int8 to int64.
func NewMapInt8ToInt64 ¶
func NewMapInt8ToInt64(size int) *MapInt8ToInt64
NewMapInt8ToInt64 creates a new MapInt8ToInt64 with at least a size of size.
func (*MapInt8ToInt64) Add ¶
func (h *MapInt8ToInt64) Add(k int8, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt64) Clear ¶
func (h *MapInt8ToInt64) Clear()
Clear removes all elements from the map.
func (*MapInt8ToInt64) Contains ¶
func (h *MapInt8ToInt64) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToInt64) Find ¶
func (h *MapInt8ToInt64) Find(k int8) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToInt64) Get ¶
func (h *MapInt8ToInt64) Get(k int8) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToInt64) Inc ¶
func (h *MapInt8ToInt64) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToInt64) Modify ¶
func (h *MapInt8ToInt64) Modify(k int8, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToInt64) Put ¶
func (h *MapInt8ToInt64) Put(k int8, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt64) Remove ¶
func (h *MapInt8ToInt64) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToInt64) Size ¶
func (h *MapInt8ToInt64) Size() int
Size returns the current size of the map.
func (*MapInt8ToInt64) Visit ¶
func (h *MapInt8ToInt64) Visit(fn func(int8, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToInt8 ¶
type MapInt8ToInt8 struct {
// contains filtered or unexported fields
}
MapInt8ToInt8 implements a hash map from int8 to int8.
func NewMapInt8ToInt8 ¶
func NewMapInt8ToInt8(size int) *MapInt8ToInt8
NewMapInt8ToInt8 creates a new MapInt8ToInt8 with at least a size of size.
func (*MapInt8ToInt8) Add ¶
func (h *MapInt8ToInt8) Add(k int8, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt8) Clear ¶
func (h *MapInt8ToInt8) Clear()
Clear removes all elements from the map.
func (*MapInt8ToInt8) Contains ¶
func (h *MapInt8ToInt8) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToInt8) Find ¶
func (h *MapInt8ToInt8) Find(k int8) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToInt8) Get ¶
func (h *MapInt8ToInt8) Get(k int8) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToInt8) Inc ¶
func (h *MapInt8ToInt8) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToInt8) Modify ¶
func (h *MapInt8ToInt8) Modify(k int8, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToInt8) Put ¶
func (h *MapInt8ToInt8) Put(k int8, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToInt8) Remove ¶
func (h *MapInt8ToInt8) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToInt8) Size ¶
func (h *MapInt8ToInt8) Size() int
Size returns the current size of the map.
func (*MapInt8ToInt8) Visit ¶
func (h *MapInt8ToInt8) Visit(fn func(int8, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToUint ¶
type MapInt8ToUint struct {
// contains filtered or unexported fields
}
MapInt8ToUint implements a hash map from int8 to uint.
func NewMapInt8ToUint ¶
func NewMapInt8ToUint(size int) *MapInt8ToUint
NewMapInt8ToUint creates a new MapInt8ToUint with at least a size of size.
func (*MapInt8ToUint) Add ¶
func (h *MapInt8ToUint) Add(k int8, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint) Clear ¶
func (h *MapInt8ToUint) Clear()
Clear removes all elements from the map.
func (*MapInt8ToUint) Contains ¶
func (h *MapInt8ToUint) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToUint) Find ¶
func (h *MapInt8ToUint) Find(k int8) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToUint) Get ¶
func (h *MapInt8ToUint) Get(k int8) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToUint) Inc ¶
func (h *MapInt8ToUint) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToUint) Modify ¶
func (h *MapInt8ToUint) Modify(k int8, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToUint) Put ¶
func (h *MapInt8ToUint) Put(k int8, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint) Remove ¶
func (h *MapInt8ToUint) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToUint) Size ¶
func (h *MapInt8ToUint) Size() int
Size returns the current size of the map.
func (*MapInt8ToUint) Visit ¶
func (h *MapInt8ToUint) Visit(fn func(int8, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToUint16 ¶
type MapInt8ToUint16 struct {
// contains filtered or unexported fields
}
MapInt8ToUint16 implements a hash map from int8 to uint16.
func NewMapInt8ToUint16 ¶
func NewMapInt8ToUint16(size int) *MapInt8ToUint16
NewMapInt8ToUint16 creates a new MapInt8ToUint16 with at least a size of size.
func (*MapInt8ToUint16) Add ¶
func (h *MapInt8ToUint16) Add(k int8, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint16) Clear ¶
func (h *MapInt8ToUint16) Clear()
Clear removes all elements from the map.
func (*MapInt8ToUint16) Contains ¶
func (h *MapInt8ToUint16) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToUint16) Find ¶
func (h *MapInt8ToUint16) Find(k int8) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToUint16) Get ¶
func (h *MapInt8ToUint16) Get(k int8) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToUint16) Inc ¶
func (h *MapInt8ToUint16) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToUint16) Modify ¶
func (h *MapInt8ToUint16) Modify(k int8, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToUint16) Put ¶
func (h *MapInt8ToUint16) Put(k int8, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint16) Remove ¶
func (h *MapInt8ToUint16) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToUint16) Size ¶
func (h *MapInt8ToUint16) Size() int
Size returns the current size of the map.
func (*MapInt8ToUint16) Visit ¶
func (h *MapInt8ToUint16) Visit(fn func(int8, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToUint32 ¶
type MapInt8ToUint32 struct {
// contains filtered or unexported fields
}
MapInt8ToUint32 implements a hash map from int8 to uint32.
func NewMapInt8ToUint32 ¶
func NewMapInt8ToUint32(size int) *MapInt8ToUint32
NewMapInt8ToUint32 creates a new MapInt8ToUint32 with at least a size of size.
func (*MapInt8ToUint32) Add ¶
func (h *MapInt8ToUint32) Add(k int8, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint32) Clear ¶
func (h *MapInt8ToUint32) Clear()
Clear removes all elements from the map.
func (*MapInt8ToUint32) Contains ¶
func (h *MapInt8ToUint32) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToUint32) Find ¶
func (h *MapInt8ToUint32) Find(k int8) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToUint32) Get ¶
func (h *MapInt8ToUint32) Get(k int8) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToUint32) Inc ¶
func (h *MapInt8ToUint32) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToUint32) Modify ¶
func (h *MapInt8ToUint32) Modify(k int8, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToUint32) Put ¶
func (h *MapInt8ToUint32) Put(k int8, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint32) Remove ¶
func (h *MapInt8ToUint32) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToUint32) Size ¶
func (h *MapInt8ToUint32) Size() int
Size returns the current size of the map.
func (*MapInt8ToUint32) Visit ¶
func (h *MapInt8ToUint32) Visit(fn func(int8, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToUint64 ¶
type MapInt8ToUint64 struct {
// contains filtered or unexported fields
}
MapInt8ToUint64 implements a hash map from int8 to uint64.
func NewMapInt8ToUint64 ¶
func NewMapInt8ToUint64(size int) *MapInt8ToUint64
NewMapInt8ToUint64 creates a new MapInt8ToUint64 with at least a size of size.
func (*MapInt8ToUint64) Add ¶
func (h *MapInt8ToUint64) Add(k int8, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint64) Clear ¶
func (h *MapInt8ToUint64) Clear()
Clear removes all elements from the map.
func (*MapInt8ToUint64) Contains ¶
func (h *MapInt8ToUint64) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToUint64) Find ¶
func (h *MapInt8ToUint64) Find(k int8) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToUint64) Get ¶
func (h *MapInt8ToUint64) Get(k int8) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToUint64) Inc ¶
func (h *MapInt8ToUint64) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToUint64) Modify ¶
func (h *MapInt8ToUint64) Modify(k int8, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToUint64) Put ¶
func (h *MapInt8ToUint64) Put(k int8, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint64) Remove ¶
func (h *MapInt8ToUint64) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToUint64) Size ¶
func (h *MapInt8ToUint64) Size() int
Size returns the current size of the map.
func (*MapInt8ToUint64) Visit ¶
func (h *MapInt8ToUint64) Visit(fn func(int8, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapInt8ToUint8 ¶
type MapInt8ToUint8 struct {
// contains filtered or unexported fields
}
MapInt8ToUint8 implements a hash map from int8 to uint8.
func NewMapInt8ToUint8 ¶
func NewMapInt8ToUint8(size int) *MapInt8ToUint8
NewMapInt8ToUint8 creates a new MapInt8ToUint8 with at least a size of size.
func (*MapInt8ToUint8) Add ¶
func (h *MapInt8ToUint8) Add(k int8, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint8) Clear ¶
func (h *MapInt8ToUint8) Clear()
Clear removes all elements from the map.
func (*MapInt8ToUint8) Contains ¶
func (h *MapInt8ToUint8) Contains(k int8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapInt8ToUint8) Find ¶
func (h *MapInt8ToUint8) Find(k int8) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapInt8ToUint8) Get ¶
func (h *MapInt8ToUint8) Get(k int8) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapInt8ToUint8) Inc ¶
func (h *MapInt8ToUint8) Inc(k int8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapInt8ToUint8) Modify ¶
func (h *MapInt8ToUint8) Modify(k int8, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapInt8ToUint8) Put ¶
func (h *MapInt8ToUint8) Put(k int8, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapInt8ToUint8) Remove ¶
func (h *MapInt8ToUint8) Remove(k int8)
Remove removes the key/value pair associated with key k from this map..
func (*MapInt8ToUint8) Size ¶
func (h *MapInt8ToUint8) Size() int
Size returns the current size of the map.
func (*MapInt8ToUint8) Visit ¶
func (h *MapInt8ToUint8) Visit(fn func(int8, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToInt ¶
type MapIntToInt struct {
// contains filtered or unexported fields
}
MapIntToInt implements a hash map from int to int.
func NewMapIntToInt ¶
func NewMapIntToInt(size int) *MapIntToInt
NewMapIntToInt creates a new MapIntToInt with at least a size of size.
func (*MapIntToInt) Add ¶
func (h *MapIntToInt) Add(k int, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt) Contains ¶
func (h *MapIntToInt) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToInt) Find ¶
func (h *MapIntToInt) Find(k int) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToInt) Get ¶
func (h *MapIntToInt) Get(k int) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToInt) Inc ¶
func (h *MapIntToInt) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToInt) Modify ¶
func (h *MapIntToInt) Modify(k int, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToInt) Put ¶
func (h *MapIntToInt) Put(k int, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt) Remove ¶
func (h *MapIntToInt) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToInt) Size ¶
func (h *MapIntToInt) Size() int
Size returns the current size of the map.
func (*MapIntToInt) Visit ¶
func (h *MapIntToInt) Visit(fn func(int, int))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToInt16 ¶
type MapIntToInt16 struct {
// contains filtered or unexported fields
}
MapIntToInt16 implements a hash map from int to int16.
func NewMapIntToInt16 ¶
func NewMapIntToInt16(size int) *MapIntToInt16
NewMapIntToInt16 creates a new MapIntToInt16 with at least a size of size.
func (*MapIntToInt16) Add ¶
func (h *MapIntToInt16) Add(k int, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt16) Clear ¶
func (h *MapIntToInt16) Clear()
Clear removes all elements from the map.
func (*MapIntToInt16) Contains ¶
func (h *MapIntToInt16) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToInt16) Find ¶
func (h *MapIntToInt16) Find(k int) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToInt16) Get ¶
func (h *MapIntToInt16) Get(k int) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToInt16) Inc ¶
func (h *MapIntToInt16) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToInt16) Modify ¶
func (h *MapIntToInt16) Modify(k int, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToInt16) Put ¶
func (h *MapIntToInt16) Put(k int, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt16) Remove ¶
func (h *MapIntToInt16) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToInt16) Size ¶
func (h *MapIntToInt16) Size() int
Size returns the current size of the map.
func (*MapIntToInt16) Visit ¶
func (h *MapIntToInt16) Visit(fn func(int, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToInt32 ¶
type MapIntToInt32 struct {
// contains filtered or unexported fields
}
MapIntToInt32 implements a hash map from int to int32.
func NewMapIntToInt32 ¶
func NewMapIntToInt32(size int) *MapIntToInt32
NewMapIntToInt32 creates a new MapIntToInt32 with at least a size of size.
func (*MapIntToInt32) Add ¶
func (h *MapIntToInt32) Add(k int, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt32) Clear ¶
func (h *MapIntToInt32) Clear()
Clear removes all elements from the map.
func (*MapIntToInt32) Contains ¶
func (h *MapIntToInt32) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToInt32) Find ¶
func (h *MapIntToInt32) Find(k int) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToInt32) Get ¶
func (h *MapIntToInt32) Get(k int) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToInt32) Inc ¶
func (h *MapIntToInt32) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToInt32) Modify ¶
func (h *MapIntToInt32) Modify(k int, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToInt32) Put ¶
func (h *MapIntToInt32) Put(k int, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt32) Remove ¶
func (h *MapIntToInt32) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToInt32) Size ¶
func (h *MapIntToInt32) Size() int
Size returns the current size of the map.
func (*MapIntToInt32) Visit ¶
func (h *MapIntToInt32) Visit(fn func(int, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToInt64 ¶
type MapIntToInt64 struct {
// contains filtered or unexported fields
}
MapIntToInt64 implements a hash map from int to int64.
func NewMapIntToInt64 ¶
func NewMapIntToInt64(size int) *MapIntToInt64
NewMapIntToInt64 creates a new MapIntToInt64 with at least a size of size.
func (*MapIntToInt64) Add ¶
func (h *MapIntToInt64) Add(k int, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt64) Clear ¶
func (h *MapIntToInt64) Clear()
Clear removes all elements from the map.
func (*MapIntToInt64) Contains ¶
func (h *MapIntToInt64) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToInt64) Find ¶
func (h *MapIntToInt64) Find(k int) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToInt64) Get ¶
func (h *MapIntToInt64) Get(k int) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToInt64) Inc ¶
func (h *MapIntToInt64) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToInt64) Modify ¶
func (h *MapIntToInt64) Modify(k int, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToInt64) Put ¶
func (h *MapIntToInt64) Put(k int, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt64) Remove ¶
func (h *MapIntToInt64) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToInt64) Size ¶
func (h *MapIntToInt64) Size() int
Size returns the current size of the map.
func (*MapIntToInt64) Visit ¶
func (h *MapIntToInt64) Visit(fn func(int, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToInt8 ¶
type MapIntToInt8 struct {
// contains filtered or unexported fields
}
MapIntToInt8 implements a hash map from int to int8.
func NewMapIntToInt8 ¶
func NewMapIntToInt8(size int) *MapIntToInt8
NewMapIntToInt8 creates a new MapIntToInt8 with at least a size of size.
func (*MapIntToInt8) Add ¶
func (h *MapIntToInt8) Add(k int, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt8) Clear ¶
func (h *MapIntToInt8) Clear()
Clear removes all elements from the map.
func (*MapIntToInt8) Contains ¶
func (h *MapIntToInt8) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToInt8) Find ¶
func (h *MapIntToInt8) Find(k int) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToInt8) Get ¶
func (h *MapIntToInt8) Get(k int) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToInt8) Inc ¶
func (h *MapIntToInt8) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToInt8) Modify ¶
func (h *MapIntToInt8) Modify(k int, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToInt8) Put ¶
func (h *MapIntToInt8) Put(k int, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToInt8) Remove ¶
func (h *MapIntToInt8) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToInt8) Size ¶
func (h *MapIntToInt8) Size() int
Size returns the current size of the map.
func (*MapIntToInt8) Visit ¶
func (h *MapIntToInt8) Visit(fn func(int, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToUint ¶
type MapIntToUint struct {
// contains filtered or unexported fields
}
MapIntToUint implements a hash map from int to uint.
func NewMapIntToUint ¶
func NewMapIntToUint(size int) *MapIntToUint
NewMapIntToUint creates a new MapIntToUint with at least a size of size.
func (*MapIntToUint) Add ¶
func (h *MapIntToUint) Add(k int, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint) Clear ¶
func (h *MapIntToUint) Clear()
Clear removes all elements from the map.
func (*MapIntToUint) Contains ¶
func (h *MapIntToUint) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToUint) Find ¶
func (h *MapIntToUint) Find(k int) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToUint) Get ¶
func (h *MapIntToUint) Get(k int) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToUint) Inc ¶
func (h *MapIntToUint) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToUint) Modify ¶
func (h *MapIntToUint) Modify(k int, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToUint) Put ¶
func (h *MapIntToUint) Put(k int, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint) Remove ¶
func (h *MapIntToUint) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToUint) Size ¶
func (h *MapIntToUint) Size() int
Size returns the current size of the map.
func (*MapIntToUint) Visit ¶
func (h *MapIntToUint) Visit(fn func(int, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToUint16 ¶
type MapIntToUint16 struct {
// contains filtered or unexported fields
}
MapIntToUint16 implements a hash map from int to uint16.
func NewMapIntToUint16 ¶
func NewMapIntToUint16(size int) *MapIntToUint16
NewMapIntToUint16 creates a new MapIntToUint16 with at least a size of size.
func (*MapIntToUint16) Add ¶
func (h *MapIntToUint16) Add(k int, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint16) Clear ¶
func (h *MapIntToUint16) Clear()
Clear removes all elements from the map.
func (*MapIntToUint16) Contains ¶
func (h *MapIntToUint16) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToUint16) Find ¶
func (h *MapIntToUint16) Find(k int) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToUint16) Get ¶
func (h *MapIntToUint16) Get(k int) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToUint16) Inc ¶
func (h *MapIntToUint16) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToUint16) Modify ¶
func (h *MapIntToUint16) Modify(k int, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToUint16) Put ¶
func (h *MapIntToUint16) Put(k int, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint16) Remove ¶
func (h *MapIntToUint16) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToUint16) Size ¶
func (h *MapIntToUint16) Size() int
Size returns the current size of the map.
func (*MapIntToUint16) Visit ¶
func (h *MapIntToUint16) Visit(fn func(int, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToUint32 ¶
type MapIntToUint32 struct {
// contains filtered or unexported fields
}
MapIntToUint32 implements a hash map from int to uint32.
func NewMapIntToUint32 ¶
func NewMapIntToUint32(size int) *MapIntToUint32
NewMapIntToUint32 creates a new MapIntToUint32 with at least a size of size.
func (*MapIntToUint32) Add ¶
func (h *MapIntToUint32) Add(k int, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint32) Clear ¶
func (h *MapIntToUint32) Clear()
Clear removes all elements from the map.
func (*MapIntToUint32) Contains ¶
func (h *MapIntToUint32) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToUint32) Find ¶
func (h *MapIntToUint32) Find(k int) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToUint32) Get ¶
func (h *MapIntToUint32) Get(k int) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToUint32) Inc ¶
func (h *MapIntToUint32) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToUint32) Modify ¶
func (h *MapIntToUint32) Modify(k int, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToUint32) Put ¶
func (h *MapIntToUint32) Put(k int, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint32) Remove ¶
func (h *MapIntToUint32) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToUint32) Size ¶
func (h *MapIntToUint32) Size() int
Size returns the current size of the map.
func (*MapIntToUint32) Visit ¶
func (h *MapIntToUint32) Visit(fn func(int, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToUint64 ¶
type MapIntToUint64 struct {
// contains filtered or unexported fields
}
MapIntToUint64 implements a hash map from int to uint64.
func NewMapIntToUint64 ¶
func NewMapIntToUint64(size int) *MapIntToUint64
NewMapIntToUint64 creates a new MapIntToUint64 with at least a size of size.
func (*MapIntToUint64) Add ¶
func (h *MapIntToUint64) Add(k int, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint64) Clear ¶
func (h *MapIntToUint64) Clear()
Clear removes all elements from the map.
func (*MapIntToUint64) Contains ¶
func (h *MapIntToUint64) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToUint64) Find ¶
func (h *MapIntToUint64) Find(k int) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToUint64) Get ¶
func (h *MapIntToUint64) Get(k int) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToUint64) Inc ¶
func (h *MapIntToUint64) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToUint64) Modify ¶
func (h *MapIntToUint64) Modify(k int, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToUint64) Put ¶
func (h *MapIntToUint64) Put(k int, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint64) Remove ¶
func (h *MapIntToUint64) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToUint64) Size ¶
func (h *MapIntToUint64) Size() int
Size returns the current size of the map.
func (*MapIntToUint64) Visit ¶
func (h *MapIntToUint64) Visit(fn func(int, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapIntToUint8 ¶
type MapIntToUint8 struct {
// contains filtered or unexported fields
}
MapIntToUint8 implements a hash map from int to uint8.
func NewMapIntToUint8 ¶
func NewMapIntToUint8(size int) *MapIntToUint8
NewMapIntToUint8 creates a new MapIntToUint8 with at least a size of size.
func (*MapIntToUint8) Add ¶
func (h *MapIntToUint8) Add(k int, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint8) Clear ¶
func (h *MapIntToUint8) Clear()
Clear removes all elements from the map.
func (*MapIntToUint8) Contains ¶
func (h *MapIntToUint8) Contains(k int) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapIntToUint8) Find ¶
func (h *MapIntToUint8) Find(k int) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapIntToUint8) Get ¶
func (h *MapIntToUint8) Get(k int) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapIntToUint8) Inc ¶
func (h *MapIntToUint8) Inc(k int)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapIntToUint8) Modify ¶
func (h *MapIntToUint8) Modify(k int, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapIntToUint8) Put ¶
func (h *MapIntToUint8) Put(k int, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapIntToUint8) Remove ¶
func (h *MapIntToUint8) Remove(k int)
Remove removes the key/value pair associated with key k from this map..
func (*MapIntToUint8) Size ¶
func (h *MapIntToUint8) Size() int
Size returns the current size of the map.
func (*MapIntToUint8) Visit ¶
func (h *MapIntToUint8) Visit(fn func(int, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToInt ¶
type MapUint16ToInt struct {
// contains filtered or unexported fields
}
MapUint16ToInt implements a hash map from uint16 to int.
func NewMapUint16ToInt ¶
func NewMapUint16ToInt(size int) *MapUint16ToInt
NewMapUint16ToInt creates a new MapUint16ToInt with at least a size of size.
func (*MapUint16ToInt) Add ¶
func (h *MapUint16ToInt) Add(k uint16, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt) Clear ¶
func (h *MapUint16ToInt) Clear()
Clear removes all elements from the map.
func (*MapUint16ToInt) Contains ¶
func (h *MapUint16ToInt) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToInt) Find ¶
func (h *MapUint16ToInt) Find(k uint16) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToInt) Get ¶
func (h *MapUint16ToInt) Get(k uint16) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToInt) Inc ¶
func (h *MapUint16ToInt) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToInt) Modify ¶
func (h *MapUint16ToInt) Modify(k uint16, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToInt) Put ¶
func (h *MapUint16ToInt) Put(k uint16, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt) Remove ¶
func (h *MapUint16ToInt) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToInt) Size ¶
func (h *MapUint16ToInt) Size() int
Size returns the current size of the map.
func (*MapUint16ToInt) Visit ¶
func (h *MapUint16ToInt) Visit(fn func(uint16, int))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToInt16 ¶
type MapUint16ToInt16 struct {
// contains filtered or unexported fields
}
MapUint16ToInt16 implements a hash map from uint16 to int16.
func NewMapUint16ToInt16 ¶
func NewMapUint16ToInt16(size int) *MapUint16ToInt16
NewMapUint16ToInt16 creates a new MapUint16ToInt16 with at least a size of size.
func (*MapUint16ToInt16) Add ¶
func (h *MapUint16ToInt16) Add(k uint16, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt16) Clear ¶
func (h *MapUint16ToInt16) Clear()
Clear removes all elements from the map.
func (*MapUint16ToInt16) Contains ¶
func (h *MapUint16ToInt16) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToInt16) Find ¶
func (h *MapUint16ToInt16) Find(k uint16) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToInt16) Get ¶
func (h *MapUint16ToInt16) Get(k uint16) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToInt16) Inc ¶
func (h *MapUint16ToInt16) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToInt16) Modify ¶
func (h *MapUint16ToInt16) Modify(k uint16, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToInt16) Put ¶
func (h *MapUint16ToInt16) Put(k uint16, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt16) Remove ¶
func (h *MapUint16ToInt16) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToInt16) Size ¶
func (h *MapUint16ToInt16) Size() int
Size returns the current size of the map.
func (*MapUint16ToInt16) Visit ¶
func (h *MapUint16ToInt16) Visit(fn func(uint16, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToInt32 ¶
type MapUint16ToInt32 struct {
// contains filtered or unexported fields
}
MapUint16ToInt32 implements a hash map from uint16 to int32.
func NewMapUint16ToInt32 ¶
func NewMapUint16ToInt32(size int) *MapUint16ToInt32
NewMapUint16ToInt32 creates a new MapUint16ToInt32 with at least a size of size.
func (*MapUint16ToInt32) Add ¶
func (h *MapUint16ToInt32) Add(k uint16, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt32) Clear ¶
func (h *MapUint16ToInt32) Clear()
Clear removes all elements from the map.
func (*MapUint16ToInt32) Contains ¶
func (h *MapUint16ToInt32) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToInt32) Find ¶
func (h *MapUint16ToInt32) Find(k uint16) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToInt32) Get ¶
func (h *MapUint16ToInt32) Get(k uint16) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToInt32) Inc ¶
func (h *MapUint16ToInt32) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToInt32) Modify ¶
func (h *MapUint16ToInt32) Modify(k uint16, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToInt32) Put ¶
func (h *MapUint16ToInt32) Put(k uint16, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt32) Remove ¶
func (h *MapUint16ToInt32) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToInt32) Size ¶
func (h *MapUint16ToInt32) Size() int
Size returns the current size of the map.
func (*MapUint16ToInt32) Visit ¶
func (h *MapUint16ToInt32) Visit(fn func(uint16, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToInt64 ¶
type MapUint16ToInt64 struct {
// contains filtered or unexported fields
}
MapUint16ToInt64 implements a hash map from uint16 to int64.
func NewMapUint16ToInt64 ¶
func NewMapUint16ToInt64(size int) *MapUint16ToInt64
NewMapUint16ToInt64 creates a new MapUint16ToInt64 with at least a size of size.
func (*MapUint16ToInt64) Add ¶
func (h *MapUint16ToInt64) Add(k uint16, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt64) Clear ¶
func (h *MapUint16ToInt64) Clear()
Clear removes all elements from the map.
func (*MapUint16ToInt64) Contains ¶
func (h *MapUint16ToInt64) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToInt64) Find ¶
func (h *MapUint16ToInt64) Find(k uint16) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToInt64) Get ¶
func (h *MapUint16ToInt64) Get(k uint16) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToInt64) Inc ¶
func (h *MapUint16ToInt64) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToInt64) Modify ¶
func (h *MapUint16ToInt64) Modify(k uint16, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToInt64) Put ¶
func (h *MapUint16ToInt64) Put(k uint16, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt64) Remove ¶
func (h *MapUint16ToInt64) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToInt64) Size ¶
func (h *MapUint16ToInt64) Size() int
Size returns the current size of the map.
func (*MapUint16ToInt64) Visit ¶
func (h *MapUint16ToInt64) Visit(fn func(uint16, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToInt8 ¶
type MapUint16ToInt8 struct {
// contains filtered or unexported fields
}
MapUint16ToInt8 implements a hash map from uint16 to int8.
func NewMapUint16ToInt8 ¶
func NewMapUint16ToInt8(size int) *MapUint16ToInt8
NewMapUint16ToInt8 creates a new MapUint16ToInt8 with at least a size of size.
func (*MapUint16ToInt8) Add ¶
func (h *MapUint16ToInt8) Add(k uint16, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt8) Clear ¶
func (h *MapUint16ToInt8) Clear()
Clear removes all elements from the map.
func (*MapUint16ToInt8) Contains ¶
func (h *MapUint16ToInt8) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToInt8) Find ¶
func (h *MapUint16ToInt8) Find(k uint16) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToInt8) Get ¶
func (h *MapUint16ToInt8) Get(k uint16) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToInt8) Inc ¶
func (h *MapUint16ToInt8) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToInt8) Modify ¶
func (h *MapUint16ToInt8) Modify(k uint16, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToInt8) Put ¶
func (h *MapUint16ToInt8) Put(k uint16, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToInt8) Remove ¶
func (h *MapUint16ToInt8) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToInt8) Size ¶
func (h *MapUint16ToInt8) Size() int
Size returns the current size of the map.
func (*MapUint16ToInt8) Visit ¶
func (h *MapUint16ToInt8) Visit(fn func(uint16, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToUint ¶
type MapUint16ToUint struct {
// contains filtered or unexported fields
}
MapUint16ToUint implements a hash map from uint16 to uint.
func NewMapUint16ToUint ¶
func NewMapUint16ToUint(size int) *MapUint16ToUint
NewMapUint16ToUint creates a new MapUint16ToUint with at least a size of size.
func (*MapUint16ToUint) Add ¶
func (h *MapUint16ToUint) Add(k uint16, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint) Clear ¶
func (h *MapUint16ToUint) Clear()
Clear removes all elements from the map.
func (*MapUint16ToUint) Contains ¶
func (h *MapUint16ToUint) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToUint) Find ¶
func (h *MapUint16ToUint) Find(k uint16) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToUint) Get ¶
func (h *MapUint16ToUint) Get(k uint16) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToUint) Inc ¶
func (h *MapUint16ToUint) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToUint) Modify ¶
func (h *MapUint16ToUint) Modify(k uint16, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToUint) Put ¶
func (h *MapUint16ToUint) Put(k uint16, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint) Remove ¶
func (h *MapUint16ToUint) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToUint) Size ¶
func (h *MapUint16ToUint) Size() int
Size returns the current size of the map.
func (*MapUint16ToUint) Visit ¶
func (h *MapUint16ToUint) Visit(fn func(uint16, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToUint16 ¶
type MapUint16ToUint16 struct {
// contains filtered or unexported fields
}
MapUint16ToUint16 implements a hash map from uint16 to uint16.
func NewMapUint16ToUint16 ¶
func NewMapUint16ToUint16(size int) *MapUint16ToUint16
NewMapUint16ToUint16 creates a new MapUint16ToUint16 with at least a size of size.
func (*MapUint16ToUint16) Add ¶
func (h *MapUint16ToUint16) Add(k uint16, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint16) Clear ¶
func (h *MapUint16ToUint16) Clear()
Clear removes all elements from the map.
func (*MapUint16ToUint16) Contains ¶
func (h *MapUint16ToUint16) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToUint16) Find ¶
func (h *MapUint16ToUint16) Find(k uint16) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToUint16) Get ¶
func (h *MapUint16ToUint16) Get(k uint16) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToUint16) Inc ¶
func (h *MapUint16ToUint16) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToUint16) Modify ¶
func (h *MapUint16ToUint16) Modify(k uint16, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToUint16) Put ¶
func (h *MapUint16ToUint16) Put(k uint16, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint16) Remove ¶
func (h *MapUint16ToUint16) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToUint16) Size ¶
func (h *MapUint16ToUint16) Size() int
Size returns the current size of the map.
func (*MapUint16ToUint16) Visit ¶
func (h *MapUint16ToUint16) Visit(fn func(uint16, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToUint32 ¶
type MapUint16ToUint32 struct {
// contains filtered or unexported fields
}
MapUint16ToUint32 implements a hash map from uint16 to uint32.
func NewMapUint16ToUint32 ¶
func NewMapUint16ToUint32(size int) *MapUint16ToUint32
NewMapUint16ToUint32 creates a new MapUint16ToUint32 with at least a size of size.
func (*MapUint16ToUint32) Add ¶
func (h *MapUint16ToUint32) Add(k uint16, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint32) Clear ¶
func (h *MapUint16ToUint32) Clear()
Clear removes all elements from the map.
func (*MapUint16ToUint32) Contains ¶
func (h *MapUint16ToUint32) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToUint32) Find ¶
func (h *MapUint16ToUint32) Find(k uint16) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToUint32) Get ¶
func (h *MapUint16ToUint32) Get(k uint16) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToUint32) Inc ¶
func (h *MapUint16ToUint32) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToUint32) Modify ¶
func (h *MapUint16ToUint32) Modify(k uint16, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToUint32) Put ¶
func (h *MapUint16ToUint32) Put(k uint16, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint32) Remove ¶
func (h *MapUint16ToUint32) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToUint32) Size ¶
func (h *MapUint16ToUint32) Size() int
Size returns the current size of the map.
func (*MapUint16ToUint32) Visit ¶
func (h *MapUint16ToUint32) Visit(fn func(uint16, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToUint64 ¶
type MapUint16ToUint64 struct {
// contains filtered or unexported fields
}
MapUint16ToUint64 implements a hash map from uint16 to uint64.
func NewMapUint16ToUint64 ¶
func NewMapUint16ToUint64(size int) *MapUint16ToUint64
NewMapUint16ToUint64 creates a new MapUint16ToUint64 with at least a size of size.
func (*MapUint16ToUint64) Add ¶
func (h *MapUint16ToUint64) Add(k uint16, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint64) Clear ¶
func (h *MapUint16ToUint64) Clear()
Clear removes all elements from the map.
func (*MapUint16ToUint64) Contains ¶
func (h *MapUint16ToUint64) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToUint64) Find ¶
func (h *MapUint16ToUint64) Find(k uint16) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToUint64) Get ¶
func (h *MapUint16ToUint64) Get(k uint16) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToUint64) Inc ¶
func (h *MapUint16ToUint64) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToUint64) Modify ¶
func (h *MapUint16ToUint64) Modify(k uint16, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToUint64) Put ¶
func (h *MapUint16ToUint64) Put(k uint16, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint64) Remove ¶
func (h *MapUint16ToUint64) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToUint64) Size ¶
func (h *MapUint16ToUint64) Size() int
Size returns the current size of the map.
func (*MapUint16ToUint64) Visit ¶
func (h *MapUint16ToUint64) Visit(fn func(uint16, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint16ToUint8 ¶
type MapUint16ToUint8 struct {
// contains filtered or unexported fields
}
MapUint16ToUint8 implements a hash map from uint16 to uint8.
func NewMapUint16ToUint8 ¶
func NewMapUint16ToUint8(size int) *MapUint16ToUint8
NewMapUint16ToUint8 creates a new MapUint16ToUint8 with at least a size of size.
func (*MapUint16ToUint8) Add ¶
func (h *MapUint16ToUint8) Add(k uint16, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint8) Clear ¶
func (h *MapUint16ToUint8) Clear()
Clear removes all elements from the map.
func (*MapUint16ToUint8) Contains ¶
func (h *MapUint16ToUint8) Contains(k uint16) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint16ToUint8) Find ¶
func (h *MapUint16ToUint8) Find(k uint16) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint16ToUint8) Get ¶
func (h *MapUint16ToUint8) Get(k uint16) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint16ToUint8) Inc ¶
func (h *MapUint16ToUint8) Inc(k uint16)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint16ToUint8) Modify ¶
func (h *MapUint16ToUint8) Modify(k uint16, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint16ToUint8) Put ¶
func (h *MapUint16ToUint8) Put(k uint16, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint16ToUint8) Remove ¶
func (h *MapUint16ToUint8) Remove(k uint16)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint16ToUint8) Size ¶
func (h *MapUint16ToUint8) Size() int
Size returns the current size of the map.
func (*MapUint16ToUint8) Visit ¶
func (h *MapUint16ToUint8) Visit(fn func(uint16, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToInt ¶
type MapUint32ToInt struct {
// contains filtered or unexported fields
}
MapUint32ToInt implements a hash map from uint32 to int.
func NewMapUint32ToInt ¶
func NewMapUint32ToInt(size int) *MapUint32ToInt
NewMapUint32ToInt creates a new MapUint32ToInt with at least a size of size.
func (*MapUint32ToInt) Add ¶
func (h *MapUint32ToInt) Add(k uint32, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt) Clear ¶
func (h *MapUint32ToInt) Clear()
Clear removes all elements from the map.
func (*MapUint32ToInt) Contains ¶
func (h *MapUint32ToInt) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToInt) Find ¶
func (h *MapUint32ToInt) Find(k uint32) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToInt) Get ¶
func (h *MapUint32ToInt) Get(k uint32) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToInt) Inc ¶
func (h *MapUint32ToInt) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToInt) Modify ¶
func (h *MapUint32ToInt) Modify(k uint32, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToInt) Put ¶
func (h *MapUint32ToInt) Put(k uint32, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt) Remove ¶
func (h *MapUint32ToInt) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToInt) Size ¶
func (h *MapUint32ToInt) Size() int
Size returns the current size of the map.
func (*MapUint32ToInt) Visit ¶
func (h *MapUint32ToInt) Visit(fn func(uint32, int))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToInt16 ¶
type MapUint32ToInt16 struct {
// contains filtered or unexported fields
}
MapUint32ToInt16 implements a hash map from uint32 to int16.
func NewMapUint32ToInt16 ¶
func NewMapUint32ToInt16(size int) *MapUint32ToInt16
NewMapUint32ToInt16 creates a new MapUint32ToInt16 with at least a size of size.
func (*MapUint32ToInt16) Add ¶
func (h *MapUint32ToInt16) Add(k uint32, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt16) Clear ¶
func (h *MapUint32ToInt16) Clear()
Clear removes all elements from the map.
func (*MapUint32ToInt16) Contains ¶
func (h *MapUint32ToInt16) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToInt16) Find ¶
func (h *MapUint32ToInt16) Find(k uint32) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToInt16) Get ¶
func (h *MapUint32ToInt16) Get(k uint32) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToInt16) Inc ¶
func (h *MapUint32ToInt16) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToInt16) Modify ¶
func (h *MapUint32ToInt16) Modify(k uint32, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToInt16) Put ¶
func (h *MapUint32ToInt16) Put(k uint32, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt16) Remove ¶
func (h *MapUint32ToInt16) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToInt16) Size ¶
func (h *MapUint32ToInt16) Size() int
Size returns the current size of the map.
func (*MapUint32ToInt16) Visit ¶
func (h *MapUint32ToInt16) Visit(fn func(uint32, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToInt32 ¶
type MapUint32ToInt32 struct {
// contains filtered or unexported fields
}
MapUint32ToInt32 implements a hash map from uint32 to int32.
func NewMapUint32ToInt32 ¶
func NewMapUint32ToInt32(size int) *MapUint32ToInt32
NewMapUint32ToInt32 creates a new MapUint32ToInt32 with at least a size of size.
func (*MapUint32ToInt32) Add ¶
func (h *MapUint32ToInt32) Add(k uint32, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt32) Clear ¶
func (h *MapUint32ToInt32) Clear()
Clear removes all elements from the map.
func (*MapUint32ToInt32) Contains ¶
func (h *MapUint32ToInt32) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToInt32) Find ¶
func (h *MapUint32ToInt32) Find(k uint32) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToInt32) Get ¶
func (h *MapUint32ToInt32) Get(k uint32) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToInt32) Inc ¶
func (h *MapUint32ToInt32) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToInt32) Modify ¶
func (h *MapUint32ToInt32) Modify(k uint32, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToInt32) Put ¶
func (h *MapUint32ToInt32) Put(k uint32, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt32) Remove ¶
func (h *MapUint32ToInt32) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToInt32) Size ¶
func (h *MapUint32ToInt32) Size() int
Size returns the current size of the map.
func (*MapUint32ToInt32) Visit ¶
func (h *MapUint32ToInt32) Visit(fn func(uint32, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToInt64 ¶
type MapUint32ToInt64 struct {
// contains filtered or unexported fields
}
MapUint32ToInt64 implements a hash map from uint32 to int64.
func NewMapUint32ToInt64 ¶
func NewMapUint32ToInt64(size int) *MapUint32ToInt64
NewMapUint32ToInt64 creates a new MapUint32ToInt64 with at least a size of size.
func (*MapUint32ToInt64) Add ¶
func (h *MapUint32ToInt64) Add(k uint32, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt64) Clear ¶
func (h *MapUint32ToInt64) Clear()
Clear removes all elements from the map.
func (*MapUint32ToInt64) Contains ¶
func (h *MapUint32ToInt64) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToInt64) Find ¶
func (h *MapUint32ToInt64) Find(k uint32) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToInt64) Get ¶
func (h *MapUint32ToInt64) Get(k uint32) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToInt64) Inc ¶
func (h *MapUint32ToInt64) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToInt64) Modify ¶
func (h *MapUint32ToInt64) Modify(k uint32, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToInt64) Put ¶
func (h *MapUint32ToInt64) Put(k uint32, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt64) Remove ¶
func (h *MapUint32ToInt64) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToInt64) Size ¶
func (h *MapUint32ToInt64) Size() int
Size returns the current size of the map.
func (*MapUint32ToInt64) Visit ¶
func (h *MapUint32ToInt64) Visit(fn func(uint32, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToInt8 ¶
type MapUint32ToInt8 struct {
// contains filtered or unexported fields
}
MapUint32ToInt8 implements a hash map from uint32 to int8.
func NewMapUint32ToInt8 ¶
func NewMapUint32ToInt8(size int) *MapUint32ToInt8
NewMapUint32ToInt8 creates a new MapUint32ToInt8 with at least a size of size.
func (*MapUint32ToInt8) Add ¶
func (h *MapUint32ToInt8) Add(k uint32, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt8) Clear ¶
func (h *MapUint32ToInt8) Clear()
Clear removes all elements from the map.
func (*MapUint32ToInt8) Contains ¶
func (h *MapUint32ToInt8) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToInt8) Find ¶
func (h *MapUint32ToInt8) Find(k uint32) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToInt8) Get ¶
func (h *MapUint32ToInt8) Get(k uint32) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToInt8) Inc ¶
func (h *MapUint32ToInt8) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToInt8) Modify ¶
func (h *MapUint32ToInt8) Modify(k uint32, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToInt8) Put ¶
func (h *MapUint32ToInt8) Put(k uint32, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToInt8) Remove ¶
func (h *MapUint32ToInt8) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToInt8) Size ¶
func (h *MapUint32ToInt8) Size() int
Size returns the current size of the map.
func (*MapUint32ToInt8) Visit ¶
func (h *MapUint32ToInt8) Visit(fn func(uint32, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToUint ¶
type MapUint32ToUint struct {
// contains filtered or unexported fields
}
MapUint32ToUint implements a hash map from uint32 to uint.
func NewMapUint32ToUint ¶
func NewMapUint32ToUint(size int) *MapUint32ToUint
NewMapUint32ToUint creates a new MapUint32ToUint with at least a size of size.
func (*MapUint32ToUint) Add ¶
func (h *MapUint32ToUint) Add(k uint32, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint) Clear ¶
func (h *MapUint32ToUint) Clear()
Clear removes all elements from the map.
func (*MapUint32ToUint) Contains ¶
func (h *MapUint32ToUint) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToUint) Find ¶
func (h *MapUint32ToUint) Find(k uint32) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToUint) Get ¶
func (h *MapUint32ToUint) Get(k uint32) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToUint) Inc ¶
func (h *MapUint32ToUint) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToUint) Modify ¶
func (h *MapUint32ToUint) Modify(k uint32, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToUint) Put ¶
func (h *MapUint32ToUint) Put(k uint32, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint) Remove ¶
func (h *MapUint32ToUint) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToUint) Size ¶
func (h *MapUint32ToUint) Size() int
Size returns the current size of the map.
func (*MapUint32ToUint) Visit ¶
func (h *MapUint32ToUint) Visit(fn func(uint32, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToUint16 ¶
type MapUint32ToUint16 struct {
// contains filtered or unexported fields
}
MapUint32ToUint16 implements a hash map from uint32 to uint16.
func NewMapUint32ToUint16 ¶
func NewMapUint32ToUint16(size int) *MapUint32ToUint16
NewMapUint32ToUint16 creates a new MapUint32ToUint16 with at least a size of size.
func (*MapUint32ToUint16) Add ¶
func (h *MapUint32ToUint16) Add(k uint32, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint16) Clear ¶
func (h *MapUint32ToUint16) Clear()
Clear removes all elements from the map.
func (*MapUint32ToUint16) Contains ¶
func (h *MapUint32ToUint16) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToUint16) Find ¶
func (h *MapUint32ToUint16) Find(k uint32) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToUint16) Get ¶
func (h *MapUint32ToUint16) Get(k uint32) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToUint16) Inc ¶
func (h *MapUint32ToUint16) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToUint16) Modify ¶
func (h *MapUint32ToUint16) Modify(k uint32, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToUint16) Put ¶
func (h *MapUint32ToUint16) Put(k uint32, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint16) Remove ¶
func (h *MapUint32ToUint16) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToUint16) Size ¶
func (h *MapUint32ToUint16) Size() int
Size returns the current size of the map.
func (*MapUint32ToUint16) Visit ¶
func (h *MapUint32ToUint16) Visit(fn func(uint32, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToUint32 ¶
type MapUint32ToUint32 struct {
// contains filtered or unexported fields
}
MapUint32ToUint32 implements a hash map from uint32 to uint32.
func NewMapUint32ToUint32 ¶
func NewMapUint32ToUint32(size int) *MapUint32ToUint32
NewMapUint32ToUint32 creates a new MapUint32ToUint32 with at least a size of size.
func (*MapUint32ToUint32) Add ¶
func (h *MapUint32ToUint32) Add(k uint32, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint32) Clear ¶
func (h *MapUint32ToUint32) Clear()
Clear removes all elements from the map.
func (*MapUint32ToUint32) Contains ¶
func (h *MapUint32ToUint32) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToUint32) Find ¶
func (h *MapUint32ToUint32) Find(k uint32) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToUint32) Get ¶
func (h *MapUint32ToUint32) Get(k uint32) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToUint32) Inc ¶
func (h *MapUint32ToUint32) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToUint32) Modify ¶
func (h *MapUint32ToUint32) Modify(k uint32, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToUint32) Put ¶
func (h *MapUint32ToUint32) Put(k uint32, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint32) Remove ¶
func (h *MapUint32ToUint32) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToUint32) Size ¶
func (h *MapUint32ToUint32) Size() int
Size returns the current size of the map.
func (*MapUint32ToUint32) Visit ¶
func (h *MapUint32ToUint32) Visit(fn func(uint32, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToUint64 ¶
type MapUint32ToUint64 struct {
// contains filtered or unexported fields
}
MapUint32ToUint64 implements a hash map from uint32 to uint64.
func NewMapUint32ToUint64 ¶
func NewMapUint32ToUint64(size int) *MapUint32ToUint64
NewMapUint32ToUint64 creates a new MapUint32ToUint64 with at least a size of size.
func (*MapUint32ToUint64) Add ¶
func (h *MapUint32ToUint64) Add(k uint32, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint64) Clear ¶
func (h *MapUint32ToUint64) Clear()
Clear removes all elements from the map.
func (*MapUint32ToUint64) Contains ¶
func (h *MapUint32ToUint64) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToUint64) Find ¶
func (h *MapUint32ToUint64) Find(k uint32) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToUint64) Get ¶
func (h *MapUint32ToUint64) Get(k uint32) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToUint64) Inc ¶
func (h *MapUint32ToUint64) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToUint64) Modify ¶
func (h *MapUint32ToUint64) Modify(k uint32, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToUint64) Put ¶
func (h *MapUint32ToUint64) Put(k uint32, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint64) Remove ¶
func (h *MapUint32ToUint64) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToUint64) Size ¶
func (h *MapUint32ToUint64) Size() int
Size returns the current size of the map.
func (*MapUint32ToUint64) Visit ¶
func (h *MapUint32ToUint64) Visit(fn func(uint32, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint32ToUint8 ¶
type MapUint32ToUint8 struct {
// contains filtered or unexported fields
}
MapUint32ToUint8 implements a hash map from uint32 to uint8.
func NewMapUint32ToUint8 ¶
func NewMapUint32ToUint8(size int) *MapUint32ToUint8
NewMapUint32ToUint8 creates a new MapUint32ToUint8 with at least a size of size.
func (*MapUint32ToUint8) Add ¶
func (h *MapUint32ToUint8) Add(k uint32, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint8) Clear ¶
func (h *MapUint32ToUint8) Clear()
Clear removes all elements from the map.
func (*MapUint32ToUint8) Contains ¶
func (h *MapUint32ToUint8) Contains(k uint32) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint32ToUint8) Find ¶
func (h *MapUint32ToUint8) Find(k uint32) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint32ToUint8) Get ¶
func (h *MapUint32ToUint8) Get(k uint32) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint32ToUint8) Inc ¶
func (h *MapUint32ToUint8) Inc(k uint32)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint32ToUint8) Modify ¶
func (h *MapUint32ToUint8) Modify(k uint32, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint32ToUint8) Put ¶
func (h *MapUint32ToUint8) Put(k uint32, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint32ToUint8) Remove ¶
func (h *MapUint32ToUint8) Remove(k uint32)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint32ToUint8) Size ¶
func (h *MapUint32ToUint8) Size() int
Size returns the current size of the map.
func (*MapUint32ToUint8) Visit ¶
func (h *MapUint32ToUint8) Visit(fn func(uint32, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToInt ¶
type MapUint64ToInt struct {
// contains filtered or unexported fields
}
MapUint64ToInt implements a hash map from uint64 to int.
func NewMapUint64ToInt ¶
func NewMapUint64ToInt(size int) *MapUint64ToInt
NewMapUint64ToInt creates a new MapUint64ToInt with at least a size of size.
func (*MapUint64ToInt) Add ¶
func (h *MapUint64ToInt) Add(k uint64, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt) Clear ¶
func (h *MapUint64ToInt) Clear()
Clear removes all elements from the map.
func (*MapUint64ToInt) Contains ¶
func (h *MapUint64ToInt) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToInt) Find ¶
func (h *MapUint64ToInt) Find(k uint64) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToInt) Get ¶
func (h *MapUint64ToInt) Get(k uint64) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToInt) Inc ¶
func (h *MapUint64ToInt) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToInt) Modify ¶
func (h *MapUint64ToInt) Modify(k uint64, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToInt) Put ¶
func (h *MapUint64ToInt) Put(k uint64, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt) Remove ¶
func (h *MapUint64ToInt) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToInt) Size ¶
func (h *MapUint64ToInt) Size() int
Size returns the current size of the map.
func (*MapUint64ToInt) Visit ¶
func (h *MapUint64ToInt) Visit(fn func(uint64, int))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToInt16 ¶
type MapUint64ToInt16 struct {
// contains filtered or unexported fields
}
MapUint64ToInt16 implements a hash map from uint64 to int16.
func NewMapUint64ToInt16 ¶
func NewMapUint64ToInt16(size int) *MapUint64ToInt16
NewMapUint64ToInt16 creates a new MapUint64ToInt16 with at least a size of size.
func (*MapUint64ToInt16) Add ¶
func (h *MapUint64ToInt16) Add(k uint64, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt16) Clear ¶
func (h *MapUint64ToInt16) Clear()
Clear removes all elements from the map.
func (*MapUint64ToInt16) Contains ¶
func (h *MapUint64ToInt16) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToInt16) Find ¶
func (h *MapUint64ToInt16) Find(k uint64) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToInt16) Get ¶
func (h *MapUint64ToInt16) Get(k uint64) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToInt16) Inc ¶
func (h *MapUint64ToInt16) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToInt16) Modify ¶
func (h *MapUint64ToInt16) Modify(k uint64, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToInt16) Put ¶
func (h *MapUint64ToInt16) Put(k uint64, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt16) Remove ¶
func (h *MapUint64ToInt16) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToInt16) Size ¶
func (h *MapUint64ToInt16) Size() int
Size returns the current size of the map.
func (*MapUint64ToInt16) Visit ¶
func (h *MapUint64ToInt16) Visit(fn func(uint64, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToInt32 ¶
type MapUint64ToInt32 struct {
// contains filtered or unexported fields
}
MapUint64ToInt32 implements a hash map from uint64 to int32.
func NewMapUint64ToInt32 ¶
func NewMapUint64ToInt32(size int) *MapUint64ToInt32
NewMapUint64ToInt32 creates a new MapUint64ToInt32 with at least a size of size.
func (*MapUint64ToInt32) Add ¶
func (h *MapUint64ToInt32) Add(k uint64, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt32) Clear ¶
func (h *MapUint64ToInt32) Clear()
Clear removes all elements from the map.
func (*MapUint64ToInt32) Contains ¶
func (h *MapUint64ToInt32) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToInt32) Find ¶
func (h *MapUint64ToInt32) Find(k uint64) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToInt32) Get ¶
func (h *MapUint64ToInt32) Get(k uint64) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToInt32) Inc ¶
func (h *MapUint64ToInt32) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToInt32) Modify ¶
func (h *MapUint64ToInt32) Modify(k uint64, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToInt32) Put ¶
func (h *MapUint64ToInt32) Put(k uint64, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt32) Remove ¶
func (h *MapUint64ToInt32) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToInt32) Size ¶
func (h *MapUint64ToInt32) Size() int
Size returns the current size of the map.
func (*MapUint64ToInt32) Visit ¶
func (h *MapUint64ToInt32) Visit(fn func(uint64, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToInt64 ¶
type MapUint64ToInt64 struct {
// contains filtered or unexported fields
}
MapUint64ToInt64 implements a hash map from uint64 to int64.
func NewMapUint64ToInt64 ¶
func NewMapUint64ToInt64(size int) *MapUint64ToInt64
NewMapUint64ToInt64 creates a new MapUint64ToInt64 with at least a size of size.
func (*MapUint64ToInt64) Add ¶
func (h *MapUint64ToInt64) Add(k uint64, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt64) Clear ¶
func (h *MapUint64ToInt64) Clear()
Clear removes all elements from the map.
func (*MapUint64ToInt64) Contains ¶
func (h *MapUint64ToInt64) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToInt64) Find ¶
func (h *MapUint64ToInt64) Find(k uint64) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToInt64) Get ¶
func (h *MapUint64ToInt64) Get(k uint64) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToInt64) Inc ¶
func (h *MapUint64ToInt64) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToInt64) Modify ¶
func (h *MapUint64ToInt64) Modify(k uint64, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToInt64) Put ¶
func (h *MapUint64ToInt64) Put(k uint64, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt64) Remove ¶
func (h *MapUint64ToInt64) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToInt64) Size ¶
func (h *MapUint64ToInt64) Size() int
Size returns the current size of the map.
func (*MapUint64ToInt64) Visit ¶
func (h *MapUint64ToInt64) Visit(fn func(uint64, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToInt8 ¶
type MapUint64ToInt8 struct {
// contains filtered or unexported fields
}
MapUint64ToInt8 implements a hash map from uint64 to int8.
func NewMapUint64ToInt8 ¶
func NewMapUint64ToInt8(size int) *MapUint64ToInt8
NewMapUint64ToInt8 creates a new MapUint64ToInt8 with at least a size of size.
func (*MapUint64ToInt8) Add ¶
func (h *MapUint64ToInt8) Add(k uint64, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt8) Clear ¶
func (h *MapUint64ToInt8) Clear()
Clear removes all elements from the map.
func (*MapUint64ToInt8) Contains ¶
func (h *MapUint64ToInt8) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToInt8) Find ¶
func (h *MapUint64ToInt8) Find(k uint64) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToInt8) Get ¶
func (h *MapUint64ToInt8) Get(k uint64) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToInt8) Inc ¶
func (h *MapUint64ToInt8) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToInt8) Modify ¶
func (h *MapUint64ToInt8) Modify(k uint64, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToInt8) Put ¶
func (h *MapUint64ToInt8) Put(k uint64, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToInt8) Remove ¶
func (h *MapUint64ToInt8) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToInt8) Size ¶
func (h *MapUint64ToInt8) Size() int
Size returns the current size of the map.
func (*MapUint64ToInt8) Visit ¶
func (h *MapUint64ToInt8) Visit(fn func(uint64, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToUint ¶
type MapUint64ToUint struct {
// contains filtered or unexported fields
}
MapUint64ToUint implements a hash map from uint64 to uint.
func NewMapUint64ToUint ¶
func NewMapUint64ToUint(size int) *MapUint64ToUint
NewMapUint64ToUint creates a new MapUint64ToUint with at least a size of size.
func (*MapUint64ToUint) Add ¶
func (h *MapUint64ToUint) Add(k uint64, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint) Clear ¶
func (h *MapUint64ToUint) Clear()
Clear removes all elements from the map.
func (*MapUint64ToUint) Contains ¶
func (h *MapUint64ToUint) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToUint) Find ¶
func (h *MapUint64ToUint) Find(k uint64) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToUint) Get ¶
func (h *MapUint64ToUint) Get(k uint64) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToUint) Inc ¶
func (h *MapUint64ToUint) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToUint) Modify ¶
func (h *MapUint64ToUint) Modify(k uint64, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToUint) Put ¶
func (h *MapUint64ToUint) Put(k uint64, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint) Remove ¶
func (h *MapUint64ToUint) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToUint) Size ¶
func (h *MapUint64ToUint) Size() int
Size returns the current size of the map.
func (*MapUint64ToUint) Visit ¶
func (h *MapUint64ToUint) Visit(fn func(uint64, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToUint16 ¶
type MapUint64ToUint16 struct {
// contains filtered or unexported fields
}
MapUint64ToUint16 implements a hash map from uint64 to uint16.
func NewMapUint64ToUint16 ¶
func NewMapUint64ToUint16(size int) *MapUint64ToUint16
NewMapUint64ToUint16 creates a new MapUint64ToUint16 with at least a size of size.
func (*MapUint64ToUint16) Add ¶
func (h *MapUint64ToUint16) Add(k uint64, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint16) Clear ¶
func (h *MapUint64ToUint16) Clear()
Clear removes all elements from the map.
func (*MapUint64ToUint16) Contains ¶
func (h *MapUint64ToUint16) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToUint16) Find ¶
func (h *MapUint64ToUint16) Find(k uint64) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToUint16) Get ¶
func (h *MapUint64ToUint16) Get(k uint64) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToUint16) Inc ¶
func (h *MapUint64ToUint16) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToUint16) Modify ¶
func (h *MapUint64ToUint16) Modify(k uint64, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToUint16) Put ¶
func (h *MapUint64ToUint16) Put(k uint64, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint16) Remove ¶
func (h *MapUint64ToUint16) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToUint16) Size ¶
func (h *MapUint64ToUint16) Size() int
Size returns the current size of the map.
func (*MapUint64ToUint16) Visit ¶
func (h *MapUint64ToUint16) Visit(fn func(uint64, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToUint32 ¶
type MapUint64ToUint32 struct {
// contains filtered or unexported fields
}
MapUint64ToUint32 implements a hash map from uint64 to uint32.
func NewMapUint64ToUint32 ¶
func NewMapUint64ToUint32(size int) *MapUint64ToUint32
NewMapUint64ToUint32 creates a new MapUint64ToUint32 with at least a size of size.
func (*MapUint64ToUint32) Add ¶
func (h *MapUint64ToUint32) Add(k uint64, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint32) Clear ¶
func (h *MapUint64ToUint32) Clear()
Clear removes all elements from the map.
func (*MapUint64ToUint32) Contains ¶
func (h *MapUint64ToUint32) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToUint32) Find ¶
func (h *MapUint64ToUint32) Find(k uint64) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToUint32) Get ¶
func (h *MapUint64ToUint32) Get(k uint64) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToUint32) Inc ¶
func (h *MapUint64ToUint32) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToUint32) Modify ¶
func (h *MapUint64ToUint32) Modify(k uint64, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToUint32) Put ¶
func (h *MapUint64ToUint32) Put(k uint64, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint32) Remove ¶
func (h *MapUint64ToUint32) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToUint32) Size ¶
func (h *MapUint64ToUint32) Size() int
Size returns the current size of the map.
func (*MapUint64ToUint32) Visit ¶
func (h *MapUint64ToUint32) Visit(fn func(uint64, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToUint64 ¶
type MapUint64ToUint64 struct {
// contains filtered or unexported fields
}
MapUint64ToUint64 implements a hash map from uint64 to uint64.
func NewMapUint64ToUint64 ¶
func NewMapUint64ToUint64(size int) *MapUint64ToUint64
NewMapUint64ToUint64 creates a new MapUint64ToUint64 with at least a size of size.
func (*MapUint64ToUint64) Add ¶
func (h *MapUint64ToUint64) Add(k uint64, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint64) Clear ¶
func (h *MapUint64ToUint64) Clear()
Clear removes all elements from the map.
func (*MapUint64ToUint64) Contains ¶
func (h *MapUint64ToUint64) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToUint64) Find ¶
func (h *MapUint64ToUint64) Find(k uint64) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToUint64) Get ¶
func (h *MapUint64ToUint64) Get(k uint64) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToUint64) Inc ¶
func (h *MapUint64ToUint64) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToUint64) Modify ¶
func (h *MapUint64ToUint64) Modify(k uint64, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToUint64) Put ¶
func (h *MapUint64ToUint64) Put(k uint64, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint64) Remove ¶
func (h *MapUint64ToUint64) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToUint64) Size ¶
func (h *MapUint64ToUint64) Size() int
Size returns the current size of the map.
func (*MapUint64ToUint64) Visit ¶
func (h *MapUint64ToUint64) Visit(fn func(uint64, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint64ToUint8 ¶
type MapUint64ToUint8 struct {
// contains filtered or unexported fields
}
MapUint64ToUint8 implements a hash map from uint64 to uint8.
func NewMapUint64ToUint8 ¶
func NewMapUint64ToUint8(size int) *MapUint64ToUint8
NewMapUint64ToUint8 creates a new MapUint64ToUint8 with at least a size of size.
func (*MapUint64ToUint8) Add ¶
func (h *MapUint64ToUint8) Add(k uint64, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint8) Clear ¶
func (h *MapUint64ToUint8) Clear()
Clear removes all elements from the map.
func (*MapUint64ToUint8) Contains ¶
func (h *MapUint64ToUint8) Contains(k uint64) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint64ToUint8) Find ¶
func (h *MapUint64ToUint8) Find(k uint64) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint64ToUint8) Get ¶
func (h *MapUint64ToUint8) Get(k uint64) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint64ToUint8) Inc ¶
func (h *MapUint64ToUint8) Inc(k uint64)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint64ToUint8) Modify ¶
func (h *MapUint64ToUint8) Modify(k uint64, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint64ToUint8) Put ¶
func (h *MapUint64ToUint8) Put(k uint64, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint64ToUint8) Remove ¶
func (h *MapUint64ToUint8) Remove(k uint64)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint64ToUint8) Size ¶
func (h *MapUint64ToUint8) Size() int
Size returns the current size of the map.
func (*MapUint64ToUint8) Visit ¶
func (h *MapUint64ToUint8) Visit(fn func(uint64, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToInt ¶
type MapUint8ToInt struct {
// contains filtered or unexported fields
}
MapUint8ToInt implements a hash map from uint8 to int.
func NewMapUint8ToInt ¶
func NewMapUint8ToInt(size int) *MapUint8ToInt
NewMapUint8ToInt creates a new MapUint8ToInt with at least a size of size.
func (*MapUint8ToInt) Add ¶
func (h *MapUint8ToInt) Add(k uint8, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt) Clear ¶
func (h *MapUint8ToInt) Clear()
Clear removes all elements from the map.
func (*MapUint8ToInt) Contains ¶
func (h *MapUint8ToInt) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToInt) Find ¶
func (h *MapUint8ToInt) Find(k uint8) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToInt) Get ¶
func (h *MapUint8ToInt) Get(k uint8) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToInt) Inc ¶
func (h *MapUint8ToInt) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToInt) Modify ¶
func (h *MapUint8ToInt) Modify(k uint8, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToInt) Put ¶
func (h *MapUint8ToInt) Put(k uint8, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt) Remove ¶
func (h *MapUint8ToInt) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToInt) Size ¶
func (h *MapUint8ToInt) Size() int
Size returns the current size of the map.
func (*MapUint8ToInt) Visit ¶
func (h *MapUint8ToInt) Visit(fn func(uint8, int))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToInt16 ¶
type MapUint8ToInt16 struct {
// contains filtered or unexported fields
}
MapUint8ToInt16 implements a hash map from uint8 to int16.
func NewMapUint8ToInt16 ¶
func NewMapUint8ToInt16(size int) *MapUint8ToInt16
NewMapUint8ToInt16 creates a new MapUint8ToInt16 with at least a size of size.
func (*MapUint8ToInt16) Add ¶
func (h *MapUint8ToInt16) Add(k uint8, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt16) Clear ¶
func (h *MapUint8ToInt16) Clear()
Clear removes all elements from the map.
func (*MapUint8ToInt16) Contains ¶
func (h *MapUint8ToInt16) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToInt16) Find ¶
func (h *MapUint8ToInt16) Find(k uint8) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToInt16) Get ¶
func (h *MapUint8ToInt16) Get(k uint8) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToInt16) Inc ¶
func (h *MapUint8ToInt16) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToInt16) Modify ¶
func (h *MapUint8ToInt16) Modify(k uint8, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToInt16) Put ¶
func (h *MapUint8ToInt16) Put(k uint8, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt16) Remove ¶
func (h *MapUint8ToInt16) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToInt16) Size ¶
func (h *MapUint8ToInt16) Size() int
Size returns the current size of the map.
func (*MapUint8ToInt16) Visit ¶
func (h *MapUint8ToInt16) Visit(fn func(uint8, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToInt32 ¶
type MapUint8ToInt32 struct {
// contains filtered or unexported fields
}
MapUint8ToInt32 implements a hash map from uint8 to int32.
func NewMapUint8ToInt32 ¶
func NewMapUint8ToInt32(size int) *MapUint8ToInt32
NewMapUint8ToInt32 creates a new MapUint8ToInt32 with at least a size of size.
func (*MapUint8ToInt32) Add ¶
func (h *MapUint8ToInt32) Add(k uint8, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt32) Clear ¶
func (h *MapUint8ToInt32) Clear()
Clear removes all elements from the map.
func (*MapUint8ToInt32) Contains ¶
func (h *MapUint8ToInt32) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToInt32) Find ¶
func (h *MapUint8ToInt32) Find(k uint8) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToInt32) Get ¶
func (h *MapUint8ToInt32) Get(k uint8) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToInt32) Inc ¶
func (h *MapUint8ToInt32) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToInt32) Modify ¶
func (h *MapUint8ToInt32) Modify(k uint8, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToInt32) Put ¶
func (h *MapUint8ToInt32) Put(k uint8, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt32) Remove ¶
func (h *MapUint8ToInt32) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToInt32) Size ¶
func (h *MapUint8ToInt32) Size() int
Size returns the current size of the map.
func (*MapUint8ToInt32) Visit ¶
func (h *MapUint8ToInt32) Visit(fn func(uint8, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToInt64 ¶
type MapUint8ToInt64 struct {
// contains filtered or unexported fields
}
MapUint8ToInt64 implements a hash map from uint8 to int64.
func NewMapUint8ToInt64 ¶
func NewMapUint8ToInt64(size int) *MapUint8ToInt64
NewMapUint8ToInt64 creates a new MapUint8ToInt64 with at least a size of size.
func (*MapUint8ToInt64) Add ¶
func (h *MapUint8ToInt64) Add(k uint8, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt64) Clear ¶
func (h *MapUint8ToInt64) Clear()
Clear removes all elements from the map.
func (*MapUint8ToInt64) Contains ¶
func (h *MapUint8ToInt64) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToInt64) Find ¶
func (h *MapUint8ToInt64) Find(k uint8) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToInt64) Get ¶
func (h *MapUint8ToInt64) Get(k uint8) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToInt64) Inc ¶
func (h *MapUint8ToInt64) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToInt64) Modify ¶
func (h *MapUint8ToInt64) Modify(k uint8, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToInt64) Put ¶
func (h *MapUint8ToInt64) Put(k uint8, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt64) Remove ¶
func (h *MapUint8ToInt64) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToInt64) Size ¶
func (h *MapUint8ToInt64) Size() int
Size returns the current size of the map.
func (*MapUint8ToInt64) Visit ¶
func (h *MapUint8ToInt64) Visit(fn func(uint8, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToInt8 ¶
type MapUint8ToInt8 struct {
// contains filtered or unexported fields
}
MapUint8ToInt8 implements a hash map from uint8 to int8.
func NewMapUint8ToInt8 ¶
func NewMapUint8ToInt8(size int) *MapUint8ToInt8
NewMapUint8ToInt8 creates a new MapUint8ToInt8 with at least a size of size.
func (*MapUint8ToInt8) Add ¶
func (h *MapUint8ToInt8) Add(k uint8, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt8) Clear ¶
func (h *MapUint8ToInt8) Clear()
Clear removes all elements from the map.
func (*MapUint8ToInt8) Contains ¶
func (h *MapUint8ToInt8) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToInt8) Find ¶
func (h *MapUint8ToInt8) Find(k uint8) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToInt8) Get ¶
func (h *MapUint8ToInt8) Get(k uint8) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToInt8) Inc ¶
func (h *MapUint8ToInt8) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToInt8) Modify ¶
func (h *MapUint8ToInt8) Modify(k uint8, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToInt8) Put ¶
func (h *MapUint8ToInt8) Put(k uint8, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToInt8) Remove ¶
func (h *MapUint8ToInt8) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToInt8) Size ¶
func (h *MapUint8ToInt8) Size() int
Size returns the current size of the map.
func (*MapUint8ToInt8) Visit ¶
func (h *MapUint8ToInt8) Visit(fn func(uint8, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToUint ¶
type MapUint8ToUint struct {
// contains filtered or unexported fields
}
MapUint8ToUint implements a hash map from uint8 to uint.
func NewMapUint8ToUint ¶
func NewMapUint8ToUint(size int) *MapUint8ToUint
NewMapUint8ToUint creates a new MapUint8ToUint with at least a size of size.
func (*MapUint8ToUint) Add ¶
func (h *MapUint8ToUint) Add(k uint8, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint) Clear ¶
func (h *MapUint8ToUint) Clear()
Clear removes all elements from the map.
func (*MapUint8ToUint) Contains ¶
func (h *MapUint8ToUint) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToUint) Find ¶
func (h *MapUint8ToUint) Find(k uint8) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToUint) Get ¶
func (h *MapUint8ToUint) Get(k uint8) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToUint) Inc ¶
func (h *MapUint8ToUint) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToUint) Modify ¶
func (h *MapUint8ToUint) Modify(k uint8, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToUint) Put ¶
func (h *MapUint8ToUint) Put(k uint8, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint) Remove ¶
func (h *MapUint8ToUint) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToUint) Size ¶
func (h *MapUint8ToUint) Size() int
Size returns the current size of the map.
func (*MapUint8ToUint) Visit ¶
func (h *MapUint8ToUint) Visit(fn func(uint8, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToUint16 ¶
type MapUint8ToUint16 struct {
// contains filtered or unexported fields
}
MapUint8ToUint16 implements a hash map from uint8 to uint16.
func NewMapUint8ToUint16 ¶
func NewMapUint8ToUint16(size int) *MapUint8ToUint16
NewMapUint8ToUint16 creates a new MapUint8ToUint16 with at least a size of size.
func (*MapUint8ToUint16) Add ¶
func (h *MapUint8ToUint16) Add(k uint8, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint16) Clear ¶
func (h *MapUint8ToUint16) Clear()
Clear removes all elements from the map.
func (*MapUint8ToUint16) Contains ¶
func (h *MapUint8ToUint16) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToUint16) Find ¶
func (h *MapUint8ToUint16) Find(k uint8) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToUint16) Get ¶
func (h *MapUint8ToUint16) Get(k uint8) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToUint16) Inc ¶
func (h *MapUint8ToUint16) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToUint16) Modify ¶
func (h *MapUint8ToUint16) Modify(k uint8, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToUint16) Put ¶
func (h *MapUint8ToUint16) Put(k uint8, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint16) Remove ¶
func (h *MapUint8ToUint16) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToUint16) Size ¶
func (h *MapUint8ToUint16) Size() int
Size returns the current size of the map.
func (*MapUint8ToUint16) Visit ¶
func (h *MapUint8ToUint16) Visit(fn func(uint8, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToUint32 ¶
type MapUint8ToUint32 struct {
// contains filtered or unexported fields
}
MapUint8ToUint32 implements a hash map from uint8 to uint32.
func NewMapUint8ToUint32 ¶
func NewMapUint8ToUint32(size int) *MapUint8ToUint32
NewMapUint8ToUint32 creates a new MapUint8ToUint32 with at least a size of size.
func (*MapUint8ToUint32) Add ¶
func (h *MapUint8ToUint32) Add(k uint8, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint32) Clear ¶
func (h *MapUint8ToUint32) Clear()
Clear removes all elements from the map.
func (*MapUint8ToUint32) Contains ¶
func (h *MapUint8ToUint32) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToUint32) Find ¶
func (h *MapUint8ToUint32) Find(k uint8) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToUint32) Get ¶
func (h *MapUint8ToUint32) Get(k uint8) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToUint32) Inc ¶
func (h *MapUint8ToUint32) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToUint32) Modify ¶
func (h *MapUint8ToUint32) Modify(k uint8, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToUint32) Put ¶
func (h *MapUint8ToUint32) Put(k uint8, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint32) Remove ¶
func (h *MapUint8ToUint32) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToUint32) Size ¶
func (h *MapUint8ToUint32) Size() int
Size returns the current size of the map.
func (*MapUint8ToUint32) Visit ¶
func (h *MapUint8ToUint32) Visit(fn func(uint8, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToUint64 ¶
type MapUint8ToUint64 struct {
// contains filtered or unexported fields
}
MapUint8ToUint64 implements a hash map from uint8 to uint64.
func NewMapUint8ToUint64 ¶
func NewMapUint8ToUint64(size int) *MapUint8ToUint64
NewMapUint8ToUint64 creates a new MapUint8ToUint64 with at least a size of size.
func (*MapUint8ToUint64) Add ¶
func (h *MapUint8ToUint64) Add(k uint8, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint64) Clear ¶
func (h *MapUint8ToUint64) Clear()
Clear removes all elements from the map.
func (*MapUint8ToUint64) Contains ¶
func (h *MapUint8ToUint64) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToUint64) Find ¶
func (h *MapUint8ToUint64) Find(k uint8) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToUint64) Get ¶
func (h *MapUint8ToUint64) Get(k uint8) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToUint64) Inc ¶
func (h *MapUint8ToUint64) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToUint64) Modify ¶
func (h *MapUint8ToUint64) Modify(k uint8, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToUint64) Put ¶
func (h *MapUint8ToUint64) Put(k uint8, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint64) Remove ¶
func (h *MapUint8ToUint64) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToUint64) Size ¶
func (h *MapUint8ToUint64) Size() int
Size returns the current size of the map.
func (*MapUint8ToUint64) Visit ¶
func (h *MapUint8ToUint64) Visit(fn func(uint8, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapUint8ToUint8 ¶
type MapUint8ToUint8 struct {
// contains filtered or unexported fields
}
MapUint8ToUint8 implements a hash map from uint8 to uint8.
func NewMapUint8ToUint8 ¶
func NewMapUint8ToUint8(size int) *MapUint8ToUint8
NewMapUint8ToUint8 creates a new MapUint8ToUint8 with at least a size of size.
func (*MapUint8ToUint8) Add ¶
func (h *MapUint8ToUint8) Add(k uint8, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint8) Clear ¶
func (h *MapUint8ToUint8) Clear()
Clear removes all elements from the map.
func (*MapUint8ToUint8) Contains ¶
func (h *MapUint8ToUint8) Contains(k uint8) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUint8ToUint8) Find ¶
func (h *MapUint8ToUint8) Find(k uint8) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUint8ToUint8) Get ¶
func (h *MapUint8ToUint8) Get(k uint8) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUint8ToUint8) Inc ¶
func (h *MapUint8ToUint8) Inc(k uint8)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUint8ToUint8) Modify ¶
func (h *MapUint8ToUint8) Modify(k uint8, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUint8ToUint8) Put ¶
func (h *MapUint8ToUint8) Put(k uint8, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUint8ToUint8) Remove ¶
func (h *MapUint8ToUint8) Remove(k uint8)
Remove removes the key/value pair associated with key k from this map..
func (*MapUint8ToUint8) Size ¶
func (h *MapUint8ToUint8) Size() int
Size returns the current size of the map.
func (*MapUint8ToUint8) Visit ¶
func (h *MapUint8ToUint8) Visit(fn func(uint8, uint8))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToInt ¶
type MapUintToInt struct {
// contains filtered or unexported fields
}
MapUintToInt implements a hash map from uint to int.
func NewMapUintToInt ¶
func NewMapUintToInt(size int) *MapUintToInt
NewMapUintToInt creates a new MapUintToInt with at least a size of size.
func (*MapUintToInt) Add ¶
func (h *MapUintToInt) Add(k uint, v int)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt) Clear ¶
func (h *MapUintToInt) Clear()
Clear removes all elements from the map.
func (*MapUintToInt) Contains ¶
func (h *MapUintToInt) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToInt) Find ¶
func (h *MapUintToInt) Find(k uint) (int, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToInt) Get ¶
func (h *MapUintToInt) Get(k uint) int
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToInt) Inc ¶
func (h *MapUintToInt) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToInt) Modify ¶
func (h *MapUintToInt) Modify(k uint, fn func(v *int))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToInt) Put ¶
func (h *MapUintToInt) Put(k uint, v int)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt) Remove ¶
func (h *MapUintToInt) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToInt) Size ¶
func (h *MapUintToInt) Size() int
Size returns the current size of the map.
func (*MapUintToInt) Visit ¶
func (h *MapUintToInt) Visit(fn func(uint, int))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToInt16 ¶
type MapUintToInt16 struct {
// contains filtered or unexported fields
}
MapUintToInt16 implements a hash map from uint to int16.
func NewMapUintToInt16 ¶
func NewMapUintToInt16(size int) *MapUintToInt16
NewMapUintToInt16 creates a new MapUintToInt16 with at least a size of size.
func (*MapUintToInt16) Add ¶
func (h *MapUintToInt16) Add(k uint, v int16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt16) Clear ¶
func (h *MapUintToInt16) Clear()
Clear removes all elements from the map.
func (*MapUintToInt16) Contains ¶
func (h *MapUintToInt16) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToInt16) Find ¶
func (h *MapUintToInt16) Find(k uint) (int16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToInt16) Get ¶
func (h *MapUintToInt16) Get(k uint) int16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToInt16) Inc ¶
func (h *MapUintToInt16) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToInt16) Modify ¶
func (h *MapUintToInt16) Modify(k uint, fn func(v *int16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToInt16) Put ¶
func (h *MapUintToInt16) Put(k uint, v int16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt16) Remove ¶
func (h *MapUintToInt16) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToInt16) Size ¶
func (h *MapUintToInt16) Size() int
Size returns the current size of the map.
func (*MapUintToInt16) Visit ¶
func (h *MapUintToInt16) Visit(fn func(uint, int16))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToInt32 ¶
type MapUintToInt32 struct {
// contains filtered or unexported fields
}
MapUintToInt32 implements a hash map from uint to int32.
func NewMapUintToInt32 ¶
func NewMapUintToInt32(size int) *MapUintToInt32
NewMapUintToInt32 creates a new MapUintToInt32 with at least a size of size.
func (*MapUintToInt32) Add ¶
func (h *MapUintToInt32) Add(k uint, v int32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt32) Clear ¶
func (h *MapUintToInt32) Clear()
Clear removes all elements from the map.
func (*MapUintToInt32) Contains ¶
func (h *MapUintToInt32) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToInt32) Find ¶
func (h *MapUintToInt32) Find(k uint) (int32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToInt32) Get ¶
func (h *MapUintToInt32) Get(k uint) int32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToInt32) Inc ¶
func (h *MapUintToInt32) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToInt32) Modify ¶
func (h *MapUintToInt32) Modify(k uint, fn func(v *int32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToInt32) Put ¶
func (h *MapUintToInt32) Put(k uint, v int32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt32) Remove ¶
func (h *MapUintToInt32) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToInt32) Size ¶
func (h *MapUintToInt32) Size() int
Size returns the current size of the map.
func (*MapUintToInt32) Visit ¶
func (h *MapUintToInt32) Visit(fn func(uint, int32))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToInt64 ¶
type MapUintToInt64 struct {
// contains filtered or unexported fields
}
MapUintToInt64 implements a hash map from uint to int64.
func NewMapUintToInt64 ¶
func NewMapUintToInt64(size int) *MapUintToInt64
NewMapUintToInt64 creates a new MapUintToInt64 with at least a size of size.
func (*MapUintToInt64) Add ¶
func (h *MapUintToInt64) Add(k uint, v int64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt64) Clear ¶
func (h *MapUintToInt64) Clear()
Clear removes all elements from the map.
func (*MapUintToInt64) Contains ¶
func (h *MapUintToInt64) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToInt64) Find ¶
func (h *MapUintToInt64) Find(k uint) (int64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToInt64) Get ¶
func (h *MapUintToInt64) Get(k uint) int64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToInt64) Inc ¶
func (h *MapUintToInt64) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToInt64) Modify ¶
func (h *MapUintToInt64) Modify(k uint, fn func(v *int64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToInt64) Put ¶
func (h *MapUintToInt64) Put(k uint, v int64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt64) Remove ¶
func (h *MapUintToInt64) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToInt64) Size ¶
func (h *MapUintToInt64) Size() int
Size returns the current size of the map.
func (*MapUintToInt64) Visit ¶
func (h *MapUintToInt64) Visit(fn func(uint, int64))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToInt8 ¶
type MapUintToInt8 struct {
// contains filtered or unexported fields
}
MapUintToInt8 implements a hash map from uint to int8.
func NewMapUintToInt8 ¶
func NewMapUintToInt8(size int) *MapUintToInt8
NewMapUintToInt8 creates a new MapUintToInt8 with at least a size of size.
func (*MapUintToInt8) Add ¶
func (h *MapUintToInt8) Add(k uint, v int8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt8) Clear ¶
func (h *MapUintToInt8) Clear()
Clear removes all elements from the map.
func (*MapUintToInt8) Contains ¶
func (h *MapUintToInt8) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToInt8) Find ¶
func (h *MapUintToInt8) Find(k uint) (int8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToInt8) Get ¶
func (h *MapUintToInt8) Get(k uint) int8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToInt8) Inc ¶
func (h *MapUintToInt8) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToInt8) Modify ¶
func (h *MapUintToInt8) Modify(k uint, fn func(v *int8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToInt8) Put ¶
func (h *MapUintToInt8) Put(k uint, v int8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToInt8) Remove ¶
func (h *MapUintToInt8) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToInt8) Size ¶
func (h *MapUintToInt8) Size() int
Size returns the current size of the map.
func (*MapUintToInt8) Visit ¶
func (h *MapUintToInt8) Visit(fn func(uint, int8))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToUint ¶
type MapUintToUint struct {
// contains filtered or unexported fields
}
MapUintToUint implements a hash map from uint to uint.
func NewMapUintToUint ¶
func NewMapUintToUint(size int) *MapUintToUint
NewMapUintToUint creates a new MapUintToUint with at least a size of size.
func (*MapUintToUint) Add ¶
func (h *MapUintToUint) Add(k uint, v uint)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint) Clear ¶
func (h *MapUintToUint) Clear()
Clear removes all elements from the map.
func (*MapUintToUint) Contains ¶
func (h *MapUintToUint) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToUint) Find ¶
func (h *MapUintToUint) Find(k uint) (uint, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToUint) Get ¶
func (h *MapUintToUint) Get(k uint) uint
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToUint) Inc ¶
func (h *MapUintToUint) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToUint) Modify ¶
func (h *MapUintToUint) Modify(k uint, fn func(v *uint))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToUint) Put ¶
func (h *MapUintToUint) Put(k uint, v uint)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint) Remove ¶
func (h *MapUintToUint) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToUint) Size ¶
func (h *MapUintToUint) Size() int
Size returns the current size of the map.
func (*MapUintToUint) Visit ¶
func (h *MapUintToUint) Visit(fn func(uint, uint))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToUint16 ¶
type MapUintToUint16 struct {
// contains filtered or unexported fields
}
MapUintToUint16 implements a hash map from uint to uint16.
func NewMapUintToUint16 ¶
func NewMapUintToUint16(size int) *MapUintToUint16
NewMapUintToUint16 creates a new MapUintToUint16 with at least a size of size.
func (*MapUintToUint16) Add ¶
func (h *MapUintToUint16) Add(k uint, v uint16)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint16) Clear ¶
func (h *MapUintToUint16) Clear()
Clear removes all elements from the map.
func (*MapUintToUint16) Contains ¶
func (h *MapUintToUint16) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToUint16) Find ¶
func (h *MapUintToUint16) Find(k uint) (uint16, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToUint16) Get ¶
func (h *MapUintToUint16) Get(k uint) uint16
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToUint16) Inc ¶
func (h *MapUintToUint16) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToUint16) Modify ¶
func (h *MapUintToUint16) Modify(k uint, fn func(v *uint16))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToUint16) Put ¶
func (h *MapUintToUint16) Put(k uint, v uint16)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint16) Remove ¶
func (h *MapUintToUint16) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToUint16) Size ¶
func (h *MapUintToUint16) Size() int
Size returns the current size of the map.
func (*MapUintToUint16) Visit ¶
func (h *MapUintToUint16) Visit(fn func(uint, uint16))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToUint32 ¶
type MapUintToUint32 struct {
// contains filtered or unexported fields
}
MapUintToUint32 implements a hash map from uint to uint32.
func NewMapUintToUint32 ¶
func NewMapUintToUint32(size int) *MapUintToUint32
NewMapUintToUint32 creates a new MapUintToUint32 with at least a size of size.
func (*MapUintToUint32) Add ¶
func (h *MapUintToUint32) Add(k uint, v uint32)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint32) Clear ¶
func (h *MapUintToUint32) Clear()
Clear removes all elements from the map.
func (*MapUintToUint32) Contains ¶
func (h *MapUintToUint32) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToUint32) Find ¶
func (h *MapUintToUint32) Find(k uint) (uint32, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToUint32) Get ¶
func (h *MapUintToUint32) Get(k uint) uint32
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToUint32) Inc ¶
func (h *MapUintToUint32) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToUint32) Modify ¶
func (h *MapUintToUint32) Modify(k uint, fn func(v *uint32))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToUint32) Put ¶
func (h *MapUintToUint32) Put(k uint, v uint32)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint32) Remove ¶
func (h *MapUintToUint32) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToUint32) Size ¶
func (h *MapUintToUint32) Size() int
Size returns the current size of the map.
func (*MapUintToUint32) Visit ¶
func (h *MapUintToUint32) Visit(fn func(uint, uint32))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToUint64 ¶
type MapUintToUint64 struct {
// contains filtered or unexported fields
}
MapUintToUint64 implements a hash map from uint to uint64.
func NewMapUintToUint64 ¶
func NewMapUintToUint64(size int) *MapUintToUint64
NewMapUintToUint64 creates a new MapUintToUint64 with at least a size of size.
func (*MapUintToUint64) Add ¶
func (h *MapUintToUint64) Add(k uint, v uint64)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint64) Clear ¶
func (h *MapUintToUint64) Clear()
Clear removes all elements from the map.
func (*MapUintToUint64) Contains ¶
func (h *MapUintToUint64) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToUint64) Find ¶
func (h *MapUintToUint64) Find(k uint) (uint64, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToUint64) Get ¶
func (h *MapUintToUint64) Get(k uint) uint64
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToUint64) Inc ¶
func (h *MapUintToUint64) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToUint64) Modify ¶
func (h *MapUintToUint64) Modify(k uint, fn func(v *uint64))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToUint64) Put ¶
func (h *MapUintToUint64) Put(k uint, v uint64)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint64) Remove ¶
func (h *MapUintToUint64) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToUint64) Size ¶
func (h *MapUintToUint64) Size() int
Size returns the current size of the map.
func (*MapUintToUint64) Visit ¶
func (h *MapUintToUint64) Visit(fn func(uint, uint64))
Visit calls a given function fn for every key/value pair in the map.
type MapUintToUint8 ¶
type MapUintToUint8 struct {
// contains filtered or unexported fields
}
MapUintToUint8 implements a hash map from uint to uint8.
func NewMapUintToUint8 ¶
func NewMapUintToUint8(size int) *MapUintToUint8
NewMapUintToUint8 creates a new MapUintToUint8 with at least a size of size.
func (*MapUintToUint8) Add ¶
func (h *MapUintToUint8) Add(k uint, v uint8)
Add increments the value associated with key k by the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint8) Clear ¶
func (h *MapUintToUint8) Clear()
Clear removes all elements from the map.
func (*MapUintToUint8) Contains ¶
func (h *MapUintToUint8) Contains(k uint) bool
Contains looks up a key k and returns true if it is found else false.
func (*MapUintToUint8) Find ¶
func (h *MapUintToUint8) Find(k uint) (uint8, bool)
Find looks up a key k and returns its value and true. 0 and false if not found.
func (*MapUintToUint8) Get ¶
func (h *MapUintToUint8) Get(k uint) uint8
Get looks up a key k and returns its value. 0 if not found.
func (*MapUintToUint8) Inc ¶
func (h *MapUintToUint8) Inc(k uint)
Inc increments a value associated with key k by one. A new entry is created with value 1 if the key does not exist.
func (*MapUintToUint8) Modify ¶
func (h *MapUintToUint8) Modify(k uint, fn func(v *uint8))
Modify looks up a key k and calls function fn with a pointer to its value.
func (*MapUintToUint8) Put ¶
func (h *MapUintToUint8) Put(k uint, v uint8)
Put sets the value associated with key k to the value of v. It creates a new key/value pair k/v in the map if the key does not exist.
func (*MapUintToUint8) Remove ¶
func (h *MapUintToUint8) Remove(k uint)
Remove removes the key/value pair associated with key k from this map..
func (*MapUintToUint8) Size ¶
func (h *MapUintToUint8) Size() int
Size returns the current size of the map.
func (*MapUintToUint8) Visit ¶
func (h *MapUintToUint8) Visit(fn func(uint, uint8))
Visit calls a given function fn for every key/value pair in the map.