| 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<Thrift::IDL::Type> | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 4 | ▶ | use base qw(Thrift::IDL::Type); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 4 | __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 | 0 | ▶ | sub name { 'map' } |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub to_str { |
|
Subroutine
to_str: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 33 | 0 | my ($self) = @_; | |
| 34 | 0 | return sprintf 'map (%s => %s)', $self->key_type, $self->val_type; | |
| 35 | } | ||
| 36 | |||
| 37 | 4 | 1; | |