#include <mmshandle.h>
Public Member Functions | |
| MMSHandle (X *orig) | |
| Constructor. | |
| MMSHandle (const MMSHandle &orig) | |
| Copy constructor. | |
| virtual | ~MMSHandle () throw () |
| Destructor. | |
| X * | operator-> () throw () |
| Overloaded -> operator. | |
| void | operator= (const MMSHandle &orig) throw () |
| Overloaded = operator. | |
| X & | operator* () const throw () |
| Get data object. | |
| X * | getObject () const throw () |
| Get data object. | |
Private Attributes | |
| X * | data |
| pointer to object that shall be handled | |
| int * | refCount |
| reference counter | |
| MMSMutex * | lock |
| needed to make increase and decrease of refCount atomic | |
Definition at line 42 of file mmshandle.h.
| X* MMSHandle< X >::operator-> | ( | ) | throw () [inline] |
| X& MMSHandle< X >::operator* | ( | ) | const throw () [inline] |
| X* MMSHandle< X >::getObject | ( | ) | const throw () [inline] |