include
fkie_message_filters
combiner_policies
policy_base_impl.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
21
#ifndef INCLUDE_FKIE_MESSAGE_FILTERS_COMBINER_POLICIES_POLICY_BASE_IMPL_H_
22
#define INCLUDE_FKIE_MESSAGE_FILTERS_COMBINER_POLICIES_POLICY_BASE_IMPL_H_
23
24
#include "
policy_base.h
"
25
26
namespace
fkie_message_filters
27
{
28
namespace
combiner_policies
29
{
30
31
template
<
class
... IOs>
32
void
PolicyBase<IOs...>::set_emitter_callback
(
const
EmitterCB& cb) noexcept
33
{
34
emit_ = cb;
35
}
36
37
template
<
class
... IOs>
38
void
PolicyBase<IOs...>::emit
(
const
OutgoingTuple& out)
39
{
40
if
(emit_) emit_(out);
41
}
42
43
}
// namespace combiner_policies
44
}
// namespace fkie_message_filters
45
46
#endif
/* INCLUDE_FKIE_MESSAGE_FILTERS_COMBINER_POLICIES_POLICY_BASE_IMPL_H_ */
fkie_message_filters::combiner_policies::PolicyBase::emit
void emit(const OutgoingTuple &out)
Emit data.
Definition:
policy_base_impl.h:74
fkie_message_filters
Definition:
buffer.h:33
fkie_message_filters::combiner_policies::PolicyBase::set_emitter_callback
void set_emitter_callback(const EmitterCB &) noexcept
Set output function.
Definition:
policy_base_impl.h:68
policy_base.h
fkie_message_filters
Author(s): Timo Röhling
autogenerated on Wed Mar 2 2022 00:18:57