line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Forest; |
2
|
1
|
|
|
1
|
|
22104
|
use Moose (); |
|
1
|
|
|
|
|
1988731
|
|
|
1
|
|
|
|
|
113
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.10'; |
5
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:STEVAN'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
1; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__END__ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=pod |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Forest - A collection of n-ary tree related modules |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Forest is intended to be a replacement for the L<Tree::Simple> family of modules, |
20
|
|
|
|
|
|
|
and fixes many of the issues that have always bothered me about them. It is by |
21
|
|
|
|
|
|
|
no means a complete replacement yet, but should eventually grow to become that. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
For more information please refer to the individual module documentation, |
24
|
|
|
|
|
|
|
starting with L<Forest::Tree>. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 TODO |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over 4 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item More documentation |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
This is 0.10 so it is (still) lacking quite a bit of docs (I am being really lazy sorry). |
33
|
|
|
|
|
|
|
Although I invite people to read the source, it is quite simple really. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=item More tests |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
The coverage is in the low 90s, but there is still a lot of behavioral stuff that could |
38
|
|
|
|
|
|
|
use some testing too. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=back |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SEE ALSO |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=over 4 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item L<Tree::Simple> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
I wrote this module a few years ago and I had served me well, but recently I find |
49
|
|
|
|
|
|
|
myself getting frustrated with some of the uglier bits of this module. So Forest is |
50
|
|
|
|
|
|
|
a re-write of this module. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item L<Tree> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is an ambitious project to replace all the Tree related modules with a single |
55
|
|
|
|
|
|
|
core implementation. There is some good code in here, but the project seems to be |
56
|
|
|
|
|
|
|
very much on the back-burner at this time. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item O'Caml port of Forest |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Ask me about the O'Caml port of this module, it is also sitting on my hard drive |
61
|
|
|
|
|
|
|
waiting for release. It actually helped quite a bit in terms of helping me settle |
62
|
|
|
|
|
|
|
on the APIs for this module. Static typing can be very helpful sometimes. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=back |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 BUGS |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
All complex software has bugs lurking in it, and this module is no |
69
|
|
|
|
|
|
|
exception. If you find a bug please either email me, or add the bug |
70
|
|
|
|
|
|
|
to cpan-RT. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHOR |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Stevan Little E<lt>stevan.little@iinteractive.comE<gt> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
With contributions from: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Yuval (nothingmuch) Kogman |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Guillermo (groditi) Roditi |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Florian (rafl) Ragwitz |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Jesse (doy) Luehrs |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Copyright 2008-2014 Infinity Interactive, Inc. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L<http://www.iinteractive.com> |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
93
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |