Class: LazyPriorityQueue::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/lazy_priority_queue.rb

Instance Attribute Summary collapse

Instance Attribute Details

#elementObject

Returns the value of attribute element

Returns:

  • (Object)

    the current value of element



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def element
  @element
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def key
  @key
end

#left_childObject

Returns the value of attribute left_child

Returns:

  • (Object)

    the current value of left_child



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def left_child
  @left_child
end

#parentObject

Returns the value of attribute parent

Returns:

  • (Object)

    the current value of parent



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def parent
  @parent
end

#rankObject

Returns the value of attribute rank

Returns:

  • (Object)

    the current value of rank



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def rank
  @rank
end

#right_siblingObject

Returns the value of attribute right_sibling

Returns:

  • (Object)

    the current value of right_sibling



3
4
5
# File 'lib/lazy_priority_queue.rb', line 3

def right_sibling
  @right_sibling
end