iceoryx_doc  1.0.1
node_data.hpp
1 // Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // SPDX-License-Identifier: Apache-2.0
17 #ifndef IOX_POSH_RUNTIME_NODE_DATA_HPP
18 #define IOX_POSH_RUNTIME_NODE_DATA_HPP
19 
20 #include "iceoryx_posh/iceoryx_posh_types.hpp"
21 
22 #include <atomic>
23 
24 namespace iox
25 {
26 namespace runtime
27 {
29 class NodeData
30 {
31  public:
36  NodeData(const RuntimeName_t& runtimeName, const NodeName_t& nodeName, const uint64_t nodeDeviceIdentifier) noexcept;
37 
38  NodeData(const NodeData&) = delete;
39  NodeData(NodeData&&) = delete;
40  NodeData& operator=(const NodeData&) = delete;
41  NodeData& operator=(NodeData&&) = delete;
42 
43 
44  RuntimeName_t m_runtimeName;
45  NodeName_t m_nodeName;
46  uint64_t m_nodeDeviceIdentifier;
47  std::atomic_bool m_toBeDestroyed{false};
48 };
49 } // namespace runtime
50 } // namespace iox
51 
52 #endif // IOX_POSH_RUNTIME_NODE_DATA_HPP
struct which contains all the members of an object of type Node
Definition: node_data.hpp:30
NodeData(const RuntimeName_t &runtimeName, const NodeName_t &nodeName, const uint64_t nodeDeviceIdentifier) noexcept
constructor
Definition: service_description.hpp:29