Dominique Dumont > Array-IntSpan-2.002 > Array::IntSpan
Annotate this POD  Related Modules    Open  0 View/Report Bugs
Module Version: 2.002   Source     Array::IntSpan - Handles
arrays of scalars or objects using IntSpan techniques     use
Array::IntSpan;         The new version of Array::IntSpan is
also able to consolidate the ranges by comparing the adjacent
values of the range. If 2 adjacent values are identical, the 2
adjacent ranges are merged.  Ranges of objects ^  Array::IntSpan
can also handle objects instead of scalar values.  But for the
consolidation to work, the payload class must overload the "",
eq and == operators to perform the consolidation comparisons.
When a get_range method is called to a range of objects, it will
return a new range of object referencess. These object
references points to the objects stored in the original range.
In other words the objects contained in the returned range are
not copied.  Thus if the user calls a methods on the objects
contained in the returned range,