Classes |
class | Impl |
Public Types |
typedef std::list< PoolQuery > | LockList |
typedef LockList::const_iterator | const_iterator |
typedef LockList::size_type | size_type |
Public Member Functions |
const_iterator | begin () const |
const_iterator | end () const |
LockList::size_type | size () const |
bool | empty () const |
void | addLock (const PoolQuery &query) |
| TODO add: toBeAdded{Begin,End,Size,Empty} toBeRemoved{Begin,End,Size,Empty}.
|
void | addLock (const IdString &ident_r) |
| add lock by identifier (e.g.
|
void | addLock (const ResKind &kind_r, const IdString &name_r) |
| add lock by name and kind and add this lock as toAdd
|
void | addLock (const ResKind &kind_r, const C_Str &name_r) |
| add lock by name and kind and add this lock as toAdd
|
void | removeLock (const PoolQuery &query) |
| unlocks by result of query and add to toRemove.
|
void | removeLock (const IdString &ident_r) |
| remove lock by identifier (e.g.
|
void | removeLock (const ResKind &kind_r, const IdString &name_r) |
| remove lock by name and kind
|
void | removeLock (const ResKind &kind_r, const C_Str &name_r) |
void | readAndApply (const Pathname &file=ZConfig::instance().locksFile()) |
| Optimalized version of read and apply.
|
void | read (const Pathname &file=ZConfig::instance().locksFile()) |
| Read locks from file to list of stable locks (locks which is not changed during session)
|
void | apply () const |
| Applies locks in stable list (locks which is not changed during session).
|
void | save (const Pathname &file=ZConfig::instance().locksFile()) |
| Merges toAdd and ToRemove list to stable list and save that stable list to file.
|
void | merge () |
| Merges toAdd and ToRemove list to stable list.
|
bool | existEmpty () const |
| Gets true if some lock doesn't lock any object in pool This can happen e.g.
|
void | removeEmpty () |
| Call callback for each empty lock.
|
void | removeDuplicates () |
| Delete all query duplicate in loaded locks.
|
Static Public Member Functions |
static Locks & | instance () |
| Gets instance of this class.
|
Private Member Functions |
| Locks () |
Private Attributes |
RW_pointer< Impl,
rw_pointer::Scoped< Impl > > | _pimpl |