source: source/ariba/utility/transport/tcpip/protlib/llhashers.h@ 5630

Last change on this file since 5630 was 5284, checked in by mies, 15 years ago

+ added new transport modules and adapted ariba to them
+ exchange endpoint descriptors an link establishment
+ clean up of base communication
+ link establishment with in the presence of multiple endpoints
+ local discovery for ipv6, ipv4 and bluetooth mac addresses

File size: 1.9 KB
RevLine 
[5284]1/// ----------------------------------------*- mode: C++; -*--
2/// @file llhashers.h
3/// hash functions for long longs
4/// ----------------------------------------------------------
5/// $Id: llhashers.h 2872 2008-02-18 10:58:03Z bless $
6/// $HeadURL: https://svn.ipv6.tm.uka.de/nsis/protlib/trunk/include/llhashers.h $
7// ===========================================================
8//
9// Copyright (C) 2005-2007, all rights reserved by
10// - Institute of Telematics, Universitaet Karlsruhe (TH)
11//
12// More information and contact:
13// https://projekte.tm.uka.de/trac/NSIS
14//
15// This program is free software; you can redistribute it and/or modify
16// it under the terms of the GNU General Public License as published by
17// the Free Software Foundation; version 2 of the License
18//
19// This program is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License along
25// with this program; if not, write to the Free Software Foundation, Inc.,
26// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27//
28// ===========================================================
29
30#ifndef PROTLIB_LL_HASHERS_H
31#define PROTLIB_LL_HASHERS_H
32
33
34/** @addtogroup hashers Hash function objects
35 *
36 * This file contains definitions of hash functions
37 * for long long (64 bit integers)
38 *
39 * @{
40 */
41
42namespace __gnu_cxx {
43
44/// long long int hasher
45template <> struct hash<long long> {
46 inline size_t operator()(long long i) const { return (size_t)i; }
47}; // end long long hasher
48
49/// unsigned long long int hasher
50template <> struct hash<unsigned long long> {
51 inline size_t operator()(unsigned long long i) const { return (size_t)i; }
52}; // end unsigned long long hasher
53
54} // end namespace __gnu_cxx
55
56
57//@}
58
59#endif
Note: See TracBrowser for help on using the repository browser.