top | up | prev | next

StringRepository<StringT, CharPtrT> Class

Definition at line 15 of StringRepository.hpp

Member Functions

CharPtrT CharPtr<StringT, CharPtrT>(int id) const
const StringT& GetString<StringT, CharPtrT>(int id) const
int Install<StringT, CharPtrT>(const StringT& str)

Member Variables

std::unordered_map<StringT, int> stringMap
std::vector<StringT> strings

Member Function Details

CharPtr Member Function

CharPtrT cmajor::binder::StringRepository::CharPtr<StringT, CharPtrT>(int id) const

Definition at line 51 of StringRepository.hpp :
52 {
53     Assert(id >= 0 && id < strings.size()"invalid string id");
54     return reinterpret_cast<CharPtrT>(strings[id].c_str());
55 }


Declaration at line 20 of StringRepository.hpp

Called by: cmajor::binder::BoundCompileUnit::GetUtf16CharPtr , cmajor::binder::BoundCompileUnit::GetUtf32CharPtr , cmajor::binder::BoundCompileUnit::GetUtf8CharPtr


GetString Member Function

const StringT & cmajor::binder::StringRepository::GetString<StringT, CharPtrT>(int id) const

Definition at line 44 of StringRepository.hpp :
45 {
46     Assert(id >= 0 && id < strings.size()"invalid string id");
47     return strings[id];
48 }


Declaration at line 19 of StringRepository.hpp

Called by: cmajor::binder::BoundCompileUnit::GetUtf16String , cmajor::binder::BoundCompileUnit::GetUtf32String , cmajor::binder::BoundCompileUnit::GetUtf8String


Install Member Function

int cmajor::binder::StringRepository::Install<StringT, CharPtrT>(const StringT & str)

Definition at line 27 of StringRepository.hpp
Declaration at line 18 of StringRepository.hpp

Called by: cmajor::binder::BoundCompileUnit::Install , cmajor::binder::BoundCompileUnit::Install , cmajor::binder::BoundCompileUnit::Install


top | up | prev | next