File Coverage

blib/lib/PDL/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             PDL::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 PDL::PP::Signature;
12              
13              
14             =cut
15              
16             package PDL::PP::Signature;
17 3     3   1422 use PDL::PP::PdlParObj;
  3         8  
  3         114  
18 3     3   1394 use PDL::PP::Dims;
  3         9  
  3         82  
19 3     3   20 use Carp;
  3         12  
  3         192  
20 3     3   18 use SelfLoader;
  3         5  
  3         435  
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 6     6 0 19 my ($type,$str,$bvalflag) = @_;
30 6   50     33 $bvalflag ||= 0;
31 6         34 my ($namep,$objp) = parse($str,$bvalflag);
32 6         61 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 PDL
46             distribution. If this file is separated from the PDL distribution,
47             the copyright notice should be included in the file.
48              
49              
50             =cut
51              
52             __DATA__