SegmentedMemory Class Referenceabstract

The SegmentedMemory class provides an interface for organizing memories with segmented data structures. More...

#include <MemoryX/core/memory/SegmentedMemory.h>

+ Inheritance diagram for SegmentedMemory:

Public Member Functions

AbstractMemorySegmentPrx addSegment (const std::string &segmentName, const AbstractMemorySegmentPtr &segment, const ::Ice::Current &=Ice::emptyCurrent) override
 
EntityBasePtr findEntityById (const std::string &entityId, const Ice::Current &c=Ice::emptyCurrent) override
 
EntityRefBasePtr findEntityRefById (const std::string &entityId, const Ice::Current &c=Ice::emptyCurrent) override
 
virtual Ice::ObjectAdapterPtr getObjectAdapter () const =0
 
AbstractMemorySegmentPrx getSegment (const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) const override
 
NameList getSegmentNames (const ::Ice::Current &=Ice::emptyCurrent) const override
 
AbstractMemorySegmentPtr getSegmentPtr (const std::string &segmentName)
 
bool hasSegment (const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) const override
 
void removeSegment (const std::string &segmentName, const ::Ice::Current &=Ice::emptyCurrent) override
 
 SegmentedMemory ()
 

Protected Member Functions

 ~SegmentedMemory () override
 

Protected Attributes

MemorySegmentMap segments
 
std::shared_mutex segmentsMutex
 

Detailed Description

The SegmentedMemory class provides an interface for organizing memories with segmented data structures.

Constructor & Destructor Documentation

◆ ~SegmentedMemory()

~SegmentedMemory ( )
overrideprotected

◆ SegmentedMemory()

Member Function Documentation

◆ addSegment()

AbstractMemorySegmentPrx addSegment ( const std::string & segmentName,
const AbstractMemorySegmentPtr & segment,
const ::Ice::Current & c = Ice::emptyCurrent )
override

◆ findEntityById()

EntityBasePtr findEntityById ( const std::string & entityId,
const Ice::Current & c = Ice::emptyCurrent )
override

◆ findEntityRefById()

EntityRefBasePtr findEntityRefById ( const std::string & entityId,
const Ice::Current & c = Ice::emptyCurrent )
override

◆ getObjectAdapter()

virtual Ice::ObjectAdapterPtr getObjectAdapter ( ) const
pure virtual

◆ getSegment()

AbstractMemorySegmentPrx getSegment ( const std::string & segmentName,
const ::Ice::Current & c = Ice::emptyCurrent ) const
override

◆ getSegmentNames()

NameList getSegmentNames ( const ::Ice::Current & = Ice::emptyCurrent) const
override

◆ getSegmentPtr()

AbstractMemorySegmentPtr getSegmentPtr ( const std::string & segmentName)

◆ hasSegment()

bool hasSegment ( const std::string & segmentName,
const ::Ice::Current & c = Ice::emptyCurrent ) const
override

◆ removeSegment()

void removeSegment ( const std::string & segmentName,
const ::Ice::Current & c = Ice::emptyCurrent )
override

Member Data Documentation

◆ segments

MemorySegmentMap segments
protected

◆ segmentsMutex

std::shared_mutex segmentsMutex
mutableprotected

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