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
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def element @element end |
#key ⇒ Object
Returns the value of attribute key
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def key @key end |
#left_child ⇒ Object
Returns the value of attribute left_child
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def left_child @left_child end |
#parent ⇒ Object
Returns the value of attribute parent
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def parent @parent end |
#rank ⇒ Object
Returns the value of attribute rank
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def rank @rank end |
#right_sibling ⇒ Object
Returns the value of attribute right_sibling
3 4 5 |
# File 'lib/lazy_priority_queue.rb', line 3 def right_sibling @right_sibling end |