librime: rime::UserDbMerger Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

`#include <user_db.h>`

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

## Public Member Functions
| UserDbMerger (Db *db)
virtual | ~UserDbMerger ()
virtual bool | MetaPut (const string &key, const string &value)
virtual bool | Put (const string &key, const string &value)
void | CloseMerge ()
Public Member Functions inherited from rime::Sink
virtual | ~Sink ()=default
template<class SourceType>
int | operator<< (SourceType &source)

## Protected Attributes
Db * | db_
TickCount | our_tick_
TickCount | their_tick_
TickCount | max_tick_
int | merged_entries_

## Constructor & Destructor Documentation

## ◆ UserDbMerger()

rime::UserDbMerger::UserDbMerger | ( | Db * | db | ) |
| explicit

## ◆ ~UserDbMerger()

rime::UserDbMerger::~UserDbMerger | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ CloseMerge()

void rime::UserDbMerger::CloseMerge | ( |  | ) |

## ◆ MetaPut()

bool rime::UserDbMerger::MetaPut | ( | const string & | key,
|  | const string & | value )
| virtual

Implements rime::Sink.

## ◆ Put()

bool rime::UserDbMerger::Put | ( | const string & | key,
|  | const string & | value )
| virtual

Implements rime::Sink.

## Member Data Documentation

## ◆ db_

Db* rime::UserDbMerger::db_
| protected

## ◆ max_tick_

TickCount rime::UserDbMerger::max_tick_
| protected

## ◆ merged_entries_

int rime::UserDbMerger::merged_entries_
| protected

## ◆ our_tick_

TickCount rime::UserDbMerger::our_tick_
| protected

## ◆ their_tick_

TickCount rime::UserDbMerger::their_tick_
| protected

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

- user_db.h
- user_db.cc