librime: rime::PrefetchTranslation Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

`#include <translation.h>`

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

## Public Member Functions
| 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
virtual bool | Replenish ()
Protected Member Functions inherited from rime::Translation
void | set_exhausted (bool exhausted)

## Protected Attributes
an< Translation > | translation_
CandidateQueue | cache_

## Constructor & Destructor Documentation

## ◆ PrefetchTranslation()

rime::PrefetchTranslation::PrefetchTranslation | ( | an< Translation > | translation | ) |

## Member Function Documentation

## ◆ Next()

bool rime::PrefetchTranslation::Next | ( |  | ) |
| virtual

Implements rime::Translation.

## ◆ Peek()

an< Candidate > rime::PrefetchTranslation::Peek | ( |  | ) |
| virtual

Implements rime::Translation.

## ◆ Replenish()

virtual bool rime::PrefetchTranslation::Replenish | ( |  | ) |
| inlineprotectedvirtual

Reimplemented in rime::ContextualTranslation, and rime::SimplifiedTranslation.

## Member Data Documentation

## ◆ cache_

CandidateQueue rime::PrefetchTranslation::cache_
| protected

## ◆ translation_

an<Translation> rime::PrefetchTranslation::translation_
| protected

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

- translation.h
- translation.cc