File Coverage

lib/stl.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 28 28 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   41998 use strict;
  7         50  
  7         183  
31 7     7   34 use warnings;
  7         13  
  7         228  
32 7     7   37 use vars qw( $VERSION $BUILD @ISA @EXPORT_OK %EXPORT_TAGS);
  7         28  
  7         1201  
33             require Exporter;
34             @ISA = 'Exporter';
35             my @containers = qw(
36             vector list deque queue priority_queue stack tree
37             );
38             my @utilities = qw(
39             equal_to not_equal_to greater greater_equal less
40             less_equal compare bind1st bind2nd mem_fun ptr_fun
41             ptr_fun_binary matches matches_ic logical_and logical_or
42             multiplies divides plus minus modulus not1 not2 negate not_null
43             );
44             my @algorithms = qw(
45             find find_if for_each transform count count_if copy
46             copy_backward remove remove_if remove_copy remove_copy_if replace
47             replace_if replace_copy replace_copy_if generate generate_n
48             fill fill_n equal reverse reverse_copy rotate rotate_copy partition
49             stable_partition min_element max_element unique unique_copy adjacent_find
50             _sort stable_sort qsort stable_qsort accumulate
51             );
52             my @iterators = qw(
53             iterator bidirectional_iterator reverse_iterator forward_iterator
54             distance advance back_insert_iterator front_insert_iterator
55             back_inserter front_inserter insert_iterator inserter
56             );
57            
58             @EXPORT_OK = ( @containers, @utilities, @algorithms, @iterators );
59             %EXPORT_TAGS = (
60             algorithms => [@algorithms],
61             containers => [@containers],
62             utilities => [@utilities],
63             iterators => [@iterators],
64             );
65 7     7   3159 use Class::STL::Containers qw(:all);
  7         22  
  7         1219  
66 7     7   3858 use Class::STL::Utilities qw(:all);
  7         23  
  7         1862  
67 7     7   3775 use Class::STL::Algorithms qw(:all);
  7         19  
  7         1659  
68 7     7   47 use Class::STL::Iterators qw(:all);
  7         17  
  7         1046  
69             $VERSION = $Class::STL::Containers::VERSION;
70             # ----------------------------------------------------------------------------------------------------
71             1;