line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Class::Composite::Element - Element of a Collection::Container |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Class::Composite::Element; |
8
|
|
|
|
|
|
|
use Class::Composite::Container; |
9
|
|
|
|
|
|
|
my $element = Class::Composite::Element->new(); |
10
|
|
|
|
|
|
|
my $collection = Class::Composite::Container->new(); |
11
|
|
|
|
|
|
|
$collection->addElement( $elem ); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Used to differenciate elements from containers within a collection |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 INHERITANCE |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Class::Composite |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 INTERFACE |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
None |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
package Class::Composite::Element; |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
2
|
|
2257
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
75
|
|
29
|
2
|
|
|
2
|
|
11
|
use warnings::register; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
275
|
|
30
|
|
|
|
|
|
|
|
31
|
2
|
|
|
2
|
|
25
|
use base qw ( Class::Composite ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
215
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our $VERSION = 0.1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |