Documentation ¶
Index ¶
- func NewLRUCache(capacity int) *lRUCache
- func NewTrieNode(char string) *trideNode
- type Element
- type ListObj
- type Node
- type NodeStruct
- type SkipList
- type Stack
- type TreeStruct
- func (this *TreeStruct) GetChildren() []*TreeStruct
- func (this *TreeStruct) GetHight() int
- func (this *TreeStruct) GetNode() []*NodeStruct
- func (this *TreeStruct) GetParent() *TreeStruct
- func (this *TreeStruct) GetRoot() *TreeStruct
- func (this *TreeStruct) IsLeaf() bool
- func (this *TreeStruct) IsRoot() bool
- func (this *TreeStruct) SetChildren(children *TreeStruct) *TreeStruct
- func (this *TreeStruct) SetHight(hight int) *TreeStruct
- func (this *TreeStruct) SetNode(node *NodeStruct) *TreeStruct
- func (this *TreeStruct) SetParent(tree *TreeStruct) *TreeStruct
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLRUCache ¶
func NewLRUCache(capacity int) *lRUCache
func NewTrieNode ¶
func NewTrieNode(char string) *trideNode
Types ¶
type Element ¶
type Element struct { Score float64 Value interface{} // contains filtered or unexported fields }
type ListObj ¶
type ListObj struct {
// contains filtered or unexported fields
}
func ListInstance ¶
func ListInstance() *ListObj
type NodeStruct ¶
type NodeStruct struct {
// contains filtered or unexported fields
}
func NodeInstance ¶
func NodeInstance(key []byte, value []byte) *NodeStruct
func (*NodeStruct) GetData ¶
func (this *NodeStruct) GetData() []byte
func (*NodeStruct) GetName ¶
func (this *NodeStruct) GetName() []byte
func (*NodeStruct) UpdateData ¶
func (this *NodeStruct) UpdateData(value []byte) *NodeStruct
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func StackInstance ¶
func StackInstance() *Stack
type TreeStruct ¶
type TreeStruct struct {
// contains filtered or unexported fields
}
func TreeInstance ¶
func TreeInstance() *TreeStruct
func (*TreeStruct) GetChildren ¶
func (this *TreeStruct) GetChildren() []*TreeStruct
func (*TreeStruct) GetHight ¶
func (this *TreeStruct) GetHight() int
func (*TreeStruct) GetNode ¶
func (this *TreeStruct) GetNode() []*NodeStruct
func (*TreeStruct) GetRoot ¶
func (this *TreeStruct) GetRoot() *TreeStruct
func (*TreeStruct) IsLeaf ¶
func (this *TreeStruct) IsLeaf() bool
func (*TreeStruct) IsRoot ¶
func (this *TreeStruct) IsRoot() bool
func (*TreeStruct) SetChildren ¶
func (this *TreeStruct) SetChildren(children *TreeStruct) *TreeStruct
func (*TreeStruct) SetHight ¶
func (this *TreeStruct) SetHight(hight int) *TreeStruct
func (*TreeStruct) SetNode ¶
func (this *TreeStruct) SetNode(node *NodeStruct) *TreeStruct
func (*TreeStruct) SetParent ¶
func (this *TreeStruct) SetParent(tree *TreeStruct) *TreeStruct
Source Files ¶
Click to show internal directories.
Click to hide internal directories.