Symphony Of Empires
|
The string pool manager (singleton), used mainly for translation purpouses. But also helps to reduce the memory size of various objects. More...
#include <string.hpp>
Public Member Functions | |
StringManager (Eng3D::State &_s) | |
~StringManager ()=default | |
Eng3D::StringRef | insert (const std::string &str) |
const std::string_view | get_by_id (const Eng3D::StringRef ref) const |
Static Public Member Functions | |
static StringManager & | get_instance () |
Public Attributes | |
std::vector< char > | strings |
std::mutex | strings_mutex |
The string pool manager (singleton), used mainly for translation purpouses. But also helps to reduce the memory size of various objects.
Definition at line 70 of file string.hpp.
Eng3D::StringManager::StringManager | ( | Eng3D::State & | _s | ) |
Definition at line 47 of file string.cpp.
|
default |
|
inline |
Definition at line 84 of file string.hpp.
|
static |
|
inline |
std::vector<char> Eng3D::StringManager::strings |
Definition at line 89 of file string.hpp.
|
mutable |
Definition at line 91 of file string.hpp.