#include <EvolutionSmartPtr.h>
Public Member Functions | |
eptr (T *pointer=NULL, const char *objectName=NULL) | |
~eptr () | |
eptr (eptr &other) | |
eptr & | operator= (eptr &other) |
void | set (T *pointer, const char *objectName=NULL) |
T * | release () |
eptr< T, base, R > & | operator= (T *pointer) |
T * | get () |
T * | operator-> () |
T & | operator* () |
operator T * () | |
operator void * () | |
operator bool () | |
Protected Attributes | |
T * | m_pointer |
Definition at line 75 of file EvolutionSmartPtr.h.
eptr< T, base, R >::eptr | ( | T * | pointer = NULL , |
|
const char * | objectName = NULL | |||
) | [inline] |
create a smart pointer that owns the given object; passing a NULL pointer and a name for the object raises an error
Definition at line 84 of file EvolutionSmartPtr.h.
Definition at line 91 of file EvolutionSmartPtr.h.
eptr< T, base, R >::eptr | ( | eptr< T, base, R > & | other | ) | [inline] |
assignment and copy construction transfer ownership to the copy
Definition at line 97 of file EvolutionSmartPtr.h.
T* eptr< T, base, R >::get | ( | ) | [inline] |
Definition at line 131 of file EvolutionSmartPtr.h.
Referenced by EvolutionContactSource::createItem(), EvolutionContactSource::getDatabases(), EvolutionCalendarSource::getDatabases(), and EvolutionCalendarSource::insertItem().
eptr< T, base, R >::operator bool | ( | ) | [inline] |
Definition at line 136 of file EvolutionSmartPtr.h.
eptr< T, base, R >::operator T * | ( | ) | [inline] |
Definition at line 134 of file EvolutionSmartPtr.h.
eptr< T, base, R >::operator void * | ( | ) | [inline] |
Definition at line 135 of file EvolutionSmartPtr.h.
T& eptr< T, base, R >::operator* | ( | ) | [inline] |
Definition at line 133 of file EvolutionSmartPtr.h.
T* eptr< T, base, R >::operator-> | ( | ) | [inline] |
Definition at line 132 of file EvolutionSmartPtr.h.
eptr<T, base, R>& eptr< T, base, R >::operator= | ( | T * | pointer | ) | [inline] |
Definition at line 130 of file EvolutionSmartPtr.h.
eptr& eptr< T, base, R >::operator= | ( | eptr< T, base, R > & | other | ) | [inline] |
Definition at line 101 of file EvolutionSmartPtr.h.
T* eptr< T, base, R >::release | ( | ) | [inline] |
transfer ownership over the pointer to caller and stop tracking it: pointer tracked by smart pointer is set to NULL and the original pointer is returned
Definition at line 128 of file EvolutionSmartPtr.h.
Referenced by SQLiteUtil::vObjectToRow().
void eptr< T, base, R >::set | ( | T * | pointer, | |
const char * | objectName = NULL | |||
) | [inline] |
store another object in this pointer, replacing any which was referenced there before; passing a NULL pointer and a name for the object raises an error
Definition at line 112 of file EvolutionSmartPtr.h.
Referenced by EvolutionContactSource::beginSyncThrow(), SQLiteContactSource::deleteItem(), EvolutionMemoSource::insertItem(), SQLiteUtil::open(), EvolutionContactSource::open(), and EvolutionCalendarSource::open().
T* eptr< T, base, R >::m_pointer [protected] |
Definition at line 77 of file EvolutionSmartPtr.h.
Referenced by eptr< T, T, ArrayUnref< T > >::eptr(), eptr< T, T, ArrayUnref< T > >::get(), eptr< T, T, ArrayUnref< T > >::operator bool(), eptr< T, T, ArrayUnref< T > >::operator T *(), eptr< T, T, ArrayUnref< T > >::operator void *(), eptr< T, T, ArrayUnref< T > >::operator*(), eptr< T, T, ArrayUnref< T > >::operator->(), eptr< T, T, ArrayUnref< T > >::operator=(), eptr< T, T, ArrayUnref< T > >::release(), and eptr< T, T, ArrayUnref< T > >::set().