|
librime 1.2
Rime Input Method Engine, the core library
|
#include <table.h>


Public Member Functions | |
| RIME_DLL | Table (const path &file_path) |
| virtual | ~Table () |
| RIME_DLL bool | Load () |
| RIME_DLL bool | Save () |
| RIME_DLL bool | Build (const Syllabary &syllabary, const Vocabulary &vocabulary, size_t num_entries, uint32_t dict_file_checksum=0) |
| bool | GetSyllabary (Syllabary *syllabary) |
| RIME_DLL string | GetSyllableById (int syllable_id) |
| RIME_DLL TableAccessor | QueryWords (int syllable_id) |
| RIME_DLL TableAccessor | QueryPhrases (const Code &code) |
| RIME_DLL bool | Query (const SyllableGraph &syll_graph, size_t start_pos, TableQueryResult *result) |
| RIME_DLL string | GetEntryText (const table::Entry &entry) |
| uint32_t | dict_file_checksum () const |
| table::Metadata * | metadata () const |
| Public Member Functions inherited from rime::MappedFile | |
| MappedFile (const MappedFile &)=delete | |
| MappedFile & | operator= (const MappedFile &)=delete |
| bool | Exists () const |
| bool | IsOpen () const |
| void | Close () |
| bool | Remove () |
| template<class T> | |
| T * | Find (size_t offset) |
| const path & | file_path () const |
| size_t | file_size () const |
Protected Attributes | |
| table::Metadata * | metadata_ = nullptr |
| table::Syllabary * | syllabary_ = nullptr |
| table::Index * | index_ = nullptr |
| the< StringTable > | string_table_ |
| the< StringTableBuilder > | string_table_builder_ |
Additional Inherited Members | |
| Protected Member Functions inherited from rime::MappedFile | |
| MappedFile (const path &file_path) | |
| virtual | ~MappedFile () |
| bool | Create (size_t capacity) |
| bool | OpenReadOnly () |
| bool | OpenReadWrite () |
| bool | Flush () |
| bool | Resize (size_t capacity) |
| bool | ShrinkToFit () |
| template<class T> | |
| T * | Allocate (size_t count=1) |
| template<class T> | |
| Array< T > * | CreateArray (size_t array_size) |
| String * | CreateString (const string &str) |
| bool | CopyString (const string &src, String *dest) |
| size_t | capacity () const |
| char * | address () const |
| rime::Table::Table | ( | const path & | file_path | ) |
|
virtual |
| bool rime::Table::Build | ( | const Syllabary & | syllabary, |
| const Vocabulary & | vocabulary, | ||
| size_t | num_entries, | ||
| uint32_t | dict_file_checksum = 0 ) |
| uint32_t rime::Table::dict_file_checksum | ( | ) | const |
| string rime::Table::GetEntryText | ( | const table::Entry & | entry | ) |
| bool rime::Table::GetSyllabary | ( | Syllabary * | syllabary | ) |
| string rime::Table::GetSyllableById | ( | int | syllable_id | ) |
| bool rime::Table::Load | ( | ) |
|
inline |
| bool rime::Table::Query | ( | const SyllableGraph & | syll_graph, |
| size_t | start_pos, | ||
| TableQueryResult * | result ) |
| TableAccessor rime::Table::QueryPhrases | ( | const Code & | code | ) |
| TableAccessor rime::Table::QueryWords | ( | int | syllable_id | ) |
| bool rime::Table::Save | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |