Documentation ¶
Index ¶
- func ByteSliceMarshals() (ItemMarshal, ItemUnmarshal)
- func DoChildCount(node BinaryTreeNode) int
- func Int16Marshals() (ItemMarshal, ItemUnmarshal)
- func Int32Marshals() (ItemMarshal, ItemUnmarshal)
- func Int64Marshals() (ItemMarshal, ItemUnmarshal)
- func Int8Marshals() (ItemMarshal, ItemUnmarshal)
- func IntMarshals() (ItemMarshal, ItemUnmarshal)
- func IsNil(object interface{}) bool
- func MakeMarshals(empty func() MHashable) (ItemMarshal, ItemUnmarshal)
- func StringMarshals() (ItemMarshal, ItemUnmarshal)
- func UInt16Marshals() (ItemMarshal, ItemUnmarshal)
- func UInt32Marshals() (ItemMarshal, ItemUnmarshal)
- func UInt64Marshals() (ItemMarshal, ItemUnmarshal)
- func UInt8Marshals() (ItemMarshal, ItemUnmarshal)
- func UIntMarshals() (ItemMarshal, ItemUnmarshal)
- type BinaryTreeNode
- type ByteSlice
- type ContainerOperable
- type Coroutine
- type Deque
- type DequeOperable
- type Equatable
- type HList
- type Hashable
- type Int
- type Int16
- type Int32
- type Int64
- type Int8
- type ItemMarshal
- type ItemUnmarshal
- type ItemsOperable
- type Iterable
- type IterableContainer
- type Iterator
- type KIterable
- type KIterator
- type KVIterable
- type KVIterator
- type Linked
- type LinkedOperable
- type List
- type ListIterable
- type ListOperable
- type MHashable
- type Map
- type MapEntry
- type MapIterable
- type MapOperable
- type Marshaler
- type MultiMap
- type MultiMapOperable
- type OrderedList
- type OrderedOperable
- type Set
- type Sized
- type Sortable
- type Stack
- type StackOperable
- type String
- type Tree
- type TreeMap
- type TreeNode
- type TreeNodeIterator
- type UInt
- type UInt16
- type UInt32
- type UInt64
- type UInt8
- type VIterable
- type WhereFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceMarshals ¶
func ByteSliceMarshals() (ItemMarshal, ItemUnmarshal)
func DoChildCount ¶
func DoChildCount(node BinaryTreeNode) int
func Int16Marshals ¶
func Int16Marshals() (ItemMarshal, ItemUnmarshal)
func Int32Marshals ¶
func Int32Marshals() (ItemMarshal, ItemUnmarshal)
func Int64Marshals ¶
func Int64Marshals() (ItemMarshal, ItemUnmarshal)
func Int8Marshals ¶
func Int8Marshals() (ItemMarshal, ItemUnmarshal)
func IntMarshals ¶
func IntMarshals() (ItemMarshal, ItemUnmarshal)
func MakeMarshals ¶
func MakeMarshals(empty func() MHashable) (ItemMarshal, ItemUnmarshal)
func StringMarshals ¶
func StringMarshals() (ItemMarshal, ItemUnmarshal)
func UInt16Marshals ¶
func UInt16Marshals() (ItemMarshal, ItemUnmarshal)
func UInt32Marshals ¶
func UInt32Marshals() (ItemMarshal, ItemUnmarshal)
func UInt64Marshals ¶
func UInt64Marshals() (ItemMarshal, ItemUnmarshal)
func UInt8Marshals ¶
func UInt8Marshals() (ItemMarshal, ItemUnmarshal)
func UIntMarshals ¶
func UIntMarshals() (ItemMarshal, ItemUnmarshal)
Types ¶
type BinaryTreeNode ¶
type BinaryTreeNode interface { TreeNode Left() BinaryTreeNode Right() BinaryTreeNode }
type ByteSlice ¶
type ByteSlice []byte
func (*ByteSlice) MarshalBinary ¶
func (*ByteSlice) UnmarshalBinary ¶
type ContainerOperable ¶
type Deque ¶
type Deque interface { Sized ContainerOperable DequeOperable }
type DequeOperable ¶
type ItemMarshal ¶
type ItemUnmarshal ¶
type ItemsOperable ¶
type IterableContainer ¶
type IterableContainer interface { Sized ListIterable Has(item Hashable) bool }
type Iterator ¶
type Iterator func() (item interface{}, next Iterator)
func MakeValuesIterator ¶
func MakeValuesIterator(obj KVIterable) Iterator
type KIterator ¶
func MakeItemsIterator ¶
func MakeItemsIterator(obj KVIterable) (kit KIterator)
func MakeKeysIterator ¶
func MakeKeysIterator(obj KVIterable) KIterator
type KVIterable ¶
type KVIterable interface {
Iterate() KVIterator
}
type KVIterator ¶
type KVIterator func() (key Hashable, value interface{}, next KVIterator)
func MakeKVIteratorFromTreeNodeIterator ¶
func MakeKVIteratorFromTreeNodeIterator(tni TreeNodeIterator) KVIterator
type Linked ¶
type Linked interface { LinkedOperable ListIterable }
type LinkedOperable ¶
type LinkedOperable interface { Sized ContainerOperable StackOperable DequeOperable }
type List ¶
type List interface { ListIterable ListOperable }
type ListIterable ¶
type ListIterable interface {
Items() KIterator
}
type ListOperable ¶
type Map ¶
type Map interface { MapIterable MapOperable }
type MapIterable ¶
type MapIterable interface { KIterable VIterable KVIterable }
type MapOperable ¶
type MultiMap ¶
type MultiMap interface { MapIterable MultiMapOperable }
type MultiMapOperable ¶
type OrderedList ¶
type OrderedList interface { ListIterable OrderedOperable }
type OrderedOperable ¶
type Stack ¶
type Stack interface { Sized ContainerOperable StackOperable }
type StackOperable ¶
type TreeNode ¶
type TreeNode interface { Key() Hashable Value() interface{} Children() TreeNodeIterator GetChild(int) TreeNode // if your tree can't support this simply panic // many of the utility functions do not require this // however, it is recommended that you implement it // if possible (for instance, post-order traversal // requires it). ChildCount() int // a negative value indicates this tree can't provide }
func DoGetChild ¶
func DoGetChild(node BinaryTreeNode, i int) TreeNode
type TreeNodeIterator ¶
type TreeNodeIterator func() (node TreeNode, next TreeNodeIterator)
func ChainTreeNodeIterators ¶
func ChainTreeNodeIterators(tnis ...TreeNodeIterator) TreeNodeIterator
func MakeChildrenIterator ¶
func MakeChildrenIterator(node BinaryTreeNode) TreeNodeIterator
Click to show internal directories.
Click to hide internal directories.