6 #ifndef _FCITX_LIBIME_CORE_DICTIONARY_H_ 7 #define _FCITX_LIBIME_CORE_DICTIONARY_H_ 11 #include <unordered_set> 12 #include <libime/core/lattice.h> 13 #include <libime/core/libimecore_export.h> 14 #include <libime/core/segmentgraph.h> 21 using GraphMatchCallback =
22 std::function<void(
const SegmentGraphPath &, WordNode &,
float,
23 std::unique_ptr<LatticeNodeData>)>;
28 matchPrefix(
const SegmentGraph &graph,
const GraphMatchCallback &callback,
29 const std::unordered_set<const SegmentGraphNode *> &ignore = {},
30 void *helper =
nullptr)
const;
35 const GraphMatchCallback &callback,
36 const std::unordered_set<const SegmentGraphNode *> &ignore,
37 void *helper)
const = 0;
41 #endif // _FCITX_LIBIME_CORE_DICTIONARY_H_