|
lintel 0.2.0
|
#include <SharedMemorySegment.h>
Classes | |
| struct | AutoExtendConfig |
Public Member Functions | |
| SharedMemorySegment (std::filesystem::path sharedMemoryPath, std::string name, std::size_t size) | |
| SharedMemorySegment (std::filesystem::path sharedMemoryPath, std::string name, std::size_t size, AutoExtendConfig autoExtendConfig) | |
| std::filesystem::path | getPath () const |
| const std::string & | getName () const |
| constexpr size_t | getSize () const |
| constexpr bool | isAutoExtend () const |
| constexpr size_t | getAutoExtendSize () const |
| constexpr size_t | getMaxSize () const |
Represents a shared memory segment with path, name, size, and auto-extend configuration.
| lintel::SharedMemorySegment::SharedMemorySegment | ( | std::filesystem::path | sharedMemoryPath, |
| std::string | name, | ||
| std::size_t | size | ||
| ) |
Constructs a shared memory segment with a fixed size.
| sharedMemoryPath | path to the shared memory file |
| name | name of the segment |
| size | size of the segment in bytes |
| lintel::SharedMemorySegment::SharedMemorySegment | ( | std::filesystem::path | sharedMemoryPath, |
| std::string | name, | ||
| std::size_t | size, | ||
| AutoExtendConfig | autoExtendConfig | ||
| ) |
Constructs a shared memory segment with auto-extend capability.
| sharedMemoryPath | path to the shared memory file |
| name | name of the segment |
| size | initial size of the segment in bytes |
| autoExtendConfig | how much to grow by when full and the hard upper bound |
| const std::string & lintel::SharedMemorySegment::getName | ( | ) | const |
| std::filesystem::path lintel::SharedMemorySegment::getPath | ( | ) | const |