刘刊 > DynGig-Range-1.00 > DynGig::Range::Integer::Object

Download:
DynGig-Range-1.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

DynGig::Range::Integer::Object - Implements DynGig::Range::Interface::Object.

DESCRIPTION ^

min()

Returns the smallest element in range

max()

Returns the largest element in range

clear()

Returns the object after clearing its content.

empty()

Returns true if object is empty, false otherwise.

size()

Returns number of elements in range.

clone( object )

Returns a cloned object.

equal( object )

Overloads eq. Returns 1 if two objects are of equal value, 0 otherwise.

add( object )

Overloads +=. Returns the object after union with another object.

subtract( object )

Overloads -=. Returns the object after subtraction with another object.

intersect( object )

Overloads &=. Returns the object after intersection with another object.

list( skip => boolean )

Boundary value pairs if skip is set. Values of all elements otherwise. Returns ARRAY reference in scalar context. Returns ARRAY in list context.

string( %symbol )

Serializes object as string.

value( indices )

Values of elements to corresponding indices. Returns ARRAY reference in scalar context. Returns ARRAY in list context or only one index is given.

index( values )

Indices of elements to corresponding values. Returns ARRAY reference in scalar context. Returns ARRAY in list context or only one value is given.

subset( index1, index2 )

Returns an object that contains the inclusive subset within indices

insert( value1, value2 )

Insert elements delimited by two values. Returns the object.

remove( value1, value2 )

Remove elements delimited by two values. Returns an object containing the removed elements.

SEE ALSO ^

See DynGig::Range::Interface::Object for additional methods.

NOTE ^

See DynGig::Range

syntax highlighting: