|
lintel 0.2.0
|
#include <SharedMemorySegmentInfo.h>
Public Member Functions | |
| SharedMemorySegmentInfo (std::shared_ptr< SharedMemorySegment > sharedMemorySegment, size_t currentSize, size_t freeSize, size_t amountNamedObjects, size_t amountUniqueObjects, bool sanity) | |
| const std::shared_ptr< SharedMemorySegment > & | getSharedMemorySegment () const |
| constexpr size_t | getCurrentSize () const |
| constexpr size_t | getFreeSize () const |
| constexpr size_t | getAmountNamedObjects () const |
| constexpr size_t | getAmountUniqueObjects () const |
| constexpr bool | isSanity () const |
Provides information about a shared memory segment, including its current size, free space, and object counts.
| lintel::SharedMemorySegmentInfo::SharedMemorySegmentInfo | ( | std::shared_ptr< SharedMemorySegment > | sharedMemorySegment, |
| size_t | currentSize, | ||
| size_t | freeSize, | ||
| size_t | amountNamedObjects, | ||
| size_t | amountUniqueObjects, | ||
| bool | sanity | ||
| ) |
Constructor.
| sharedMemorySegment | the underlying shared memory segment |
| currentSize | currently used size in bytes |
| freeSize | free space in bytes |
| amountNamedObjects | number of named objects in the segment |
| amountUniqueObjects | number of unique (unnamed) objects |
| sanity | whether the segment passes sanity checks |
| const std::shared_ptr< SharedMemorySegment > & lintel::SharedMemorySegmentInfo::getSharedMemorySegment | ( | ) | const |