line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Edit::Struct::Types; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Types for Data::Edit::Struct; |
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
86
|
use strict; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
340
|
|
6
|
11
|
|
|
11
|
|
59
|
use warnings; |
|
11
|
|
|
|
|
29
|
|
|
11
|
|
|
|
|
735
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.07'; |
9
|
|
|
|
|
|
|
|
10
|
11
|
|
|
11
|
|
5539
|
use Data::DPath qw[ dpath dpathi ]; |
|
11
|
|
|
|
|
1052230
|
|
|
11
|
|
|
|
|
93
|
|
11
|
|
|
|
|
|
|
use Type::Library |
12
|
11
|
|
|
|
|
161
|
-base, |
13
|
11
|
|
|
11
|
|
3699
|
-declare => qw( Context UseDataAs IntArray DataPath ); |
|
11
|
|
|
|
|
29
|
|
14
|
11
|
|
|
11
|
|
15366
|
use Type::Utils -all; |
|
11
|
|
|
|
|
52701
|
|
|
11
|
|
|
|
|
108
|
|
15
|
11
|
|
|
11
|
|
36875
|
use Types::Standard -types; |
|
11
|
|
|
|
|
27
|
|
|
11
|
|
|
|
|
83
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
declare Context, as InstanceOf ['Data::DPath::Context'],; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
coerce Context, from HashRef | ArrayRef | ScalarRef, via sub { dpathi( $_ ) }; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
declare UseDataAs, as Enum [ 'element', 'container', 'auto' ]; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
declare IntArray, as ArrayRef [Int]; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
coerce IntArray, from Int, via sub { [$_] }; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# |
36
|
|
|
|
|
|
|
# This file is part of Data-Edit-Struct |
37
|
|
|
|
|
|
|
# |
38
|
|
|
|
|
|
|
# This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
39
|
|
|
|
|
|
|
# |
40
|
|
|
|
|
|
|
# This is free software, licensed under: |
41
|
|
|
|
|
|
|
# |
42
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
43
|
|
|
|
|
|
|
# |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 NAME |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Data::Edit::Struct::Types - Types for Data::Edit::Struct; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
version 0.07 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SYNOPSIS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SEE ALSO |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Diab Jerius <djerius@cpan.org> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is free software, licensed under: |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |