top | up | prev | next

BlockTable Class

Definition at line 233 of Unicode.hpp

Constructors

BlockTable()

Member Functions

const std::vector<Block>& Blocks() const
void Done() static
const Block& GetBlock(BlockId blockId) const
const Block& GetBlockByLongName(const std::string& longName) const
const Block& GetBlockByShortName(const std::string& shortName) const
void Init() static
BlockTable& Instance() static

Member Variables

std::unordered_map<BlockId, const Block*, BlockIdHash> blockIdMap
std::vector<Block> blocks
std::unique_ptr<BlockTable> instance static
std::unordered_map<std::string, const Block*> longNameMap
std::unordered_map<std::string, const Block*> shortNameMap

Constructor Details

BlockTable Constructor

soulng::unicode::BlockTable::BlockTable()

Definition at line 729 of Unicode.cpp
Declaration at line 244 of Unicode.hpp


Member Function Details

Blocks Member Function

const std::vector<Block >& soulng::unicode::BlockTable::Blocks() const

Definition at line 242 of Unicode.hpp :
 242 { return blocks; }


Done Member Function

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

Definition at line 724 of Unicode.cpp :
 725 {
 726     instance.reset();
 727 }


Declaration at line 237 of Unicode.hpp


GetBlock Member Function

const Block & soulng::unicode::BlockTable::GetBlock(BlockId blockId) const

Definition at line 1040 of Unicode.cpp
Declaration at line 239 of Unicode.hpp


GetBlockByLongName Member Function

const Block & soulng::unicode::BlockTable::GetBlockByLongName(const std::string& longName) const

Definition at line 1066 of Unicode.cpp
Declaration at line 241 of Unicode.hpp


GetBlockByShortName Member Function

const Block & soulng::unicode::BlockTable::GetBlockByShortName(const std::string& shortName) const

Definition at line 1053 of Unicode.cpp
Declaration at line 240 of Unicode.hpp


Init Member Function

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

Definition at line 719 of Unicode.cpp :
 720 {
 721     instance.reset(new BlockTable());
 722 }


Declaration at line 236 of Unicode.hpp


Instance Member Function

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

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


top | up | prev | next