File Coverage

lib/stl.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 32 32 100.0


line stmt bran cond sub pod time code
1             # vim:ts=4 sw=4
2             # ----------------------------------------------------------------------------------------------------
3             # Name : stl.pm
4             # Created : 28 April 2006
5             # Author : Mario Gaffiero (gaffie)
6             #
7             # Copyright 2006 Mario Gaffiero.
8             #
9             # This file is part of Class::STL::Containers(TM).
10             #
11             # Class::STL::Containers is free software; you can redistribute it and/or modify
12             # it under the terms of the GNU General Public License as published by
13             # the Free Software Foundation; either version 2 of the License, or
14             # (at your option) any later version.
15             #
16             # Class::STL::Containers is distributed in the hope that it will be useful,
17             # but WITHOUT ANY WARRANTY; without even the implied warranty of
18             # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19             # GNU General Public License for more details.
20             #
21             # You should have received a copy of the GNU General Public License
22             # along with Class::CodeStyler; if not, write to the Free Software
23             # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24             # ----------------------------------------------------------------------------------------------------
25             # Modification History
26             # When Version Who What
27             # ----------------------------------------------------------------------------------------------------
28             package stl;
29             require 5.005_62;
30 7     7   53057 use strict;
  7         18  
  7         260  
31 7     7   40 use warnings;
  7         18  
  7         305  
32 7     7   36 use vars qw( $VERSION $BUILD @EXPORT_OK %EXPORT_TAGS);
  7         18  
  7         748  
33 7     7   53 use Exporter;
  7         11  
  7         1648  
34             my @containers = qw(
35             vector list deque queue priority_queue stack tree
36             );
37             my @utilities = qw(
38             equal_to not_equal_to greater greater_equal less
39             less_equal compare bind1st bind2nd mem_fun ptr_fun
40             ptr_fun_binary matches matches_ic logical_and logical_or
41             multiplies divides plus minus modulus not1 not2 negate not_null
42             );
43             my @algorithms = qw(
44             find find_if for_each transform count count_if copy
45             copy_backward remove remove_if remove_copy remove_copy_if replace
46             replace_if replace_copy replace_copy_if generate generate_n
47             fill fill_n equal reverse reverse_copy rotate rotate_copy partition
48             stable_partition min_element max_element unique unique_copy adjacent_find
49             _sort stable_sort qsort stable_qsort accumulate
50             );
51             my @iterators = qw(
52             iterator bidirectional_iterator reverse_iterator forward_iterator
53             distance advance back_insert_iterator front_insert_iterator
54             back_inserter front_inserter insert_iterator inserter
55             );
56            
57             @EXPORT_OK = ( @containers, @utilities, @algorithms, @iterators );
58             %EXPORT_TAGS = (
59             algorithms => [@algorithms],
60             containers => [@containers],
61             utilities => [@utilities],
62             iterators => [@iterators],
63             );
64 7     7   6416 use Class::STL::Containers qw(:all);
  7         29  
  7         95  
65 7     7   6467 use Class::STL::Utilities qw(:all);
  7         29  
  7         190  
66 7     7   6571 use Class::STL::Algorithms qw(:all);
  7         33  
  7         117  
67 7     7   272 use Class::STL::Iterators qw(:all);
  7         17  
  7         55  
68             $VERSION = $Class::STL::Containers::VERSION;
69             $BUILD = $Class::STL::Containers::BUILD;
70             # ----------------------------------------------------------------------------------------------------
71             1;