librime: rime::BeamSearch Struct Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Types | Static Public Member Functions | Static Public Attributes | List of all members
rime::BeamSearch Struct Reference

## Public Types
using | State = LineCandidates

## Static Public Member Functions
static void | Initiate (State &initial_state)
static void | ForEachCandidate (const State &state, Poet::Compare compare, UpdateLineCandidate update)
static Line & | BestLineToUpdate (State &state, const Line &new_line)
static const Line & | BestLineInState (const State &final_state, Poet::Compare compare)

## Static Public Attributes
static constexpr int | kMaxLineCandidates = 7

## Member Typedef Documentation

## ◆ State

using rime::BeamSearch::State = LineCandidates

## Member Function Documentation

## ◆ BestLineInState()

const Line & rime::BeamSearch::BestLineInState | ( | const State & | final_state,
|  | Poet::Compare | compare )
| inlinestatic

## ◆ BestLineToUpdate()

Line & rime::BeamSearch::BestLineToUpdate | ( | State & | state,
|  | const Line & | new_line )
| inlinestatic

## ◆ ForEachCandidate()

void rime::BeamSearch::ForEachCandidate | ( | const State & | state,
|  | Poet::Compare | compare,
|  | UpdateLineCandidate | update )
| inlinestatic

## ◆ Initiate()

void rime::BeamSearch::Initiate | ( | State & | initial_state | ) |
| inlinestatic

## Member Data Documentation

## ◆ kMaxLineCandidates

int rime::BeamSearch::kMaxLineCandidates = 7
| staticconstexpr

The documentation for this struct was generated from the following file:

- poet.cc