librime: rime::CommitEntry Struct Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Public Attributes | List of all members
rime::CommitEntry Struct Reference

`#include <memory.h>`

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

## Public Member Functions
| CommitEntry (Memory *a_memory=NULL)
bool | empty () const
void | Clear ()
void | AppendPhrase (const an< Phrase > &phrase)
bool | Save () const
int | Length () const
Public Member Functions inherited from rime::DictEntry
| DictEntry ()=default
ShortDictEntry | ToShort () const
bool | IsExactMatch () const
bool | IsPredictiveMatch () const
bool | operator< (const DictEntry &other) const

## Public Attributes
vector< const DictEntry * > | elements
Memory * | memory
Public Attributes inherited from rime::DictEntry
string | text
string | comment
string | preedit
Code | code
string | custom_code
double | weight = 0.0
double | quality_len = 0.0
int | commit_count = 0
int | remaining_code_length = 0
int | matching_code_size = 0

## Constructor & Destructor Documentation

## ◆ CommitEntry()

rime::CommitEntry::CommitEntry | ( | Memory * | a_memory = NULL | ) |
| inline

## Member Function Documentation

## ◆ AppendPhrase()

void rime::CommitEntry::AppendPhrase | ( | const an< Phrase > & | phrase | ) |

## ◆ Clear()

void rime::CommitEntry::Clear | ( |  | ) |

## ◆ empty()

bool rime::CommitEntry::empty | ( |  | ) | const
| inline

## ◆ Length()

int rime::CommitEntry::Length | ( |  | ) | const

## ◆ Save()

bool rime::CommitEntry::Save | ( |  | ) | const

## Member Data Documentation

## ◆ elements

vector<const DictEntry*> rime::CommitEntry::elements

## ◆ memory

Memory* rime::CommitEntry::memory

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

- memory.h
- memory.cc