class SMultiSet::Treap::Node(T)
- SMultiSet::Treap::Node(T)
- Reference
- Object
Included Modules
Direct Known Subclasses
Defined in:
datastructure/smultiset/treap.crConstructors
Instance Method Summary
- #key : T
- #left : SMultiSet::Treap::Node(T)
- #left=(left : SMultiSet::Treap::Node(T))
- #left? : SMultiSet::Treap::Node(T)?
- #parent : SMultiSet::Treap::Node(T)
- #parent=(parent : SMultiSet::Treap::Node(T))
- #parent? : SMultiSet::Treap::Node(T)?
- #priority : Int32
- #right : SMultiSet::Treap::Node(T)
- #right=(right : SMultiSet::Treap::Node(T))
- #right? : SMultiSet::Treap::Node(T)?
- #split(split_key : T) : Tuple(SMultiSet::Treap::Node(T), SMultiSet::Treap::Node(T))
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from module TreeNode(T)
inspect(io : IO)
inspect,
key : T
key,
key! : T
key!,
key? : T?
key?,
left
left,
max_node : self
max_node,
min_node : self
min_node,
nil_node?
nil_node?,
node?
node?,
parent
parent,
pred : self
pred,
right
right,
succ : self
succ,
to_s(io : IO)
to_s
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>