librime: history_translator.h Source File

| 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
14 class HistoryTranslator : public Translator {
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_;
24 double initial_quality_;
25};
26
27} // namespace rime
28
29#endif // RIME_HISTORY_TRANSLATOR_H_
translator.h
rime
Definition algebra.cc:12
rime::an
std::shared_ptr< T > an
Definition common.h:60
rime::HistoryTranslator::size_
int size_
Definition history_translator.h:23
rime::HistoryTranslator::input_
string input_
Definition history_translator.h:22
rime::HistoryTranslator::tag_
string tag_
Definition history_translator.h:21
rime::HistoryTranslator::HistoryTranslator
HistoryTranslator(const Ticket &ticket)
Definition history_translator.cc:18
rime::HistoryTranslator::initial_quality_
double initial_quality_
Definition history_translator.h:24
rime::HistoryTranslator::Query
virtual an< Translation > Query(const string &input, const Segment &segment)
Definition history_translator.cc:32
rime::Segment
Definition segmentation.h:18
rime::Ticket
Definition ticket.h:17
rime::Translator::Translator
Translator(const Ticket &ticket)
Definition translator.h:24