lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::SharedMemorySegmentManager Class Reference

#include <SharedMemorySegmentManager.h>

Inheritance diagram for lintel::SharedMemorySegmentManager:
lintel::ISharedMemorySegmentManager

Public Member Functions

 SharedMemorySegmentManager (const std::shared_ptr< Configuration > &configuration)
 
std::shared_ptr< SharedMemorySegment > of (const std::string &sharedMemorySegmentName)
 
std::vector< std::shared_ptr< SharedMemorySegment > > allOf (const std::string &segmentName=".*")
 
- Public Member Functions inherited from lintel::ISharedMemorySegmentManager
virtual ~ISharedMemorySegmentManager ()=default
 

Detailed Description

Manages creation and access to named shared memory segments based on configuration.

Constructor & Destructor Documentation

◆ SharedMemorySegmentManager()

lintel::SharedMemorySegmentManager::SharedMemorySegmentManager ( const std::shared_ptr< Configuration > &  configuration)
explicit

Constructor.

Parameters
configurationapplication configuration containing segment definitions

Member Function Documentation

◆ allOf()

std::vector< std::shared_ptr< SharedMemorySegment > > lintel::SharedMemorySegmentManager::allOf ( const std::string &  segmentName = ".*")
virtual

Get all segments whose name matches the given pattern.

Parameters
segmentNameregex pattern (default ".*" for all)
Returns
matching segments

Implements lintel::ISharedMemorySegmentManager.

◆ of()

std::shared_ptr< SharedMemorySegment > lintel::SharedMemorySegmentManager::of ( const std::string &  sharedMemorySegmentName)
virtual

Get a shared memory segment by name.

Parameters
sharedMemorySegmentNamesegment name
Returns
shared memory segment, or nullptr if not found

Implements lintel::ISharedMemorySegmentManager.


The documentation for this class was generated from the following file: