iceoryx_posh 2.0.5
Loading...
Searching...
No Matches
default_roudi_memory.hpp
1// Copyright (c) 2020 by Robert Bosch GmbH. 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#ifndef IOX_POSH_ROUDI_MEMORY_DEFAULT_ROUDI_MEMORY_HPP
17#define IOX_POSH_ROUDI_MEMORY_DEFAULT_ROUDI_MEMORY_HPP
18
19#include "iceoryx_posh/internal/roudi/memory/mempool_collection_memory_block.hpp"
20#include "iceoryx_posh/internal/roudi/memory/mempool_segment_manager_memory_block.hpp"
21#include "iceoryx_posh/roudi/memory/posix_shm_memory_provider.hpp"
22
23namespace iox
24{
25namespace roudi
26{
28{
29 public:
30 DefaultRouDiMemory(const RouDiConfig_t& roudiConfig) noexcept;
31 virtual ~DefaultRouDiMemory() noexcept = default;
32
34 DefaultRouDiMemory& operator=(DefaultRouDiMemory&&) = delete;
35
37 DefaultRouDiMemory& operator=(const DefaultRouDiMemory&) = delete;
38
39 mepoo::MePooConfig introspectionMemPoolConfig() const noexcept;
40
41 MemPoolCollectionMemoryBlock m_introspectionMemPoolBlock;
42 MemPoolSegmentManagerMemoryBlock m_segmentManagerBlock;
43 PosixShmMemoryProvider m_managementShm;
44};
45} // namespace roudi
46} // namespace iox
47
48#endif // IOX_POSH_ROUDI_MEMORY_DEFAULT_ROUDI_MEMORY_HPP
Creates the shared memory based on a provided configuration.
Definition posix_shm_memory_provider.hpp:36
Definition mepoo_config.hpp:33
Definition default_roudi_memory.hpp:28