| 1 | package CXC::Gnuplot::V1::Bound::Numeric; | ||
| 2 | |||
| 3 | 1 | ▶ | use v5.38; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Object::Pad 0.821; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 5 | use CXC::Gnuplot::V1::Bound; | ||
| 6 | |||
| 7 | our $VERSION = 'v0.29.3'; | ||
| 8 | |||
| 9 | class CXC::Gnuplot::V1::Bound::Numeric : isa(CXC::Gnuplot::V1::Bound); | ||
| 10 | |||
| 11 | my sub croak { | ||
| 12 | require Carp; | ||
| 13 | goto \&Carp::croak; | ||
| 14 | } | ||
| 15 | |||
| 16 | use CXC::Gnuplot::V1::Types -lexical => 'Num', 'is_Num'; | ||
| 17 | use CXC::Gnuplot::V1::Util -lexical => 'pvalidate'; | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | ADJUST { | ||
| 30 | |||
| 31 | pvalidate( lower_bound => Num, \$self->lower_bound ); | ||
| 32 | pvalidate( upper_bound => Num, \$self->upper_bound ); | ||
| 33 | |||
| 34 | if ( !is_Num( $self->bound ) ) { | ||
| 35 | croak( '"bound" parameter must be a number or the character "*"' ) | ||
| 36 | if $self->bound ne q{*}; | ||
| 37 | } | ||
| 38 | elsif (defined $self->lower_bound | ||
| 39 | or defined $self->upper_bound ) | ||
| 40 | { | ||
| 41 | croak( | ||
| 42 | '"bound" parameter cannot be a number if any of the "upper_bound" or "lower_bound" parameters are specified', | ||
| 43 | ); | ||
| 44 | } | ||
| 45 | |||
| 46 | } | ||
| 47 | |||
| 48 | 1; | ||
| 49 | |||
| 50 | # | ||
| 51 | # This file is part of CXC-Gnuplot | ||
| 52 | # | ||
| 53 | # This software is Copyright (c) 2024 by Smithsonian Astrophysical Observatory. | ||
| 54 | # | ||
| 55 | # This is free software, licensed under: | ||
| 56 | # | ||
| 57 | # The GNU General Public License, Version 3, June 2007 | ||
| 58 | # | ||
| 59 | |||
| 60 | __END__ | ||