Template Class PolicyBase

Class Documentation

template<class ...IOs>
class PolicyBase

Base class for combiner policies.

Public Types

using EmitterCB = std::function<void(OutgoingTuple&)>

Callback for assembled outputs.

using IncomingTuples = std::tuple<helpers::io_tuple_t<IOs>...>

Tuple type of incoming data tuples.

using OutgoingTuple = helpers::io_tuple_t<helpers::io_concat_t<IOs...>>

Combined tuple type for data output.

Public Functions

inline virtual ~PolicyBase()

Protected Types

using MaybeOutgoingTuples = std::tuple<std::optional<helpers::io_tuple_t<IOs>>...>

Tuple of outgoing tuple candidates.

This is basically a tuple of optionals, so elements can remain empty until a suitable data element has been found by the policy.

Protected Functions

void emit(OutgoingTuple &out)

Emit data.

This returns combined data back to the Combiner class.

virtual void reset() noexcept = 0

Reset internal state.

This function is called by the Combiner if the filter is reset.

void set_emitter_callback(const EmitterCB&) noexcept

Set output function.

This function is called by the policy whenever it has output ready to be passed on.

Friends

friend class fkie_message_filters::Combiner