12 : collection_(collection) {
13 active_ = collection_.inc(read_only);
17 if (active_) collection_.dec();
20 bool active()
const {
return active_; }
Collection corresponds to a preferences namespace. Use it to group related preferences.
Low-level wrapper around the underlying preferences storage.
Ref-counted RAII for managing access to Preference namespaces. Allows orchestrating access to the Sto...
Transaction(Collection &collection, bool read_only=false)
Similar to Pref<T>, but does not immediately store written data in persistent storage....