roo_prefs
API Documentation for roo_prefs
Loading...
Searching...
No Matches
roo_prefs::Transaction Class Reference

Ref-counted RAII for managing access to Preference namespaces. Allows orchestrating access to the Store. More...

#include <transaction.h>

Public Member Functions

 Transaction (Collection &collection, bool read_only=false)
 
 ~Transaction ()
 
bool active () const
 
Storestore ()
 

Detailed Description

Ref-counted RAII for managing access to Preference namespaces. Allows orchestrating access to the Store.

Definition at line 9 of file transaction.h.

Constructor & Destructor Documentation

◆ Transaction()

roo_prefs::Transaction::Transaction ( Collection collection,
bool  read_only = false 
)
inline

Definition at line 11 of file transaction.h.

◆ ~Transaction()

roo_prefs::Transaction::~Transaction ( )
inline

Definition at line 16 of file transaction.h.

Member Function Documentation

◆ active()

bool roo_prefs::Transaction::active ( ) const
inline

Definition at line 20 of file transaction.h.

Referenced by roo_prefs::Pref< T >::clear(), and roo_prefs::Pref< T >::set().

◆ store()

Store & roo_prefs::Transaction::store ( )
inline

Definition at line 22 of file transaction.h.

Referenced by roo_prefs::Pref< T >::clear(), and roo_prefs::Pref< T >::set().


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