librime: rime::Grammar Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Static Public Member Functions | List of all members
rime::Grammar Class Referenceabstract

`#include <grammar.h>`

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

## Public Member Functions
virtual | ~Grammar ()
virtual double | Query (const string &context, const string &word, bool is_rear)=0

## Static Public Member Functions
static double | Evaluate (const string &context, const string &entry_text, double entry_weight, bool is_rear, Grammar *grammar)
Static Public Member Functions inherited from rime::Class< Grammar, Config * >
static Component * | Require (const string &name)

## Additional Inherited Members
Public Types inherited from rime::Class< Grammar, Config * >
using | Initializer

## Constructor & Destructor Documentation

## ◆ ~Grammar()

virtual rime::Grammar::~Grammar | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ Evaluate()

double rime::Grammar::Evaluate | ( | const string & | context,
|  | const string & | entry_text,
|  | double | entry_weight,
|  | bool | is_rear,
|  | Grammar * | grammar )
| inlinestatic

## ◆ Query()

virtual double rime::Grammar::Query | ( | const string & | context,
|  | const string & | word,
|  | bool | is_rear )
| pure virtual

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

- grammar.h