|
lintel 0.2.0
|
Classes | |
| class | SegmentSemaphoreGuard |
Typedefs | |
| using | SegmentManager = boost::interprocess::managed_mapped_file::segment_manager |
| template<class Object > | |
| using | SegmentAllocator = boost::interprocess::allocator< Object, SegmentManager > |
| using | String = boost::container::basic_string< char, std::char_traits< char >, SegmentAllocator< char > > |
| template<class Key , class Value > | |
| using | Map = boost::container::map< Key, Value, std::less< Key >, SegmentAllocator< std::pair< const Key, Value > > > |
| template<class Object > | |
| using | Vector = boost::container::vector< Object, SegmentAllocator< Object > > |
| using lintel::shm::Map = typedef boost::container::map<Key, Value, std::less<Key>, SegmentAllocator<std::pair<const Key, Value> >> |
Map placed in shared memory.
| using lintel::shm::SegmentAllocator = typedef boost::interprocess::allocator<Object, SegmentManager> |
Allocator for data structures placed in shared memory.
| using lintel::shm::SegmentManager = typedef boost::interprocess::managed_mapped_file::segment_manager |
Segment manager of a mapped shared memory file.
| using lintel::shm::String = typedef boost::container::basic_string<char, std::char_traits<char>, SegmentAllocator<char> > |
String placed in shared memory.
| using lintel::shm::Vector = typedef boost::container::vector<Object, SegmentAllocator<Object> > |
Vector placed in shared memory.
| std::array< Object, Size > & lintel::shm::constructArray | ( | SharedMemoryService & | service, |
| const std::shared_ptr< SharedMemorySegment > & | segment, | ||
| const std::string & | name | ||
| ) |
Find or construct a fixed-size array in the given shared memory segment.
| Object | the element type |
| Size | the array size |
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the array object |
| ShmSegmentNotFound | if the segment does not exist |
| Map< Key, Value > & lintel::shm::constructMap | ( | SharedMemoryService & | service, |
| const std::shared_ptr< SharedMemorySegment > & | segment, | ||
| const std::string & | name | ||
| ) |
Find or construct a map in the given shared memory segment.
| Key | the map key type |
| Value | the map value type |
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the map object |
| ShmSegmentNotFound | if the segment does not exist |
| Object & lintel::shm::constructObject | ( | SharedMemoryService & | service, |
| const std::shared_ptr< SharedMemorySegment > & | segment, | ||
| const std::string & | name | ||
| ) |
Find or construct a single object in the given shared memory segment.
| Object | the object type |
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the object |
| ShmSegmentNotFound | if the segment does not exist |
| Object & lintel::shm::constructObjectWith | ( | SharedMemoryService & | service, |
| const std::shared_ptr< SharedMemorySegment > & | segment, | ||
| const std::string & | name, | ||
| Args &&... | args | ||
| ) |
Find or construct a single object with constructor arguments in the given shared memory segment.
| Object | the object type |
| Args | the constructor argument types |
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the object |
| args | arguments forwarded to the constructor |
| ShmSegmentNotFound | if the segment does not exist |
|
inline |
Find or construct a string in the given shared memory segment.
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the string object |
| ShmSegmentNotFound | if the segment does not exist |
| Vector< Object > & lintel::shm::constructVector | ( | SharedMemoryService & | service, |
| const std::shared_ptr< SharedMemorySegment > & | segment, | ||
| const std::string & | name | ||
| ) |
Find or construct a vector in the given shared memory segment.
| Object | the element type |
| service | the shared memory service |
| segment | the shared memory segment |
| name | the name of the vector object |
| ShmSegmentNotFound | if the segment does not exist |
|
inline |
Get the raw segment manager of the given shared memory segment.
| service | the shared memory service |
| segment | the shared memory segment |