Compute Library
 21.02
IMemory Class Referenceabstract

Memory interface. More...

#include <IMemory.h>

Public Member Functions

virtual ~IMemory ()=default
 Virtual default destructor. More...
 
virtual IMemoryRegionregion ()=0
 Region accessor. More...
 
virtual IMemoryRegionregion () const =0
 Region accessor. More...
 
virtual void set_region (IMemoryRegion *region)=0
 Sets a memory region. More...
 
virtual void set_owned_region (std::unique_ptr< IMemoryRegion > region)=0
 Sets a memory region. More...
 

Detailed Description

Memory interface.

Definition at line 32 of file IMemory.h.

Constructor & Destructor Documentation

◆ ~IMemory()

virtual ~IMemory ( )
virtualdefault

Virtual default destructor.

Member Function Documentation

◆ region() [1/2]

virtual IMemoryRegion* region ( )
pure virtual

Region accessor.

Returns
Memory region

Implemented in CLMemory, GCMemory, and Memory.

Referenced by OperatorTensor::buffer().

◆ region() [2/2]

virtual IMemoryRegion* region ( ) const
pure virtual

Region accessor.

Returns
Memory region

Implemented in CLMemory, GCMemory, and Memory.

◆ set_owned_region()

virtual void set_owned_region ( std::unique_ptr< IMemoryRegion region)
pure virtual

Sets a memory region.

Warning
Ownership of the memory region is transfered along
Parameters
regionMemory region

Implemented in CLMemory, GCMemory, and Memory.

◆ set_region()

virtual void set_region ( IMemoryRegion region)
pure virtual

Sets a memory region.

Warning
Ownership of the memory region remains to the caller
Parameters
regionMemory region

Implemented in CLMemory, GCMemory, and Memory.


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