Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
atlas::records::internal Namespace Reference

Functions

static std::shared_ptr< GameDatagetPtr (const RecordID key)
 Returns the ptr for the given key. Returns nullptr if not found.
 
static void releasePtr (const RecordID idkey)
 
std::shared_ptr< VersionDatagetPtr (const RecordID id, const QString version)
 
void releasePtr (const RecordID id, const QString version)
 

Variables

static std::unordered_map< RecordID, std::shared_ptr< GameData > > map
 
static std::mutex map_mtx
 
static std::unordered_map< VersionKey, std::shared_ptr< VersionData > > map
 
static std::mutex map_mtx
 

Function Documentation

◆ getPtr() [1/2]

std::shared_ptr< VersionData > atlas::records::internal::getPtr ( const RecordID id,
const QString version )
inline

◆ getPtr() [2/2]

static std::shared_ptr< GameData > atlas::records::internal::getPtr ( const RecordID key)
inlinestatic

Returns the ptr for the given key. Returns nullptr if not found.

◆ releasePtr() [1/2]

void atlas::records::internal::releasePtr ( const RecordID id,
const QString version )
inline

◆ releasePtr() [2/2]

static void atlas::records::internal::releasePtr ( const RecordID idkey)
inlinestatic

Variable Documentation

◆ map [1/2]

std::unordered_map< RecordID, std::shared_ptr< GameData > > atlas::records::internal::map
inlinestatic

◆ map [2/2]

std::unordered_map< VersionKey, std::shared_ptr< VersionData > > atlas::records::internal::map
inlinestatic

◆ map_mtx [1/2]

std::mutex atlas::records::internal::map_mtx
inlinestatic

◆ map_mtx [2/2]

std::mutex atlas::records::internal::map_mtx
inlinestatic