diff options
Diffstat (limited to 'lib/VarnishMib/HashTable.pm')
-rw-r--r-- | lib/VarnishMib/HashTable.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/VarnishMib/HashTable.pm b/lib/VarnishMib/HashTable.pm index 1faef96..00224ac 100644 --- a/lib/VarnishMib/HashTable.pm +++ b/lib/VarnishMib/HashTable.pm | |||
@@ -1,24 +1,40 @@ | |||
1 | # This file is part of varnish-mib -*- automake -*- | ||
2 | # Copyright (C) 2018 Sergey Poznyakoff | ||
3 | # | ||
4 | # varnish-mib is free software; you can redistribute it and/or modify | ||
5 | # it under the terms of the GNU General Public License as published by | ||
6 | # the Free Software Foundation; either version 3, or (at your option) | ||
7 | # any later version. | ||
8 | # | ||
9 | # varnish-mib is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with varnish-mib. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
1 | package VarnishMib::HashTable; | 17 | package VarnishMib::HashTable; |
2 | use strict; | 18 | use strict; |
3 | use warnings; | 19 | use warnings; |
4 | use Carp; | 20 | use Carp; |
5 | use Inline 'C'; | 21 | use Inline 'C'; |
6 | use Pod::Usage; | 22 | use Pod::Usage; |
7 | use Pod::Man; | 23 | use Pod::Man; |
8 | 24 | ||
9 | =head1 NAME | 25 | =head1 NAME |
10 | 26 | ||
11 | VarnishMib::HashTable - Create a hash table implementation in C | 27 | VarnishMib::HashTable - Create a hash table implementation in C |
12 | 28 | ||
13 | =head1 DESCRIPTION | 29 | =head1 DESCRIPTION |
14 | 30 | ||
15 | Given a list of unique strings, creates a C code for fast look ups of | 31 | Given a list of unique strings, creates a C code for fast look ups of |
16 | data associated with them. | 32 | data associated with them. |
17 | 33 | ||
18 | =head1 CONSTRUCTOR | 34 | =head1 CONSTRUCTOR |
19 | 35 | ||
20 | $ht = new VarnishMib::HashTable([KW => VAL,...]); | 36 | $ht = new VarnishMib::HashTable([KW => VAL,...]); |
21 | 37 | ||
22 | Returns a new instance of the hash table generator. Allowed arguments are: | 38 | Returns a new instance of the hash table generator. Allowed arguments are: |
23 | 39 | ||
24 | =over 4 | 40 | =over 4 |