Documentation ¶
Index ¶
- Constants
- func Label(offset, child Index) word.Code
- type Index
- type Interface
- type Node
- func (x Node) Generate(r *rand.Rand, size int) reflect.Value
- func (x Node) GetChild(label word.Code) Index
- func (x Node) GetNextEmptyNode() (Index, error)
- func (x Node) GetOffset() Index
- func (x Node) GetParent() Index
- func (x Node) GetPrevEmptyNode() (Index, error)
- func (x Node) HasOffset() bool
- func (x Node) HasParent() bool
- func (x Node) IsChildOf(parent Index) bool
- func (x Node) IsTerminal() bool
- func (x Node) IsUsed() bool
- func (x Node) MarshalBinary() ([]byte, error)
- func (x *Node) Reset(i int)
- func (x *Node) SetNextEmptyNode(i Index) error
- func (x *Node) SetOffset(i Index)
- func (x *Node) SetParent(i Index)
- func (x *Node) SetPrevEmptyNode(i Index) error
- func (x Node) String() string
- func (x *Node) Terminate()
- func (x *Node) UnmarshalBinary(data []byte) error
Constants ¶
View Source
const MaxIndex = 1<<29 - 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Index ¶
type Index uint32
type Interface ¶
type Interface interface { GetOffset() Index SetOffset(Index) Terminate() IsTerminal() bool SetParent(Index) IsChildOf(Index) bool GetChild(word.Code) Index IsUsed() bool GetNextEmptyNode() (Index, error) GetPrevEmptyNode() (Index, error) SetNextEmptyNode(Index) error SetPrevEmptyNode(Index) error Reset(int) String() string }
type Node ¶
type Node uint64
func (Node) GetNextEmptyNode ¶
func (Node) GetPrevEmptyNode ¶
func (Node) IsTerminal ¶
func (Node) MarshalBinary ¶
func (*Node) SetNextEmptyNode ¶
func (*Node) SetPrevEmptyNode ¶
func (*Node) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.