Go to the documentation of this file.
26 #include <Ice/ObjectAdapter.h>
28 #include <MemoryX/interface/core/MemoryInterface.h>
30 #include <shared_mutex>
46 virtual public MemoryInterface
54 AbstractMemorySegmentPrx
addSegment(
const std::string& segmentName,
const AbstractMemorySegmentPtr& segment, const ::Ice::Current& = Ice::emptyCurrent)
override;
55 bool hasSegment(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
const override;
56 AbstractMemorySegmentPrx
getSegment(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
const override;
57 void removeSegment(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
override;
58 NameList
getSegmentNames(const ::Ice::Current& = Ice::emptyCurrent)
const override;
60 EntityBasePtr
findEntityById(
const std::string& entityId,
const Ice::Current&
c = Ice::emptyCurrent)
override;
61 EntityRefBasePtr
findEntityRefById(
const std::string& entityId,
const Ice::Current&
c = Ice::emptyCurrent)
override;
63 AbstractMemorySegmentPtr
getSegmentPtr(
const std::string& segmentName);
MemorySegmentMap segments
AbstractMemorySegmentPtr getSegmentPtr(const std::string &segmentName)
AbstractMemorySegmentPrx addSegment(const std::string &segmentName, const AbstractMemorySegmentPtr &segment, const ::Ice::Current &=Ice::emptyCurrent) override
std::shared_mutex segmentsMutex
virtual Ice::ObjectAdapterPtr getObjectAdapter() const =0
std::map< std::string, MemorySegmentEntry > MemorySegmentMap
bool hasSegment(const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) const override
The SegmentedMemory class provides an interface for organizing memories with segmented data structure...
AbstractMemorySegmentPrx proxy
EntityRefBasePtr findEntityRefById(const std::string &entityId, const Ice::Current &c=Ice::emptyCurrent) override
EntityBasePtr findEntityById(const std::string &entityId, const Ice::Current &c=Ice::emptyCurrent) override
AbstractMemorySegmentPtr pointer
void removeSegment(const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) override
AbstractMemorySegmentPrx getSegment(const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) const override
~SegmentedMemory() override
NameList getSegmentNames(const ::Ice::Current &=Ice::emptyCurrent) const override