librime: rime::FifoTranslation Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

`#include <translation.h>`

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

## Public Member Functions
| FifoTranslation ()
bool | Next ()
an< Candidate > | Peek ()
void | Append (an< Candidate > candy)
size_t | size () const
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
CandidateList | candies_
size_t | cursor_ = 0

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

## Constructor & Destructor Documentation

## ◆ FifoTranslation()

rime::FifoTranslation::FifoTranslation | ( |  | ) |

## Member Function Documentation

## ◆ Append()

void rime::FifoTranslation::Append | ( | an< Candidate > | candy | ) |

## ◆ Next()

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

Implements rime::Translation.

## ◆ Peek()

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

Implements rime::Translation.

## ◆ size()

size_t rime::FifoTranslation::size | ( |  | ) | const
| inline

## Member Data Documentation

## ◆ candies_

CandidateList rime::FifoTranslation::candies_
| protected

## ◆ cursor_

size_t rime::FifoTranslation::cursor_ = 0
| protected

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

- translation.h
- translation.cc