6 #ifndef _FCITX_LIBIME_TABLE_TABLEDECODER_H_ 7 #define _FCITX_LIBIME_TABLE_TABLEDECODER_H_ 13 #include <string_view> 14 #include <libime/core/decoder.h> 15 #include <libime/core/languagemodel.h> 16 #include <libime/core/lattice.h> 17 #include <libime/core/segmentgraph.h> 18 #include <libime/table/libimetable_export.h> 19 #include <libime/table/tablebaseddictionary.h> 23 class TableLatticeNodePrivate;
28 SegmentGraphPath path,
const State &state,
float cost,
29 std::unique_ptr<TableLatticeNodePrivate> data);
32 uint32_t index()
const;
33 PhraseFlag flag()
const;
34 const std::string &code()
const;
35 size_t codeLength()
const;
38 std::unique_ptr<TableLatticeNodePrivate> d_ptr;
50 std::string_view word, WordIndex idx,
51 SegmentGraphPath path,
52 const State &state,
float cost,
53 std::unique_ptr<LatticeNodeData> data,
54 bool onlyPath)
const override;
62 LIBIMETABLE_EXPORT
SegmentGraph graphForCode(std::string_view s,
66 #endif // _FCITX_LIBIME_TABLE_TABLEDECODER_H_