librime 1.2
Rime Input Method Engine, the core library
history_translator.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2016-09-08 osfans <waxaca@163.com>
6//
7#ifndef RIME_HISTORY_TRANSLATOR_H_
8#define RIME_HISTORY_TRANSLATOR_H_
9
10#include <rime/translator.h>
11
12namespace rime {
13
15 public:
16 HistoryTranslator(const Ticket& ticket);
17
18 virtual an<Translation> Query(const string& input, const Segment& segment);
19
20 protected:
21 string tag_;
22 string input_;
23 int size_;
25};
26
27} // namespace rime
28
29#endif // RIME_HISTORY_TRANSLATOR_H_
Definition algebra.cc:12
std::shared_ptr< T > an
Definition common.h:60
int size_
Definition history_translator.h:23
string input_
Definition history_translator.h:22
string tag_
Definition history_translator.h:21
HistoryTranslator(const Ticket &ticket)
Definition history_translator.cc:18
double initial_quality_
Definition history_translator.h:24
virtual an< Translation > Query(const string &input, const Segment &segment)
Definition history_translator.cc:32
Definition segmentation.h:18
Definition ticket.h:17
Translator(const Ticket &ticket)
Definition translator.h:24