Atlas Runtime
util.hpp File Reference
#include <stdint.h>
#include <string.h>
#include <map>
#include <set>
#include <atomic>
Include dependency graph for util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CmpUInt64
 
class  CmpAddrSizePair
 
class  ElemInfo< ElemType >
 
class  SimpleHashTable< ElemType >
 

Typedefs

typedef std::pair< uint64_t, uint64_t > UInt64Pair
 
typedef std::map< UInt64Pair, uint32_t, CmpUInt64MapInterval
 
typedef std::pair< void *, size_t > AddrSizePairType
 
typedef std::set< AddrSizePairType, CmpAddrSizePairSetOfPairs
 
typedef std::set< uint64_t > SetOfInts
 

Functions

void InsertToMapInterval (MapInterval *m, uint64_t e1, uint64_t e2, uint32_t e3)
 
MapInterval::const_iterator FindInMapInterval (const MapInterval &m, const uint64_t e1, const uint64_t e2)
 
void InsertSetOfPairs (SetOfPairs *setp, void *addr, size_t sz)
 
SetOfPairs::const_iterator FindSetOfPairs (const SetOfPairs &setp, void *addr, size_t sz)
 
char * NVM_GetRegionTablePath ()
 
char * NVM_GetUserDir ()
 
char * NVM_GetLogDir ()
 
void NVM_CreateUserDir ()
 
void NVM_CreateLogDir ()
 
char * NVM_GetFullyQualifiedRegionName (const char *name)
 
char * NVM_GetLogRegionName ()
 
char * NVM_GetLogRegionName (const char *prog_name)
 
bool NVM_doesLogExist (const char *log_path_name)
 
void NVM_qualifyPathName (char *s, const char *name)
 

Typedef Documentation

typedef std::pair<void*,size_t> AddrSizePairType
typedef std::map<UInt64Pair,uint32_t,CmpUInt64> MapInterval
typedef std::set<uint64_t> SetOfInts
typedef std::pair<uint64_t,uint64_t> UInt64Pair

Function Documentation

MapInterval::const_iterator FindInMapInterval ( const MapInterval m,
const uint64_t  e1,
const uint64_t  e2 
)
inline
SetOfPairs::const_iterator FindSetOfPairs ( const SetOfPairs setp,
void *  addr,
size_t  sz 
)
inline
void InsertSetOfPairs ( SetOfPairs setp,
void *  addr,
size_t  sz 
)
inline
void InsertToMapInterval ( MapInterval m,
uint64_t  e1,
uint64_t  e2,
uint32_t  e3 
)
inline
void NVM_CreateLogDir ( )
void NVM_CreateUserDir ( )
bool NVM_doesLogExist ( const char *  log_path_name)
char* NVM_GetFullyQualifiedRegionName ( const char *  name)
char* NVM_GetLogDir ( )
char* NVM_GetLogRegionName ( )
char* NVM_GetLogRegionName ( const char *  prog_name)
char* NVM_GetRegionTablePath ( )
char* NVM_GetUserDir ( )
void NVM_qualifyPathName ( char *  s,
const char *  name 
)