PF2d::ThreadedBinaryTree::Node(T)
Inherits Struct < Value < Object
Using a struct avoids costly allocation and garbage collection
Constructors
new(value : T, left_index : UInt16 | Nil = nil, right_index : UInt16 | Nil = nil, thread_index : UInt16 | Nil = nil)
SourceInstance methods
insert(values : Enumerable(Node(T)), new_value : T, compare : T, T -> Int32, on_collision : T, T -> T | Nil = nil, at : UInt16 = 0, pred_index : UInt16 | Nil = nil)
Sourceleft_index
Sourceleft_index=(left_index : UInt16 | Nil)
Sourceleftmost(values : Enumerable(Node(T))) : Node(T)
Sourcenext(values : Enumerable(Node(T))) : Node(T) | Nil
Sourceright_index
Sourceright_index=(right_index : UInt16 | Nil)
Sourcethread_index
Sourcethread_index=(thread_index : UInt16 | Nil)
Sourcevalue
Sourcevalue=(value : T)
Source