iceoryx_posh 2.0.5
Loading...
Searching...
No Matches
notification_attorney.hpp
1// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// SPDX-License-Identifier: Apache-2.0
16
17#ifndef IOX_POSH_POPO_NOTIFICATION_ATTORNEY_HPP
18#define IOX_POSH_POPO_NOTIFICATION_ATTORNEY_HPP
19
20#include "iceoryx_hoofs/cxx/method_callback.hpp"
21#include "iceoryx_posh/iceoryx_posh_types.hpp"
22
23#include <cstdint>
24
25namespace iox
26{
27namespace popo
28{
33{
34 template <uint64_t>
35 friend class WaitSet;
36 template <uint64_t>
37 friend class ListenerImpl;
38
39 private:
40 template <typename T, typename... Targs>
41 static void enableEvent(T& eventOrigin, Targs&&... args) noexcept;
42
43 template <typename T, typename... Targs>
44 static void disableEvent(T& eventOrigin, Targs&&... args) noexcept;
45
46 template <typename T, typename... Targs>
47 static void enableState(T& stateOrigin, Targs&&... args) noexcept;
48
49 template <typename T, typename... Targs>
50 static void disableState(T& stateOrigin, Targs&&... args) noexcept;
51
52 template <typename T>
53 static cxx::MethodCallback<void, uint64_t> getInvalidateTriggerMethod(T& eventOrigin) noexcept;
54
55 template <typename T, typename... Targs>
56 static WaitSetIsConditionSatisfiedCallback getCallbackForIsStateConditionSatisfied(T& eventOrigin,
57 Targs&&... args) noexcept;
58};
59
60
61} // namespace popo
62} // namespace iox
63
64#include "iceoryx_posh/internal/popo/notification_attorney.inl"
65#endif
The Listener is a class which reacts to registered events by executing a corresponding callback concu...
Definition listener.hpp:105
Class which allows accessing private methods to friends of NotificationAttorney. Used for example by ...
Definition notification_attorney.hpp:33
Logical disjunction of a certain number of Triggers.
Definition wait_set.hpp:61