|
librime 1.2
Rime Input Method Engine, the core library
|
#include <config_cow_ref.h>


Public Member Functions | |
| ConfigCowRef (an< ConfigItemRef > parent, string key) | |
| an< ConfigItem > | GetItem () const override |
| void | SetItem (an< ConfigItem > item) override |
| Public Member Functions inherited from rime::ConfigItemRef | |
| ConfigItemRef (ConfigData *data) | |
| virtual | ~ConfigItemRef ()=default |
| operator an< ConfigItem > () const | |
| an< ConfigItem > | operator* () const |
| template<class T> | |
| ConfigItemRef & | operator= (const T &x) |
| ConfigListEntryRef | operator[] (size_t index) |
| ConfigMapEntryRef | operator[] (const string &key) |
| RIME_DLL bool | IsNull () const |
| bool | IsValue () const |
| RIME_DLL bool | IsList () const |
| bool | IsMap () const |
| RIME_DLL bool | ToBool () const |
| RIME_DLL int | ToInt () const |
| double | ToDouble () const |
| RIME_DLL string | ToString () const |
| RIME_DLL an< ConfigList > | AsList () |
| RIME_DLL an< ConfigMap > | AsMap () |
| RIME_DLL void | Clear () |
| RIME_DLL bool | Append (an< ConfigItem > item) |
| RIME_DLL size_t | size () const |
| RIME_DLL bool | HasKey (const string &key) const |
| RIME_DLL bool | modified () const |
| RIME_DLL void | set_modified () |
Protected Member Functions | |
| an< ConfigItem > | Read (const an< ConfigMap > &map, const string &key) |
| void | Write (const an< ConfigMap > &map, const string &key, an< ConfigItem > value) |
| an< ConfigItem > | Read (const an< ConfigList > &list, const string &key) |
| void | Write (const an< ConfigList > &list, const string &key, an< ConfigItem > value) |
Static Protected Member Functions | |
| static an< T > | CopyOnWrite (const an< T > &container, const string &key) |
| static an< ConfigItem > | Read (const an< T > &container, const string &key) |
| static void | Write (const an< T > &container, const string &key, an< ConfigItem > value) |
Protected Attributes | |
| an< ConfigItemRef > | parent_ |
| string | key_ |
| bool | copied_ = false |
| Protected Attributes inherited from rime::ConfigItemRef | |
| ConfigData * | data_ |
|
inline |
|
inlinestaticprotected |
|
inlineoverridevirtual |
Implements rime::ConfigItemRef.
|
inlineprotected |
|
inlineprotected |
|
staticprotected |
|
inlineoverridevirtual |
Implements rime::ConfigItemRef.
|
inlineprotected |
|
inlineprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |