#include <AddressBookSource.h>
Public Member Functions | |
| ref (T pointer=NULL, const char *objectName=NULL) | |
| ~ref () | |
| void | set (T pointer, const char *objectName=NULL) |
| ref< T > & | operator= (T pointer) |
| T | operator-> () |
| T | operator* () |
| operator T () | |
| operator bool () | |
| T | release () |
Protected Attributes | |
| T | m_pointer |
trying to store a NULL pointer raises an exception, unreferencing valid objects is done automatically
| T | the pointer type | |
| release | CFRelease() is only called when passing true |
Definition at line 46 of file AddressBookSource.h.
| ref< T, doRelease >::ref | ( | 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 61 of file AddressBookSource.h.
Definition at line 68 of file AddressBookSource.h.
| ref< T, doRelease >::operator bool | ( | ) | [inline] |
Definition at line 93 of file AddressBookSource.h.
| ref< T, doRelease >::operator T | ( | ) | [inline] |
Definition at line 92 of file AddressBookSource.h.
| T ref< T, doRelease >::operator* | ( | ) | [inline] |
Definition at line 91 of file AddressBookSource.h.
| T ref< T, doRelease >::operator-> | ( | ) | [inline] |
Definition at line 90 of file AddressBookSource.h.
| ref<T>& ref< T, doRelease >::operator= | ( | T | pointer | ) | [inline] |
Definition at line 89 of file AddressBookSource.h.
| T ref< T, doRelease >::release | ( | ) | [inline] |
Definition at line 95 of file AddressBookSource.h.
| void ref< T, doRelease >::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 78 of file AddressBookSource.h.
Referenced by vCard2ABPerson::fromPerson(), and AddressBookSource::insertItem().
Definition at line 54 of file AddressBookSource.h.
Referenced by ref< ABMutableMultiValueRef, IPHONE_RELEASE >::operator bool(), ref< ABMutableMultiValueRef, IPHONE_RELEASE >::operator T(), ref< ABMutableMultiValueRef, IPHONE_RELEASE >::operator*(), ref< ABMutableMultiValueRef, IPHONE_RELEASE >::operator->(), ref< ABMutableMultiValueRef, IPHONE_RELEASE >::release(), and ref< ABMutableMultiValueRef, IPHONE_RELEASE >::set().
1.5.7.1