Atlas Runtime
atlas_alloc_cpp.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Atlas
 

Functions

Atlas::PRegionNVM_GetRegion (uint32_t rid)
 Get a handle to a persistent region. More...
 
void * operator new (size_t sz, Atlas::PRegion *rgn) noexcept
 Object allocation for C++. More...
 
void * operator new[] (size_t sz, Atlas::PRegion *rgn) noexcept
 Array form allocation for C++, type must have explicit destructor. More...
 

Function Documentation

Atlas::PRegion* NVM_GetRegion ( uint32_t  rid)

Get a handle to a persistent region.

Parameters
ridRegion identifier
Returns
Pointer to the corresponding persistent region

Currently, this interface is to be used by a client only for the placement new operations

void* operator new ( size_t  sz,
Atlas::PRegion rgn 
)
noexcept

Object allocation for C++.

Parameters
szAllocation size
rgnPointer to the region to serve the allocation from
Returns
Pointer to memory allocated

This interface overloads the C++ placement new operator. The corresponding delete operation is NVM_Destroy.

void* operator new[] ( size_t  sz,
Atlas::PRegion rgn 
)
noexcept

Array form allocation for C++, type must have explicit destructor.

Parameters
szAllocation size
rgnPointer to the region to serve the allocation from
Returns
Pointer to memory allocated

This interface overloads the array form C++ placement new operator. The type of the array elements must have an explicit destructor. The corresponding delete operation is NVM_Destroy_Array.