librime: rime::CacheTranslation Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

`#include <translation.h>`

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

## Public Member Functions
| CacheTranslation (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 Attributes
an< Translation > | translation_
an< Candidate > | cache_

## Additional Inherited Members
Protected Member Functions inherited from rime::Translation
void | set_exhausted (bool exhausted)

## Constructor & Destructor Documentation

## ◆ CacheTranslation()

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

## Member Function Documentation

## ◆ Next()

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

Implements rime::Translation.

Reimplemented in rime::DistinctTranslation, and rime::UniquifiedTranslation.

## ◆ Peek()

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

Implements rime::Translation.

Reimplemented in rime::ReverseLookupFilterTranslation.

## Member Data Documentation

## ◆ cache_

an<Candidate> rime::CacheTranslation::cache_
| protected

## ◆ translation_

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

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

- translation.h
- translation.cc