librime: rime::DistinctTranslation 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::DistinctTranslation Class Reference

`#include <translation.h>`

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

## Public Member Functions
| DistinctTranslation (an< Translation > translation)
virtual bool | Next ()
Public Member Functions inherited from rime::CacheTranslation
| CacheTranslation (an< Translation > translation)
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 | AlreadyHas (const string &text) const
Protected Member Functions inherited from rime::Translation
void | set_exhausted (bool exhausted)

## Protected Attributes
set< string > | candidate_set_
Protected Attributes inherited from rime::CacheTranslation
an< Translation > | translation_
an< Candidate > | cache_

## Constructor & Destructor Documentation

## ◆ DistinctTranslation()

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

## Member Function Documentation

## ◆ AlreadyHas()

bool rime::DistinctTranslation::AlreadyHas | ( | const string & | text | ) | const
| protected

## ◆ Next()

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

Reimplemented from rime::CacheTranslation.

## Member Data Documentation

## ◆ candidate_set_

set<string> rime::DistinctTranslation::candidate_set_
| protected

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

- translation.h
- translation.cc