top | up | prev | next

ScriptTable Class

Definition at line 469 of Unicode.hpp

Constructors

ScriptTable()

Member Functions

void Done() static
const Script& GetScript(ScriptId id) const
const Script& GetScriptByLongName(const std::string& longName) const
const Script& GetScriptByShortName(const std::string& shortName) const
void Init() static
ScriptTable& Instance() static
const std::vector<Script>& Scripts() const

Member Variables

std::unique_ptr<ScriptTable> instance static
std::unordered_map<std::string, const Script*> longNameMap
std::unordered_map<ScriptId, const Script*, ScriptIdHash> scriptIdMap
std::vector<Script> scripts
std::unordered_map<std::string, const Script*> shortNameMap

Constructor Details

ScriptTable Constructor

soulng::unicode::ScriptTable::ScriptTable()

Definition at line 1273 of Unicode.cpp
Declaration at line 481 of Unicode.hpp


Member Function Details

Done Member Function

void soulng::unicode::ScriptTable::Done() static

Definition at line 1266 of Unicode.cpp :
1267 {
1268     instance.reset();
1269 }


Declaration at line 473 of Unicode.hpp


GetScript Member Function

const Script & soulng::unicode::ScriptTable::GetScript(ScriptId id) const

Definition at line 1438 of Unicode.cpp
Declaration at line 475 of Unicode.hpp


GetScriptByLongName Member Function

const Script & soulng::unicode::ScriptTable::GetScriptByLongName(const std::string& longName) const

Definition at line 1464 of Unicode.cpp
Declaration at line 477 of Unicode.hpp


GetScriptByShortName Member Function

const Script & soulng::unicode::ScriptTable::GetScriptByShortName(const std::string& shortName) const

Definition at line 1451 of Unicode.cpp
Declaration at line 476 of Unicode.hpp


Init Member Function

void soulng::unicode::ScriptTable::Init() static

Definition at line 1261 of Unicode.cpp :
1262 {
1263     instance.reset(new ScriptTable());
1264 }


Declaration at line 472 of Unicode.hpp


Instance Member Function

ScriptTable & soulng::unicode::ScriptTable::Instance() static

Definition at line 474 of Unicode.hpp :
 474 { return *instance; }


Scripts Member Function

const std::vector<Script >& soulng::unicode::ScriptTable::Scripts() const

Definition at line 478 of Unicode.hpp :
 478 { return scripts; }


top | up | prev | next