Copyright © 2013-2016 Takeru Ohta <phjgt308@gmail.com>
data() = term()
The data of a ring_node()
.
key() = term()
The key of a ring_node()
.
option() = {weight, weight()}
weight:
1
.options() = [option()]
abstract datatype: ring_node()
A node on a ring.
weight() = number()
The non negative weight of a ring_node()
.
get_data/1 | Gets the data of Node |
get_key/1 | Gets the key of Node |
get_weight/1 | Gets the weight of Node |
is_node/1 | Returns true if X is a ring_node() , otherwise false |
make/1 | Equivalent to make(Key, Key). |
make/2 | Equivalent to make(Key, Data, []). |
make/3 | Creates a new ring_node() object. |
get_data(Node::ring_node()) -> data()
Gets the data of Node
get_key(Node::ring_node()) -> key()
Gets the key of Node
get_weight(Node::ring_node()) -> weight()
Gets the weight of Node
is_node(X::ring_node() | term()) -> boolean()
Returns true
if X
is a ring_node()
, otherwise false
make(Key::key()) -> ring_node()
Equivalent to make(Key, Key).
make(Key::key(), Data::data()) -> ring_node()
Equivalent to make(Key, Data, []).
make(Key::key(), Data::data(), Options::options()) -> ring_node()
Creates a new ring_node()
object
Generated by EDoc, Jul 8 2020, 21:51:52.