UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
MemBlock Class Referenceabstract

#include <memctl.H>

Inheritance diagram for MemBlock:
LocalMem SharedMem UniMem

Public Member Functions

virtual ~MemBlock ()
 
virtual size_t size ()=0
 
virtual void resize (size_t volume)=0
 
virtual void * ptr ()=0
 
virtual void operator= (MemBlock &mem_blk)
 

Detailed Description

Block of memory with realloc behaviour.

Constructor & Destructor Documentation

virtual MemBlock::~MemBlock ( )
virtual

Destroy memory block

Member Function Documentation

virtual void MemBlock::operator= ( MemBlock mem_blk)
virtual

Copy contents of a mem block to this one

virtual void* MemBlock::ptr ( )
pure virtual

Return address of page in local space with autoattachment

Implemented in UniMem, SharedMem, and LocalMem.

virtual void MemBlock::resize ( size_t  volume)
pure virtual

Change size of page to new volume without any guarantee of saving data during resize

Implemented in UniMem, SharedMem, and LocalMem.

virtual size_t MemBlock::size ( )
pure virtual

Get size of allocated memory page

Implemented in UniMem, SharedMem, and LocalMem.


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