Class: LazyPriorityQueue::Node
- Inherits:
-
Struct
- Object
- Struct
- LazyPriorityQueue::Node
- Defined in:
- lib/lazy_priority_queue.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
Returns the value of attribute element.
-
#key ⇒ Object
Returns the value of attribute key.
-
#left_child ⇒ Object
Returns the value of attribute left_child.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#right_sibling ⇒ Object
Returns the value of attribute right_sibling.
Instance Attribute Details
#element ⇒ Object
Returns the value of attribute element
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def element @element end |
#key ⇒ Object
Returns the value of attribute key
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def key @key end |
#left_child ⇒ Object
Returns the value of attribute left_child
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def left_child @left_child end |
#parent ⇒ Object
Returns the value of attribute parent
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def parent @parent end |
#rank ⇒ Object
Returns the value of attribute rank
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def rank @rank end |
#right_sibling ⇒ Object
Returns the value of attribute right_sibling
2 3 4 |
# File 'lib/lazy_priority_queue.rb', line 2 def right_sibling @right_sibling end |