Tulip  5.7.4
Large graphs analysis and drawing
tuliphash.h
1 /*
2  *
3  * This file is part of Tulip (https://tulip.labri.fr)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef TLP_HASH_H
22 #define TLP_HASH_H
23 
24 /**
25  * @brief This file defines what class is used to provide a hashmap.
26  * The TLP_HASH_MAP macro defines which implementation is used for hash maps.
27  * The TLP_HASH_SET macro defines which implementation is used for hash sets.
28  *
29  * TLP_BEGIN_HASH_NAMESPACE is defined to open the namespace in which the hash classes are defined,
30  * to define new hashes (e.g. for Edge).
31  * TLP_END_HASH_NAMESPACE is defined to close the namespace
32  * TLP_HASH_NAMESPACE allows to use a specific hasher class when declaring a hash set or a hash map.
33  */
34 
35 #include <unordered_map>
36 #include <unordered_set>
37 #define TLP_HASH_MAP std::unordered_map
38 #define TLP_HASH_SET std::unordered_set
39 #define TLP_HASH_NAMESPACE std
40 #define TLP_BEGIN_HASH_NAMESPACE namespace std
41 #define TLP_END_HASH_NAMESPACE
42 
43 // needed because the definition of tlp_hash_combine template
44 // has been moved into TlpTools.h
45 #include <tulip/TlpTools.h>
46 
47 #endif
48 
49 ///@endcond