|
CeresEngine 0.2.0
A game development framework
|
A thread-safe database adapter. More...
#include <CeresEngine/Foundation/StringID.hpp>
Public Member Functions | |
| template<typename... Args> | |
| ThreadSafeStringDatabase (Args &&... args) | |
| StringID::Status | insert (StringID::Hash hash, StringView string) override |
| Inserts a new hash-string-pair with prefix (optional) into the internal database. | |
| StringID::Status | insertPrefix (StringID::Hash hash, StringID::Hash prefix, StringView string) override |
| Inserts a hash-string-pair with given prefix into the internal database. | |
| StringView | lookup (StringID::Hash hash) const noexcept override |
| Returns the string stored with a given hash. | |
Private Types | |
| using | super = Parent |
Private Attributes | |
| MutexType | mMutex |
A thread-safe database adapter.
Mutex.
|
private |
|
inlineexplicit |
|
inlineoverride |
Inserts a new hash-string-pair with prefix (optional) into the internal database.
| hash | The hash of the string. |
| string | The string which does not need to be null-terminated. |
|
inlineoverride |
Inserts a hash-string-pair with given prefix into the internal database.
insert. Override it if you can do it more efficiently.| hash | The hash of the string plus prefix. |
| prefix | The hash of the prefix-string. |
| string | The suffix which does not need to be null-terminated. |
|
inlineoverridenoexcept |
Returns the string stored with a given hash.
|
mutableprivate |