aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
tupleHashFunc.h
Go to the documentation of this file.
1 
30 #ifndef GUM_TUPLE_HASH_FUNC_H
31 #define GUM_TUPLE_HASH_FUNC_H
32 
34 #include <tuple>
35 
36 namespace gum {
37 
39  template <>
40  class HashFunc< std::tuple< unsigned int, unsigned int, unsigned int > >:
41  public HashFuncBase<
42  std::tuple< unsigned int, unsigned int, unsigned int > > {
43  public:
49  static Size castToSize(
50  const std::tuple< unsigned int, unsigned int, unsigned int >& key);
51 
53  virtual Size operator()(
54  const std::tuple< unsigned int, unsigned int, unsigned int >& key)
55  const override final;
56  };
57 } // namespace gum
58 
59 #endif
STL namespace.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Class template representing hashing function of LpCol.
Definition: hashFunc.h:471
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Definition: agrum.h:25
All hash functions should inherit from this class.
Definition: hashFunc.h:149
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48