librime: rime::ContextualTranslation Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Protected Member Functions | List of all members
rime::ContextualTranslation Class Reference

`#include <contextual_translation.h>`

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

## Public Member Functions
| ContextualTranslation (an< Translation > translation, string input, string preceding_text, Grammar *grammar)
Public Member Functions inherited from rime::PrefetchTranslation
| PrefetchTranslation (an< Translation > translation)
virtual bool | Next ()
virtual an< Candidate > | Peek ()
Public Member Functions inherited from rime::Translation
| Translation ()=default
virtual | ~Translation ()=default
virtual int | Compare (an< Translation > other, const CandidateList &candidates)
bool | exhausted () const

## Protected Member Functions
bool | Replenish () override
Protected Member Functions inherited from rime::Translation
void | set_exhausted (bool exhausted)

## Additional Inherited Members
Protected Attributes inherited from rime::PrefetchTranslation
an< Translation > | translation_
CandidateQueue | cache_

## Constructor & Destructor Documentation

## ◆ ContextualTranslation()

rime::ContextualTranslation::ContextualTranslation | ( | an< Translation > | translation,
|  | string | input,
|  | string | preceding_text,
|  | Grammar * | grammar )
| inline

## Member Function Documentation

## ◆ Replenish()

bool rime::ContextualTranslation::Replenish | ( |  | ) |
| overrideprotectedvirtual

Reimplemented from rime::PrefetchTranslation.

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

- contextual_translation.h
- contextual_translation.cc