OpenKalman
euclidean_pattern_collection.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) 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_EUCLIDEAN_PATTERN_COLLECTION_HPP
17 #define OPENKALMAN_EUCLIDEAN_PATTERN_COLLECTION_HPP
18 
19 #ifdef __cpp_lib_ranges
20 #include <ranges>
21 #else
23 #endif
27 
28 
30 {
35  template<typename T>
36 #if defined(__cpp_lib_ranges)
37  concept euclidean_pattern_collection = coordinates::pattern_collection<T> and
38  (euclidean_pattern_tuple<T> or euclidean_pattern<std::ranges::range_value_t<std::decay_t<T>>>);
39 #else
40  constexpr bool euclidean_pattern_collection = collections::collection<T> and
41  (euclidean_pattern_tuple<T> or euclidean_pattern<ranges::range_value_t<std::decay_t<T>>>);
42 #endif
43 
44 
45 } // namespace OpenKalman::coordinates
46 
47 #endif //OPENKALMAN_EUCLIDEAN_PATTERN_COLLECTION_HPP
Definition for coordinates::euclidean_pattern.
Definition for collections::collection.
Definition: compares_with.hpp:28
Definitions implementing features of the c++ ranges library for compatibility.
constexpr bool euclidean_pattern_collection
An object describing a collection of /ref coordinates::pattern objects.
Definition: euclidean_pattern_collection.hpp:40
Definition for coordinates::euclidean_pattern_tuple.