1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
// Code generated by automation. DO NOT EDIT
package uint16_tree
// code common to the IPv4/IPv6 trees
// MatchesFunc is called to check if tag data matches the input value
type MatchesFunc func(payload uint16, val uint16) bool
// FilterFunc is called on each result to see if it belongs in the resulting set
type FilterFunc func(payload uint16) bool
// UpdatesFunc is called to update the tag value
type UpdatesFunc func(payload uint16) uint16
// treeIteratorNext is an indicator to know what Next() should return
// for the current node.
type treeIteratorNext int
const (
nextSelf treeIteratorNext = iota
nextLeft
nextRight
nextUp
)
// deleteNodeResult is the return type for deleteNode() function
type deleteNodeResult int
const (
notDeleted deleteNodeResult = iota
deletedNodeReplacedByChild
deletedNodeParentReplacedBySibling
deletedNodeJustRemoved
)
|