OpenKalman
get_hash_code.hpp
Go to the documentation of this file.
1 /* This file is part of OpenKalman, a header-only C++ library for
2  * Kalman filters and other recursive filters.
3  *
4  * Copyright (c) 2025 Christopher Lee Ogden <ogden@gatech.edu>
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
9  */
10 
16 #ifndef OPENKALMAN_GET_HASH_CODE_HPP
17 #define OPENKALMAN_GET_HASH_CODE_HPP
18 
19 #include <typeindex>
20 #include "linear-algebra/coordinates/interfaces/coordinate_descriptor_traits.hpp"
22 
24 {
29 #ifdef __cpp_concepts
30  template<descriptor Arg>
31 #else
32  template<typename Arg, std::enable_if_t<descriptor<Arg>, int> = 0>
33 #endif
34  constexpr std::size_t
35  get_hash_code(const Arg& arg)
36  {
38  }
39 
40 
41 } // namespace OpenKalman::coordinates::internal
42 
43 
44 #endif //OPENKALMAN_GET_HASH_CODE_HPP
Definition: get_component_start_indices.hpp:29
Definition for coordinates::descriptor.
constexpr std::size_t get_hash_code(const Arg &arg)
Obtain a unique hash code for an coordinates::descriptor.
Definition: get_hash_code.hpp:35
Traits for coordinates::pattern objects.
Definition: coordinate_descriptor_traits.hpp:41