Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Private Attributes
cat::AutoRef< T > Class Template Reference

#include <ThreadPool.hpp>

List of all members.

Public Member Functions

CAT_INLINE AutoRef (T *ref=0) throw ()
CAT_INLINE void Forget () throw ()
CAT_INLINE TGet () throw ()
CAT_INLINE operator T * ()
CAT_INLINE Toperator* () throw ()
CAT_INLINE Toperator-> () throw ()
CAT_INLINE AutoRefoperator= (T *ref) throw ()
CAT_INLINE void Reset (T *ref=0) throw ()
CAT_INLINE ~AutoRef () throw ()

Private Attributes

T_ref

Detailed Description

template<class T>
class cat::AutoRef< T >

Definition at line 93 of file ThreadPool.hpp.


Constructor & Destructor Documentation

template<class T >
CAT_INLINE cat::AutoRef< T >::AutoRef ( T ref = 0) throw () [inline]

Definition at line 98 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ _ref = ref; }
template<class T >
CAT_INLINE cat::AutoRef< T >::~AutoRef ( ) throw () [inline]

Member Function Documentation

template<class T >
CAT_INLINE void cat::AutoRef< T >::Forget ( ) throw () [inline]

Definition at line 107 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ _ref = 0; }
template<class T >
CAT_INLINE T* cat::AutoRef< T >::Get ( ) throw () [inline]

Definition at line 102 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ return _ref; }
template<class T >
CAT_INLINE cat::AutoRef< T >::operator T * ( ) [inline]

Definition at line 105 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ return _ref; }
template<class T >
CAT_INLINE T& cat::AutoRef< T >::operator* ( ) throw () [inline]

Definition at line 104 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ return *_ref; }
template<class T >
CAT_INLINE T* cat::AutoRef< T >::operator-> ( ) throw () [inline]

Definition at line 103 of file ThreadPool.hpp.

References cat::AutoRef< T >::_ref.

{ return _ref; }
template<class T >
CAT_INLINE AutoRef& cat::AutoRef< T >::operator= ( T ref) throw () [inline]

Definition at line 100 of file ThreadPool.hpp.

References cat::AutoRef< T >::Reset().

{ Reset(ref); return *this; }
template<class T >
CAT_INLINE void cat::AutoRef< T >::Reset ( T ref = 0) throw () [inline]

Member Data Documentation

template<class T >
T* cat::AutoRef< T >::_ref [private]

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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net