OpenKalman
uniform_static_vector_space_descriptor.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) 2019-2024 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_UNIFORM_FIXED_VECTOR_SPACE_DESCRIPTOR_HPP
17 #define OPENKALMAN_UNIFORM_FIXED_VECTOR_SPACE_DESCRIPTOR_HPP
18 
19 #include <type_traits>
20 #include "fixed_pattern.hpp"
21 #include "dynamic_pattern.hpp"
23 
24 
26 {
27  namespace detail
28  {
29 #ifdef __cpp_concepts
30  template<typename T>
31 #else
32  template<typename T, typename = void>
33 #endif
34  struct uniform_static_vector_space_descriptor_impl : std::false_type {};
35 
36 
37 #ifdef __cpp_concepts
38  template<fixed_pattern T>
40 #else
41  template<typename T>
42  struct uniform_static_vector_space_descriptor_impl<T, std::enable_if_t<fixed_pattern<T>>>
43 #endif
44  : internal::uniform_static_vector_space_descriptor_query<std::decay_t<decltype(internal::get_component_collection(std::declval<T>()))>> {};
45 
46 
47 #ifdef __cpp_concepts
48  template<dynamic_pattern T>
50 #else
51  template<typename T>
52  struct uniform_static_vector_space_descriptor_impl<T, std::enable_if_t<dynamic_pattern<T>>>
53 #endif
55 
56  } // namespace detail
57 
58 
62  template<typename T>
63 #ifdef __cpp_concepts
65 #else
66  constexpr bool uniform_static_vector_space_descriptor =
67 #endif
69 
70 
71 } // namespace OpenKalman::coordinates
72 
73 #endif //OPENKALMAN_UNIFORM_FIXED_VECTOR_SPACE_DESCRIPTOR_HPP
Definition for coordinates::dynamic_pattern.
constexpr bool uniform_static_vector_space_descriptor
T is a coordinates::pattern that can be decomposed into a uniform set of 1D coordinates::pattern.
Definition: uniform_static_vector_space_descriptor.hpp:66
Definition: tuple_reverse.hpp:103
Definition for coordinates::fixed_pattern.
Definition: compares_with.hpp:28
Definition: uniform_static_vector_space_descriptor.hpp:34
Definition: uniform_static_vector_space_descriptor_query.hpp:36