lintel 0.2.0
Loading...
Searching...
No Matches
SharedMemorySegmentManager.h
Go to the documentation of this file.
1#ifndef LINTEL_SHAREDMEMORYSEGMENTMANAGER_H
2#define LINTEL_SHAREDMEMORYSEGMENTMANAGER_H
3
4#include <map>
5#include <memory>
6
11
12namespace lintel {
17{
18private:
19 std::map<std::string, std::shared_ptr<SharedMemorySegment>> m_sharedMemorySegments;
20
26 static std::map<std::string, std::shared_ptr<SharedMemorySegment>> init(
27 const std::vector<std::shared_ptr<Entry>> &entries);
28
29public:
34 explicit SharedMemorySegmentManager(const std::shared_ptr<Configuration> &configuration);
35
41 std::shared_ptr<SharedMemorySegment> of(const std::string &sharedMemorySegmentName);
42
48 std::vector<std::shared_ptr<SharedMemorySegment>> allOf(const std::string &segmentName = ".*");
49};
50
51}// namespace lintel
52#endif// LINTEL_SHAREDMEMORYSEGMENTMANAGER_H
Definition ISharedMemorySegmentManager.h:12
Definition SharedMemorySegmentManager.h:17
std::shared_ptr< SharedMemorySegment > of(const std::string &sharedMemorySegmentName)
SharedMemorySegmentManager(const std::shared_ptr< Configuration > &configuration)
std::vector< std::shared_ptr< SharedMemorySegment > > allOf(const std::string &segmentName=".*")
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9