Thrive
Public Member Functions | Static Public Member Functions | List of all members
thrive::LockedMap Class Reference

Object that contains a set of locked concepts represented and accessed by strings. More...

#include <locked_map.h>

Public Member Functions

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
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

Object that contains a set of locked concepts represented and accessed by strings.

Member Function Documentation

void LockedMap::addLock ( std::string  lockName)

Locks a concept such that calls querying for the lock may restrict themselves.

Parameters
lockNameThe 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
lockNameThe 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
lockNameThe name of the lock

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