libmoost
moost::container::resource_stack< T >::scoped_resource Class Reference

Use a scoped_resource to get a resource from the resource_stack. More...

#include <resource_stack.hpp>

Collaboration diagram for moost::container::resource_stack< T >::scoped_resource:

List of all members.

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_stackm_resource_stack

Detailed Description

template<typename T>
class moost::container::resource_stack< T >::scoped_resource

Use a scoped_resource to get a resource from the resource_stack.

Definition at line 70 of file resource_stack.hpp.


Constructor & Destructor Documentation

template<typename T >
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.

template<typename T >
moost::container::resource_stack< T >::scoped_resource::scoped_resource ( resource_stack resource_stack_,
int  timeout_ms,
bool  wait_on_empty = true 
)

Definition at line 179 of file resource_stack.hpp.

Here is the call graph for this function:

Definition at line 198 of file resource_stack.hpp.


Member Function Documentation

template<typename T >
T & moost::container::resource_stack< T >::scoped_resource::operator* ( )

Definition at line 206 of file resource_stack.hpp.

template<typename T >
T * moost::container::resource_stack< T >::scoped_resource::operator-> ( )

Definition at line 212 of file resource_stack.hpp.


Member Data Documentation

template<typename T>
boost::shared_ptr<T> moost::container::resource_stack< T >::scoped_resource::m_resource [private]

Definition at line 73 of file resource_stack.hpp.

Definition at line 74 of file resource_stack.hpp.


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