IdLocker Class Reference
[Public API]
Helper class to lock id of object when using assigment operator.
More...
#include <idlocker.h>
List of all members.
Detailed Description
Helper class to lock id of object when using assigment operator.
Id of all objects are locked until at least one locker exists, so this object should be created only on stack.
Example of use: Storable a;
Storeable b = loadFromDatabase();
IdLocker locker;
b = a;
Member Enumeration Documentation
|
|
Lock mode.
- Enumerator:
-
| LOCKED |
Storeable object states are copied. |
| LOCKED_PRESERVE_STATE |
Storeable object states are not copied. |
|
Constructor & Destructor Documentation
|
|
Constructor.
- Parameters:
-
| pMode | modify behaviour of Storeable copy constructor and assigment operator |
|
Member Function Documentation
| static bool isLocked |
( |
|
) |
[static] |
|
|
|
Check if locker is not in UNLOCKED state.
- Returns:
- true if locker is not in UNLOCKED state, false otherwise
|
| static bool isUnlocked |
( |
|
) |
[static] |
|
|
|
Check if locker is in UNLOCKED state.
- Returns:
- true if locker is in UNLOCKED state, false otherwise
|
The documentation for this class was generated from the following file:
|
|
|