librime: rime::Translator Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Protected Attributes | List of all members
rime::Translator Class Referenceabstract

`#include <translator.h>`

Inheritance diagram for rime::Translator:
[legend]
Collaboration diagram for rime::Translator:
[legend]

## Public Member Functions
| Translator (const Ticket &ticket)
virtual | ~Translator ()=default
virtual an< Translation > | Query (const string &input, const Segment &segment)=0
string | name_space () const

## Protected Attributes
Engine * | engine_
string | name_space_

## Additional Inherited Members
Public Types inherited from rime::Class< Translator, const Ticket & >
using | Initializer
Static Public Member Functions inherited from rime::Class< Translator, const Ticket & >
static Component * | Require (const string &name)

## Constructor & Destructor Documentation

## ◆ Translator()

rime::Translator::Translator | ( | const Ticket & | ticket | ) |
| inlineexplicit

## ◆ ~Translator()

virtual rime::Translator::~Translator | ( |  | ) |
| virtualdefault

## Member Function Documentation

## ◆ name_space()

string rime::Translator::name_space | ( |  | ) | const
| inline

## ◆ Query()

virtual an< Translation > rime::Translator::Query | ( | const string & | input,
|  | const Segment & | segment )
| pure virtual

Implemented in rime::EchoTranslator, rime::HistoryTranslator, rime::PunctTranslator, rime::ReverseLookupTranslator, rime::SchemaListTranslator, rime::ScriptTranslator, rime::SwitchTranslator, and rime::TableTranslator.

## Member Data Documentation

## ◆ engine_

Engine* rime::Translator::engine_
| protected

## ◆ name_space_

string rime::Translator::name_space_
| protected

The documentation for this class was generated from the following file:

- translator.h