libmoost
|
Use a scoped_resource to get a resource from the resource_stack. More...
#include <resource_stack.hpp>
Public Member Functions | |
scoped_resource (resource_stack &resource_stack_, bool wait_on_empty=true) | |
scoped_resource (resource_stack &resource_stack_, int timeout_ms, bool wait_on_empty=true) | |
~scoped_resource () | |
T & | operator* () |
T * | operator-> () |
Private Attributes | |
boost::shared_ptr< T > | m_resource |
resource_stack & | m_resource_stack |
Use a scoped_resource to get a resource from the resource_stack.
Definition at line 70 of file resource_stack.hpp.
moost::container::resource_stack< T >::scoped_resource::scoped_resource | ( | resource_stack & | resource_stack_, |
bool | wait_on_empty = true |
||
) |
Definition at line 165 of file resource_stack.hpp.
moost::container::resource_stack< T >::scoped_resource::scoped_resource | ( | resource_stack & | resource_stack_, |
int | timeout_ms, | ||
bool | wait_on_empty = true |
||
) |
moost::container::resource_stack< T >::scoped_resource::~scoped_resource | ( | ) |
Definition at line 198 of file resource_stack.hpp.
T & moost::container::resource_stack< T >::scoped_resource::operator* | ( | ) |
Definition at line 206 of file resource_stack.hpp.
T * moost::container::resource_stack< T >::scoped_resource::operator-> | ( | ) |
Definition at line 212 of file resource_stack.hpp.
boost::shared_ptr<T> moost::container::resource_stack< T >::scoped_resource::m_resource [private] |
Definition at line 73 of file resource_stack.hpp.
resource_stack& moost::container::resource_stack< T >::scoped_resource::m_resource_stack [private] |
Definition at line 74 of file resource_stack.hpp.