iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
event_id.hpp
Go to the documentation of this file.
1
// Copyright (c) 2024 Contributors to the Eclipse Foundation
2
//
3
// See the NOTICE file(s) distributed with this work for additional
4
// information regarding copyright ownership.
5
//
6
// This program and the accompanying materials are made available under the
7
// terms of the Apache Software License 2.0 which is available at
8
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9
// which is available at https://opensource.org/licenses/MIT.
10
//
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13
#ifndef IOX2_EVENT_ID_HPP
14
#define IOX2_EVENT_ID_HPP
15
16
#include "
iox2/internal/iceoryx2.hpp
"
17
18
#include <iostream>
19
20
namespace
iox2
{
22
class
EventId
{
23
public
:
24
EventId
(
const
EventId
&) =
default
;
25
EventId
(
EventId
&&) =
default
;
26
auto
operator=
(
const
EventId
&) ->
EventId
& =
default
;
27
auto
operator=
(
EventId
&&) ->
EventId
& =
default
;
28
~EventId
() =
default
;
29
31
explicit
EventId
(
size_t
value);
32
34
auto
as_value
() const ->
size_t
;
35
36
private:
37
template <
ServiceType
>
38
friend class
Notifier
;
39
template <
ServiceType
>
40
friend class
PortFactoryNotifier
;
41
template <
ServiceType
>
42
friend class
Listener
;
43
template <
ServiceType
, typename, typename>
44
friend class
EntryHandle
;
45
template <
ServiceType
, typename, typename>
46
friend class
EntryHandleMut
;
47
friend class
EventActivation
;
48
49
explicit
EventId
(iox2_event_id_t value);
50
51
friend auto operator<<(std::ostream& stream, const
EventId
& value) -> std::ostream&;
52
iox2_event_id_t m_value;
53
};
54
55
auto operator<<(std::ostream& stream, const
EventId
& value) -> std::ostream&;
56
auto operator==(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
57
auto operator!=(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
58
auto operator<(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
59
auto operator<=(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
60
auto operator>(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
61
auto operator>=(const
EventId
& lhs, const
EventId
& rhs) ->
bool
;
62
}
// namespace iox2
63
64
#endif
iox2::EntryHandleMut
A handle for direct write access to a specific blackboard value.
Definition
entry_handle_mut.hpp:23
iox2::EntryHandle
A handle for direct read access to a specific blackboard value.
Definition
entry_handle.hpp:50
iox2::EventActivation
Definition
event_activation.hpp:24
iox2::EventId
Type that allows to identify an event uniquely.
Definition
event_id.hpp:22
iox2::EventId::as_value
auto as_value() const -> size_t
Returns the value of the [EventId].
iox2::EventId::EventId
EventId(const EventId &)=default
iox2::EventId::EventId
EventId(size_t value)
Creates a new uint128_t [EventId] from the high bit and low bit part.
iox2::EventId::EventId
EventId(EventId &&)=default
iox2::EventId::~EventId
~EventId()=default
iox2::EventId::operator=
auto operator=(EventId &&) -> EventId &=default
iox2::EventId::operator=
auto operator=(const EventId &) -> EventId &=default
iox2::Listener
Represents the receiving endpoint of an event based communication.
Definition
listener.hpp:32
iox2::Notifier
Represents the sending endpoint of an event based communication.
Definition
notifier.hpp:28
iox2::PortFactoryNotifier
Definition
port_factory_notifier.hpp:27
iceoryx2.hpp
iox2
Definition
active_request.hpp:26
iox2::ServiceType
ServiceType
Definition
service_type.hpp:21
iox2
event_id.hpp
Generated by
1.9.8