aboutsummaryrefslogtreecommitdiff
path: root/lib/VarnishMib/HashTable.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VarnishMib/HashTable.pm')
-rw-r--r--lib/VarnishMib/HashTable.pm16
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
1package VarnishMib::HashTable; 17package VarnishMib::HashTable;
2use strict; 18use strict;
3use warnings; 19use warnings;
4use Carp; 20use Carp;
5use Inline 'C'; 21use Inline 'C';
6use Pod::Usage; 22use Pod::Usage;
7use Pod::Man; 23use Pod::Man;
8 24
9=head1 NAME 25=head1 NAME
10 26
11VarnishMib::HashTable - Create a hash table implementation in C 27VarnishMib::HashTable - Create a hash table implementation in C
12 28
13=head1 DESCRIPTION 29=head1 DESCRIPTION
14 30
15Given a list of unique strings, creates a C code for fast look ups of 31Given a list of unique strings, creates a C code for fast look ups of
16data associated with them. 32data 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
22Returns a new instance of the hash table generator. Allowed arguments are: 38Returns a new instance of the hash table generator. Allowed arguments are:
23 39
24=over 4 40=over 4

Return to:

Send suggestions and report system problems to the System administrator.