line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Thrift::IDL::Type::Map; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Thrift::IDL::Type::Map |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Inherits from L |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
6
|
|
|
6
|
|
34
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
226
|
|
14
|
6
|
|
|
6
|
|
34
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
165
|
|
15
|
6
|
|
|
6
|
|
31
|
use base qw(Thrift::IDL::Type); |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
966
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw(key_type val_type cpp_type)); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 METHODS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 key_type |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 val_type |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head2 cpp_type |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Scalar accessors |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
2
|
|
|
2
|
0
|
1034
|
sub name { 'map' } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub to_str { |
33
|
1
|
|
|
1
|
0
|
4
|
my ($self) = @_; |
34
|
1
|
|
|
|
|
4
|
return sprintf 'map (%s => %s)', $self->key_type, $self->val_type; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |