MIRA
|
A wrapper providing locked/shared access to an AbstractAuthority pointer (used by AuthorityManager::getAuthority()) The lifetime of the AbstractAuthority object the pointer points to is ensured as long as one wrapper instance exists that wraps the same AbstractAuthority pointer. More...
#include <fw/AuthorityManager.h>
Public Member Functions | |
SharedAuthority (AbstractAuthority *iAuthority, boost::shared_mutex &mutex) | |
There is no need to call this constructor manually. More... | |
operator AbstractAuthority * () | |
cast to AbstractAuthority pointer More... | |
AbstractAuthority * | authority () |
access the wrapped AbstractAuthority pointer More... | |
A wrapper providing locked/shared access to an AbstractAuthority pointer (used by AuthorityManager::getAuthority()) The lifetime of the AbstractAuthority object the pointer points to is ensured as long as one wrapper instance exists that wraps the same AbstractAuthority pointer.
The lock is released automatically when all wrapper instances are destroyed.
|
inline |
There is no need to call this constructor manually.
|
inline |
cast to AbstractAuthority pointer
|
inline |
access the wrapped AbstractAuthority pointer