Flow-IPC 1.0.2
Flow-IPC project: Full implementation reference.
classic_fwd.hpp
Go to the documentation of this file.
1/* Flow-IPC: Shared Memory
2 * Copyright 2023 Akamai Technologies, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the
5 * "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy
7 * of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in
12 * writing, software distributed under the License is
13 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
14 * CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing
16 * permissions and limitations under the License. */
17
18/// @file
19#pragma once
20
23
24/// ipc::shm sub-module with the SHM-classic SHM-provider. See ipc::shm doc header for introduction.
26{
27
28// Types.
29
30// Find doc headers near the bodies of these compound types.
31
32class Pool_arena;
33
34/// Convenience alias for a shm::stl::Arena_activator w/r/t Pool_arena.
36
37/**
38 * Convenience alias for a shm::stl::Stateless_allocator> w/r/t Pool_arena;
39 * use with #Pool_arena_activator.
40 *
41 * @tparam T
42 * Pointed-to type for the allocator. See standard C++ `Allocator` concept.
43 */
44template<typename T>
46
47/// Short-hand for util::Shared_name; used in particular for SHM pool names at least.
49
50// Free functions.
51
52/**
53 * Prints string representation of the given `Pool_arena` to the given `ostream`.
54 *
55 * @relatesalso Pool_arena
56 *
57 * @param os
58 * Stream to which to write.
59 * @param val
60 * Object to serialize.
61 * @return `os`.
62 */
63std::ostream& operator<<(std::ostream& os, const Pool_arena& val);
64
65} // namespace ipc::shm::classic
A SHM-classic interface around a single SHM pool with allocation-algorithm services by boost....
Definition: pool_arena.hpp:151
RAII-style class operating a stack-like notion of a the given thread's currently active SHM-aware Are...
Stateless allocator usable with STL-compliant containers to store (or merely read) them directly in S...
String-wrapping abstraction representing a name uniquely distinguishing a kernel-persistent entity fr...
ipc::shm sub-module with the SHM-classic SHM-provider. See ipc::shm doc header for introduction.
Definition: classic_fwd.hpp:26
std::ostream & operator<<(std::ostream &os, const Pool_arena &val)
Prints string representation of the given Pool_arena to the given ostream.
Definition: pool_arena.cpp:171
util::Shared_name Shared_name
Short-hand for util::Shared_name; used in particular for SHM pool names at least.
Definition: classic_fwd.hpp:48