File Coverage

blib/lib/PDLA/PP/Signature.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 1 2 50.0
subroutine 5 5 100.0
pod 0 1 0.0
total 22 24 91.6


line stmt bran cond sub pod time code
1             =head1 NAME
2              
3             PDLA::PP::Signature - Internal module to handle signatures
4              
5             =head1 DESCRIPTION
6              
7             Internal module to handle signatures
8              
9             =head1 SYNOPSIS
10              
11             use PDLA::PP::Signature;
12              
13              
14             =cut
15              
16             package PDLA::PP::Signature;
17 2     2   1052 use PDLA::PP::PdlParObj;
  2         6  
  2         78  
18 2     2   1144 use PDLA::PP::Dims;
  2         6  
  2         44  
19 2     2   10 use Carp;
  2         4  
  2         88  
20 2     2   9 use SelfLoader;
  2         3  
  2         227  
21              
22             @ISA = qw/ SelfLoader /;
23              
24             # we pass on $bvalflag to the PdlParObj's created by parse
25             # (a hack for PdlParObj::get_xsdatapdecl() which should
26             # disappear when (if?) things are done sensibly)
27             #
28             sub new {
29 2     2 0 5 my ($type,$str,$bvalflag) = @_;
30 2   50     13 $bvalflag ||= 0;
31 2         19 my ($namep,$objp) = parse($str,$bvalflag);
32 2         26 return bless {Names => $namep, Objects => $objp},$type;
33             }
34              
35             *with = \&new;
36              
37             1;
38              
39             =head1 AUTHOR
40              
41             Copyright (C) Tuomas J. Lukka 1997 (lukka@husc.harvard.edu) and by Christian
42             Soeller (c.soeller@auckland.ac.nz).
43             All rights reserved. There is no warranty. You are allowed
44             to redistribute this software / documentation under certain
45             conditions. For details, see the file COPYING in the PDLA
46             distribution. If this file is separated from the PDLA distribution,
47             the copyright notice should be included in the file.
48              
49              
50             =cut
51              
52             __DATA__