Public Member Functions | Private Attributes
utilmm::pools::use< T > Class Template Reference

#include <objectpool.hh>

List of all members.

Public Member Functions

T & operator* ()
T const & operator* () const
T * operator-> ()
T const * operator-> () const
 use (object_pool< T > &pool)
 ~use ()

Private Attributes

T * m_object
object_pool< T > & m_pool

Detailed Description

template<typename T>
class utilmm::pools::use< T >

Get a pointer on a T object from an object pool, and returns it to the pool when destroyed

Definition at line 53 of file objectpool.hh.


Constructor & Destructor Documentation

template<typename T >
utilmm::pools::use< T >::use ( object_pool< T > &  pool) [inline]

Definition at line 59 of file objectpool.hh.

template<typename T >
utilmm::pools::use< T >::~use ( ) [inline]

Definition at line 61 of file objectpool.hh.


Member Function Documentation

template<typename T >
T& utilmm::pools::use< T >::operator* ( ) [inline]

Definition at line 65 of file objectpool.hh.

template<typename T >
T const& utilmm::pools::use< T >::operator* ( ) const [inline]

Definition at line 66 of file objectpool.hh.

template<typename T >
T* utilmm::pools::use< T >::operator-> ( ) [inline]

Definition at line 63 of file objectpool.hh.

template<typename T >
T const* utilmm::pools::use< T >::operator-> ( ) const [inline]

Definition at line 64 of file objectpool.hh.


Member Data Documentation

template<typename T >
T* utilmm::pools::use< T >::m_object [private]

Definition at line 56 of file objectpool.hh.

template<typename T >
object_pool<T>& utilmm::pools::use< T >::m_pool [private]

Definition at line 55 of file objectpool.hh.


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


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:02