class FlatTree::Iterator

Defined in:

iterator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : UInt64 = 0_u64, offset : UInt64 = 0_u64, factor : UInt64 = 0_u64) #

[View source]

Instance Method Detail

def contains(i : UInt64) #

[View source]
def factor : UInt64 #

[View source]
def factor=(factor : UInt64) #

[View source]
def full_root(i : UInt64) #

[View source]
def index : UInt64 #

[View source]
def index=(index : UInt64) #

[View source]
def is_left #

Is the iterator at a left sibling?


[View source]
def is_right #

Is the iterator at a right sibling?


[View source]
def left_child #

Move the iterator to the current left child index.


[View source]
def left_span #

Move the iterator to the current left span index.


[View source]
def next #

Move the iterator the next item in the tree.


[View source]
def next_tree #

[View source]
def offset : UInt64 #

[View source]
def offset=(offset : UInt64) #

[View source]
def parent #

Move the iterator to the current parent index


[View source]
def prev #

Move the iterator the prev item in the tree.


[View source]
def prev_tree #

[View source]
def right_child #

Move the iterator to the current right child index.


[View source]
def right_span #

Move the iterator to the current right span index.


[View source]
def seek(i : UInt64) #

Move the iterator the this specific tree index.


[View source]
def sibling #

Move the iterator to the current sibling


[View source]