Atlas Runtime
Atlas::PRegion Class Reference

#include <pregion.hpp>

Public Member Functions

 PRegion (const char *nm, region_id_t rid, void *ba)
 
 ~PRegion ()=default
 
 PRegion (const PRegion &)=delete
 
 PRegion (PRegion &&)=delete
 
PRegionoperator= (const PRegion &)=delete
 
PRegionoperator= (PRegion &&)=delete
 
void set_is_mapped (bool im)
 
void set_is_deleted (bool id)
 
void set_file_desc (int fd)
 
region_id_t get_id () const
 
void * get_base_addr () const
 
bool is_mapped () const
 
bool is_deleted () const
 
int get_file_desc () const
 
const char * get_name () const
 
bool doesRangeCheck (const void *ptr, size_t sz) const
 
PArenagetArena (uint32_t index)
 
void * allocMem (size_t sz, bool does_need_cache_line_alignment, bool does_need_logging)
 
void * callocMem (size_t nmemb, size_t sz)
 
void * reallocMem (void *, size_t)
 
void freeMem (void *ptr, bool should_log)
 
void setRoot (void *new_root)
 
void * getRoot () const
 
void * allocRoot ()
 
void initArenaTransients ()
 
void dumpDebugInfo () const
 
void printStats ()
 

Constructor & Destructor Documentation

Atlas::PRegion::PRegion ( const char *  nm,
region_id_t  rid,
void *  ba 
)
inlineexplicit
Atlas::PRegion::~PRegion ( )
default
Atlas::PRegion::PRegion ( const PRegion )
delete
Atlas::PRegion::PRegion ( PRegion &&  )
delete

Member Function Documentation

void * Atlas::PRegion::allocMem ( size_t  sz,
bool  does_need_cache_line_alignment,
bool  does_need_logging 
)

Entry point for region-based allocation

void* Atlas::PRegion::allocRoot ( )
inline
void * Atlas::PRegion::callocMem ( size_t  nmemb,
size_t  sz 
)

Entry point for region-based calloc

bool Atlas::PRegion::doesRangeCheck ( const void *  ptr,
size_t  sz 
) const
inline
void Atlas::PRegion::dumpDebugInfo ( ) const
inline

Used with the debug flag below

void Atlas::PRegion::freeMem ( void *  ptr,
bool  should_log 
)
inline
void* Atlas::PRegion::get_base_addr ( ) const
inline
int Atlas::PRegion::get_file_desc ( ) const
inline
region_id_t Atlas::PRegion::get_id ( ) const
inline
const char* Atlas::PRegion::get_name ( ) const
inline
PArena* Atlas::PRegion::getArena ( uint32_t  index)
inline
void* Atlas::PRegion::getRoot ( ) const
inline
void Atlas::PRegion::initArenaTransients ( )
inline
bool Atlas::PRegion::is_deleted ( ) const
inline
bool Atlas::PRegion::is_mapped ( ) const
inline
PRegion& Atlas::PRegion::operator= ( const PRegion )
delete
PRegion& Atlas::PRegion::operator= ( PRegion &&  )
delete
void Atlas::PRegion::printStats ( )
inline

Used with the stats flag below

void * Atlas::PRegion::reallocMem ( void *  ptr,
size_t  sz 
)

Entry point for region-based realloc

void Atlas::PRegion::set_file_desc ( int  fd)
inline
void Atlas::PRegion::set_is_deleted ( bool  id)
inline
void Atlas::PRegion::set_is_mapped ( bool  im)
inline
void Atlas::PRegion::setRoot ( void *  new_root)
inline

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