diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:33:44 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:33:44 +0000 |
commit | 15d8ff45fecd86558a00e1979a9800282793139c (patch) | |
tree | f3a12bb1eb1c39ee25f7f07f92d402eabc116def /lib/Data | |
parent | Build results of 44cf53d (on master) (diff) | |
parent | minor fixes after seeing it on CPAN (diff) | |
download | data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.tar.gz data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.tar.bz2 data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.zip |
Build results of 75f2023 (on master)
Diffstat (limited to 'lib/Data')
-rw-r--r-- | lib/Data/MultiValued/AttributeTrait.pm | 7 | ||||
-rw-r--r-- | lib/Data/MultiValued/Exceptions.pm | 4 | ||||
-rw-r--r-- | lib/Data/MultiValued/RangeContainer.pm | 13 | ||||
-rw-r--r-- | lib/Data/MultiValued/Ranges.pm | 12 | ||||
-rw-r--r-- | lib/Data/MultiValued/TagContainer.pm | 4 | ||||
-rw-r--r-- | lib/Data/MultiValued/Tags.pm | 4 | ||||
-rw-r--r-- | lib/Data/MultiValued/TagsAndRanges.pm | 9 |
7 files changed, 30 insertions, 23 deletions
diff --git a/lib/Data/MultiValued/AttributeTrait.pm b/lib/Data/MultiValued/AttributeTrait.pm index 988144b..e6a02ce 100644 --- a/lib/Data/MultiValued/AttributeTrait.pm +++ b/lib/Data/MultiValued/AttributeTrait.pm @@ -412,9 +412,10 @@ Retrieves a value from the multi-value object, and stores it in the regular slot in the instance. If the value is not found, clears the slot. -This traps the L<Data::MultiValued::Exceptions::NotFound> exception -that may be thrown by the multi-value object, but re-throws any other -exception. +This traps the +L<Data::MultiValued::Exceptions::NotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::NotFound> +exception that may be thrown by the multi-value object, but re-throws +any other exception. =head2 C<raw_clear_value> diff --git a/lib/Data/MultiValued/Exceptions.pm b/lib/Data/MultiValued/Exceptions.pm index 4d6a1b6..27f6dbf 100644 --- a/lib/Data/MultiValued/Exceptions.pm +++ b/lib/Data/MultiValued/Exceptions.pm @@ -120,7 +120,7 @@ containing the value that was not found. =head2 C<Data::MultiValued::Exceptions::TagNotFound> -Subclass of L<Data::MultiValued::Exceptions::NotFound>, for +Subclass of L</Data::MultiValued::Exceptions::NotFound>, for tags. Stringifies to: tag not found: $value @@ -129,7 +129,7 @@ tags. Stringifies to: =head2 C<Data::MultiValued::Exceptions::RangeNotFound> -Subclass of L<Data::MultiValued::Exceptions::NotFound>, for +Subclass of L</Data::MultiValued::Exceptions::NotFound>, for ranges. Stringifies to: no range found for value: $value diff --git a/lib/Data/MultiValued/RangeContainer.pm b/lib/Data/MultiValued/RangeContainer.pm index 0b8835b..18672bc 100644 --- a/lib/Data/MultiValued/RangeContainer.pm +++ b/lib/Data/MultiValued/RangeContainer.pm @@ -267,8 +267,8 @@ C<from> C<to> C<value>. my $value = $obj->get({ at => $point }); Retrieves the range that includes the given point. Throws a -L<Data::MultiValued::Exceptions::RangeNotFound> exception if no range -includes the point. +L<Data::MultiValued::Exceptions::RangeNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::RangeNotFound> +exception if no range includes the point. =head2 C<get_or_create> @@ -276,8 +276,9 @@ includes the point. Retrieves the range that has the given extremes. If no such range exists, creates a new range, splicing any existing overlapping range, -and returns it. Throws L<Data::MultiValued::Exceptions::BadRange> if -C<< $min > $max >>. +and returns it. Throws +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. =head2 C<clear> @@ -288,7 +289,9 @@ exists, splices any existing overlapping range so that C<< $obj->get({at => $point }) >> for any C<< $min <= $point < $max >> will die. -Throws L<Data::MultiValued::Exceptions::BadRange> if C<< $min > $max >>. +Throws +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. =head2 C<all_ranges> diff --git a/lib/Data/MultiValued/Ranges.pm b/lib/Data/MultiValued/Ranges.pm index f4a2a2d..ff62a43 100644 --- a/lib/Data/MultiValued/Ranges.pm +++ b/lib/Data/MultiValued/Ranges.pm @@ -111,7 +111,8 @@ version 0.0.1_2 $obj->set({ from => $min, to => $max, value => $the_value }); Stores the given value for the given range. Throws -L<Data::MultiValued::Exceptions::BadRange> if C<< $min > $max >>. +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. The range is defined as C<< Num $x : $min <= $x < $max >>. A C<< from => undef >> means "from -Inf", and a C<< to => undef >> means "to @@ -143,9 +144,9 @@ just stored. my $value = $obj->get({ at => $point }); Retrieves the value for the given point. Throws a -L<Data::MultiValued::Exceptions::RangeNotFound> exception if no ranges -exist in this object that include the point (remember that a range -does not include its C<to> point). +L<Data::MultiValued::Exceptions::RangeNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::RangeNotFound> +exception if no ranges exist in this object that include the point +(remember that a range does not include its C<to> point). A C<< at => undef >> means "at -Inf". Not passing in C<at> is equivalent to passing C<undef>. @@ -158,7 +159,8 @@ untouched. $obj->clear({ from => $min, to => $max }); Deletes all values for the given range. Throws -L<Data::MultiValued::Exceptions::BadRange> if C<< $min > $max >>. +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. A C<< from => undef >> means "from -Inf", and a C<< to => undef >> means "to +Inf". Not passing in C<from> or C<to> is equivalent to diff --git a/lib/Data/MultiValued/TagContainer.pm b/lib/Data/MultiValued/TagContainer.pm index 143b6f4..4a8d8b2 100644 --- a/lib/Data/MultiValued/TagContainer.pm +++ b/lib/Data/MultiValued/TagContainer.pm @@ -144,8 +144,8 @@ L</_create_new_inferior> (by default, a hashref). my $value = $obj->get({ tag => $the_tag }); Retrieves the "storage cell" for the given tag. Throws a -L<Data::MultiValued::Exceptions::TagNotFound> exception if the tag -does not exists in this object. +L<Data::MultiValued::Exceptions::TagNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::TagNotFound> +exception if the tag does not exists in this object. Not passing in a C<tag> is equivalent to passing in C<< tag => undef >>. diff --git a/lib/Data/MultiValued/Tags.pm b/lib/Data/MultiValued/Tags.pm index 1d93310..e3548cc 100644 --- a/lib/Data/MultiValued/Tags.pm +++ b/lib/Data/MultiValued/Tags.pm @@ -120,8 +120,8 @@ just stored. my $value = $obj->get({ tag => $the_tag }); Retrieves the value for the given tag. Throws a -L<Data::MultiValued::Exceptions::TagNotFound> exception if the tag -does not exists in this object. +L<Data::MultiValued::Exceptions::TagNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::TagNotFound> +exception if the tag does not exists in this object. Not passing in a C<tag> is equivalent to passing in C<< tag => undef >>. diff --git a/lib/Data/MultiValued/TagsAndRanges.pm b/lib/Data/MultiValued/TagsAndRanges.pm index 506d7e9..c1731eb 100644 --- a/lib/Data/MultiValued/TagsAndRanges.pm +++ b/lib/Data/MultiValued/TagsAndRanges.pm @@ -133,10 +133,11 @@ L<Data::MultiValued::Ranges/set> for more details. my $value = $obj->get({ tag => $the_tag, at => $point }); Retrieves the value for the given tag and point. Throws a -L<Data::MultiValued::Exceptions::RangeNotFound> exception if no ranges -exist in this object that include the point, and -L<Data::MultiValued::Exceptions::TagNotFound> exception if the tag -does not exists in this object. +L<Data::MultiValued::Exceptions::RangeNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::RangeNotFound> +exception if no ranges exist in this object that include the point, +and +L<Data::MultiValued::Exceptions::TagNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::TagNotFound> +exception if the tag does not exists in this object. See L<Data::MultiValued::Tags/get> and L<Data::MultiValued::Ranges/get> for more details. |