AlignDB-IntSpan
view release on metacpan or search on metacpan
INTERFACE: Set contents
edges_ref
Return the internal used ArrayRef representing the set.
I don't think you should use this method.
edges
Return the internal used Array representing the set.
I don't think you should use this method.
edge_size
Return the number of edges
span_size
Return the number of spans
as_string
Return a string representation of the set.
as_array
Return an array containing all the members of the set in ascending
order.
INTERFACE: Span contents
ranges
Returns the runs in $set, as a list of ($lower, $upper)
spans
Returns the runs in $set, as a list of [$lower, $upper]
sets
Returns the runs in $set, as a list of AlignDB::IntSpan objects. The
sets in the list are in order.
runlists
Returns the runs in $set, as a list of "$lower-$upper"
INTERFACE: Set cardinality
cardinality
Returns the number of elements in $set.
is_empty
Return true if the set is empty.
is_not_empty
Return true if the set is not empty.
is_neg_inf
Return true if the set is negtive infinite.
is_pos_inf
Return true if the set is positive infinite.
is_infinite
Return true if the set is infinite.
is_finite
Return true if the set is finite.
is_universal
Return true if the set contains all integers.
INTERFACE: Membership test
contains_all
Return true if the set contains all of the specified numbers.
contains_any
Return true if the set contains any of the specified numbers.
INTERFACE: Member operations
add_pair
$set->add_pair($lower, $upper);
Add a pair of inclusive integers to the set.
A pair of arguments constitute a range
add_range
$set->add_range($lower, $upper);
Add the inclusive range of integers to the set.
Multiple ranges may be specified. Each pair of arguments constitute a
range
add_runlist
$set->add_runlist($runlist);
Add the specified runlist to the set.
add
( run in 1.577 second using v1.01-cache-2.11-cpan-39bf76dae61 )