Object that contains a set of locked concepts represented and accessed by strings.
More...
#include <locked_map.h>
|
| void | addLock (std::string lockName) |
| | Locks a concept such that calls querying for the lock may restrict themselves. More...
|
| |
| bool | isLocked (std::string conceptName) const |
| | Checks if a lock exists in this LockedMap, otherwise it may be assumed available. More...
|
| |
| void | unlock (std::string conceptName) |
| | Unlocks a concept such that calls querying for the lock may allow themselves. More...
|
| |
| const std::unordered_set< std::string > & | locksList () const |
| | Gets the set of all held locks. More...
|
| |
|
void | load (const StorageContainer &storage) |
| |
|
StorageContainer | storage () const |
| |
Object that contains a set of locked concepts represented and accessed by strings.
| void LockedMap::addLock |
( |
std::string |
lockName | ) |
|
Locks a concept such that calls querying for the lock may restrict themselves.
- Parameters
-
| lockName | The name of the lock |
| bool LockedMap::isLocked |
( |
std::string |
conceptName | ) |
const |
Checks if a lock exists in this LockedMap, otherwise it may be assumed available.
- Parameters
-
| lockName | The name of the lock |
- Returns
- True if the lock exists, false otherwise
| const std::unordered_set< std::string > & LockedMap::locksList |
( |
| ) |
const |
Gets the set of all held locks.
- Returns
- Set with the locks
| luabind::scope LockedMap::luaBindings |
( |
| ) |
|
|
static |
Lua bindings.
Exposes:
- Returns
| void LockedMap::unlock |
( |
std::string |
conceptName | ) |
|
Unlocks a concept such that calls querying for the lock may allow themselves.
- Parameters
-
| lockName | The name of the lock |
The documentation for this class was generated from the following files:
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/general/locked_map.h
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/general/locked_map.cpp