selector.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * fkie_message_filters
4  * Copyright © 2018-2020 Fraunhofer FKIE
5  * Author: Timo Röhling
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ****************************************************************************/
20 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_SELECTOR_H_
21 #define INCLUDE_FKIE_MESSAGE_FILTERS_SELECTOR_H_
22 
23 #include "filter.h"
24 
25 namespace fkie_message_filters
26 {
27 
28 #ifndef DOXYGEN
29 template<class IO, std::size_t... Is>
30 class Selector;
31 #endif
32 
52 #ifndef DOXYGEN
53 template<class... Inputs, std::size_t... Is>
54 class Selector<IO<Inputs...>, Is...> : public Filter<IO<Inputs...>, typename IO<Inputs...>::template Select<Is...>>
55 #else
56 template<class... Inputs, std::size_t... Is>
57 class Selector : public Filter<IO<Inputs...>, typename IO<Inputs...>::template Select<Is...>>
58 #endif
59 {
60 protected:
61  void receive(const Inputs&... in) override;
62 };
63 
64 } // namespace fkie_message_filters
65 
66 #include "selector_impl.h"
67 
68 #endif /* INCLUDE_FKIE_MESSAGE_FILTERS_SELECTOR_H_ */
Group multiple data types as filter input or output.
Definition: io.h:27
Typed base class for filters.
Definition: filter.h:35
Primary namespace.
Definition: buffer.h:33
string template


fkie_message_filters
Author(s): Timo Röhling
autogenerated on Mon Feb 28 2022 22:21:43