dmlite::PoolGrabber< E > Class Template Reference

Convenience class that releases a resource on destruction. More...

#include <poolcontainer.h>

Collaboration diagram for dmlite::PoolGrabber< E >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PoolGrabber (PoolContainer< E > &pool, bool block=true)
 ~PoolGrabber ()
 operator E ()

Private Attributes

PoolContainer< E > & pool_
element_

Detailed Description

template<class E>
class dmlite::PoolGrabber< E >

Convenience class that releases a resource on destruction.


Constructor & Destructor Documentation

template<class E>
dmlite::PoolGrabber< E >::PoolGrabber ( PoolContainer< E > &  pool,
bool  block = true 
) [inline]
template<class E>
dmlite::PoolGrabber< E >::~PoolGrabber (  )  [inline]

Member Function Documentation

template<class E>
dmlite::PoolGrabber< E >::operator E (  )  [inline]

Member Data Documentation

template<class E>
E dmlite::PoolGrabber< E >::element_ [private]
template<class E>
PoolContainer<E>& dmlite::PoolGrabber< E >::pool_ [private]

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

Generated on 24 Sep 2019 for dmlite by  doxygen 1.6.1