|
lintel 0.2.0
|
#include <SharedMemorySegmentDto.h>
Public Member Functions | |
| SharedMemorySegmentDto (const SharedMemorySegmentInfo &sharedMemoryInfo) | |
| SharedMemorySegmentDto ()=default | |
| const std::filesystem::path & | getPath () const |
| const std::string & | getName () const |
| size_t | getSize () const |
| bool | isAutoExtend () const |
| size_t | getAutoExtendSize () const |
| size_t | getMaxSize () const |
| bool | isSanity () const |
| size_t | getCurrentSize () const |
| size_t | getFreeSize () const |
| size_t | getAmountNamedObjects () const |
| size_t | getAmountUniqueObjects () const |
| void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override |
| bool | deserialize (const rapidjson::Value &obj) override |
Public Member Functions inherited from lintel::JsonSerializable | |
| JsonSerializable ()=default | |
| virtual | ~JsonSerializable ()=default |
| virtual std::string | serialize () const |
| virtual void | deserialize (const std::string &json) |
Static Public Member Functions | |
| static const Shapes & | getShape () |
DTO representing detailed shared memory segment information
|
explicit |
Construct from a SharedMemorySegmentInfo model
| sharedMemoryInfo | The source segment info |
|
default |
Default constructor
Deserialize from JSON
| obj | The JSON value |
Reimplemented from lintel::JsonSerializable.
| size_t lintel::SharedMemorySegmentDto::getAmountNamedObjects | ( | ) | const |
Get the number of named objects
| size_t lintel::SharedMemorySegmentDto::getAmountUniqueObjects | ( | ) | const |
Get the number of unique objects
| size_t lintel::SharedMemorySegmentDto::getAutoExtendSize | ( | ) | const |
Get the auto-extend increment size
| size_t lintel::SharedMemorySegmentDto::getCurrentSize | ( | ) | const |
Get the current allocated size
| size_t lintel::SharedMemorySegmentDto::getFreeSize | ( | ) | const |
Get the remaining free size
| size_t lintel::SharedMemorySegmentDto::getMaxSize | ( | ) | const |
Get the maximum segment size
| const std::string & lintel::SharedMemorySegmentDto::getName | ( | ) | const |
Get the segment name
| const std::filesystem::path & lintel::SharedMemorySegmentDto::getPath | ( | ) | const |
Get the filesystem path
Get the shape (field name) constants
| size_t lintel::SharedMemorySegmentDto::getSize | ( | ) | const |
Get the configured segment size
| bool lintel::SharedMemorySegmentDto::isAutoExtend | ( | ) | const |
Check if auto-extend is enabled
| bool lintel::SharedMemorySegmentDto::isSanity | ( | ) | const |
Check if the segment passed sanity check
|
overridevirtual |