NAME

CXC::Number::Grid::Range - Helper class to track Ranges

VERSION

version 0.11

DESCRIPTION

A utility class to manage Ranges when doing bin manipulations with trees.

OBJECT ATTRIBUTES

layer

The grid layer id

include

Whether this range is included or excluded.

lb

The inclusive range lower bound

ub

The exclusive range upper bound

METHODS

to_string

$string = $self->to_string

Return a string representation of the range.

concatenate

$string = $range->concatenate( $thing, $swap=false )

Concatenate the stringified version of $range with $thing.

Set $swap to true if the order should be reversed.

value

[ $layer, $include ] = $range->value;

Return an arrayref containing the layer id and the include value for the range.

OVERLOAD

""

Stringification is overloaded via the "to_string" method.

.

Concatenation is overloaded via the "concatenate" method.

INTERNALS

SUPPORT

Bugs

Please report any bugs or feature requests to bug-cxc-number@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=CXC-Number

Source

Source is available at

https://gitlab.com/djerius/cxc-number

and may be cloned from

https://gitlab.com/djerius/cxc-number.git

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007