Skip to content

iceoryx_posh/internal/runtime/node_data.hpp🔗

Namespaces🔗

Name
iox
iox::runtime

Classes🔗

Name
class iox::runtime::NodeData
struct which contains all the members of an object of type Node

Source code🔗

// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#ifndef IOX_POSH_RUNTIME_NODE_DATA_HPP
#define IOX_POSH_RUNTIME_NODE_DATA_HPP

#include "iceoryx_posh/iceoryx_posh_types.hpp"

#include <atomic>

namespace iox
{
namespace runtime
{
class NodeData
{
  public:
    NodeData(const RuntimeName_t& runtimeName, const NodeName_t& nodeName, const uint64_t nodeDeviceIdentifier) noexcept;

    NodeData(const NodeData&) = delete;
    NodeData(NodeData&&) = delete;
    NodeData& operator=(const NodeData&) = delete;
    NodeData& operator=(NodeData&&) = delete;


    RuntimeName_t m_runtimeName;
    NodeName_t m_nodeName;
    uint64_t m_nodeDeviceIdentifier;
    std::atomic_bool m_toBeDestroyed{false};
};
} // namespace runtime
} // namespace iox

#endif // IOX_POSH_RUNTIME_NODE_DATA_HPP

Updated on 17 June 2021 at 11:15:27 CEST