#include <llmemory.h>
Public Types | |
typedef Type *(* | NullFunc )() |
Public Member Functions | |
LLSafeHandle () | |
LLSafeHandle (Type *ptr) | |
LLSafeHandle (const LLSafeHandle< Type > &ptr) | |
template<typename Subclass> | |
LLSafeHandle (const LLSafeHandle< Subclass > &ptr) | |
~LLSafeHandle () | |
const Type * | operator-> () const |
Type * | operator-> () |
Type * | get () const |
operator BOOL () const | |
operator bool () const | |
bool | operator! () const |
bool | isNull () const |
bool | notNull () const |
operator Type * () const | |
operator const Type * () const | |
bool | operator!= (Type *ptr) const |
bool | operator== (Type *ptr) const |
bool | operator== (const LLSafeHandle< Type > &ptr) const |
bool | operator< (const LLSafeHandle< Type > &ptr) const |
bool | operator> (const LLSafeHandle< Type > &ptr) const |
LLSafeHandle< Type > & | operator= (Type *ptr) |
LLSafeHandle< Type > & | operator= (const LLSafeHandle< Type > &ptr) |
template<typename Subclass> | |
LLSafeHandle< Type > & | operator= (const LLSafeHandle< Subclass > &ptr) |
Static Public Attributes | |
static const NullFunc | sNullFunc |
Protected Member Functions | |
void | ref () |
void | unref () |
void | assign (Type *ptr) |
Static Protected Member Functions | |
static Type * | nonNull (Type *ptr) |
Protected Attributes | |
Type * | mPointer |
Definition at line 250 of file llmemory.h.
typedef Type*(* LLSafeHandle< Type >::NullFunc)() |
LLSafeHandle< Type >::LLSafeHandle | ( | ) | [inline] |
Definition at line 253 of file llmemory.h.
LLSafeHandle< Type >::LLSafeHandle | ( | Type * | ptr | ) | [inline] |
Definition at line 258 of file llmemory.h.
LLSafeHandle< Type >::LLSafeHandle | ( | const LLSafeHandle< Type > & | ptr | ) | [inline] |
Definition at line 264 of file llmemory.h.
LLSafeHandle< Type >::LLSafeHandle | ( | const LLSafeHandle< Subclass > & | ptr | ) | [inline] |
Definition at line 272 of file llmemory.h.
LLSafeHandle< Type >::~LLSafeHandle | ( | ) | [inline] |
Definition at line 278 of file llmemory.h.
const Type* LLSafeHandle< Type >::operator-> | ( | ) | const [inline] |
Definition at line 283 of file llmemory.h.
Type* LLSafeHandle< Type >::operator-> | ( | ) | [inline] |
Definition at line 284 of file llmemory.h.
Type* LLSafeHandle< Type >::get | ( | ) | const [inline] |
Definition at line 286 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::LLSafeHandle(), and LLSafeHandle< LLObjectSelection >::operator=().
LLSafeHandle< Type >::operator BOOL | ( | ) | const [inline] |
Definition at line 292 of file llmemory.h.
LLSafeHandle< Type >::operator bool | ( | ) | const [inline] |
Definition at line 293 of file llmemory.h.
bool LLSafeHandle< Type >::operator! | ( | ) | const [inline] |
Definition at line 294 of file llmemory.h.
bool LLSafeHandle< Type >::isNull | ( | ) | const [inline] |
Definition at line 295 of file llmemory.h.
bool LLSafeHandle< Type >::notNull | ( | ) | const [inline] |
Definition at line 296 of file llmemory.h.
LLSafeHandle< Type >::operator Type * | ( | ) | const [inline] |
LLSafeHandle< Type >::operator const Type * | ( | ) | const [inline] |
bool LLSafeHandle< Type >::operator!= | ( | Type * | ptr | ) | const [inline] |
Definition at line 301 of file llmemory.h.
bool LLSafeHandle< Type >::operator== | ( | Type * | ptr | ) | const [inline] |
Definition at line 302 of file llmemory.h.
bool LLSafeHandle< Type >::operator== | ( | const LLSafeHandle< Type > & | ptr | ) | const [inline] |
Definition at line 303 of file llmemory.h.
bool LLSafeHandle< Type >::operator< | ( | const LLSafeHandle< Type > & | ptr | ) | const [inline] |
Definition at line 304 of file llmemory.h.
bool LLSafeHandle< Type >::operator> | ( | const LLSafeHandle< Type > & | ptr | ) | const [inline] |
Definition at line 305 of file llmemory.h.
LLSafeHandle<Type>& LLSafeHandle< Type >::operator= | ( | Type * | ptr | ) | [inline] |
Definition at line 307 of file llmemory.h.
LLSafeHandle<Type>& LLSafeHandle< Type >::operator= | ( | const LLSafeHandle< Type > & | ptr | ) | [inline] |
Definition at line 313 of file llmemory.h.
LLSafeHandle<Type>& LLSafeHandle< Type >::operator= | ( | const LLSafeHandle< Subclass > & | ptr | ) | [inline] |
Definition at line 321 of file llmemory.h.
void LLSafeHandle< Type >::ref | ( | ) | [inline, protected] |
Definition at line 332 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::assign().
void LLSafeHandle< Type >::unref | ( | ) | [inline, protected] |
Definition at line 340 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::assign(), LLSafeHandle< LLObjectSelection >::unref(), and LLSafeHandle< LLObjectSelection >::~LLSafeHandle().
void LLSafeHandle< Type >::assign | ( | Type * | ptr | ) | [inline, protected] |
Definition at line 355 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::LLSafeHandle(), and LLSafeHandle< LLObjectSelection >::operator=().
static Type* LLSafeHandle< Type >::nonNull | ( | Type * | ptr | ) | [inline, static, protected] |
Definition at line 365 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::operator->().
const NullFunc LLSafeHandle< Type >::sNullFunc [static] |
Definition at line 329 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::nonNull().
Type* LLSafeHandle< Type >::mPointer [protected] |
Definition at line 371 of file llmemory.h.
Referenced by LLSafeHandle< LLObjectSelection >::assign(), LLSafeHandle< LLObjectSelection >::get(), LLSafeHandle< LLObjectSelection >::isNull(), LLSafeHandle< LLObjectSelection >::LLSafeHandle(), LLSafeHandle< LLObjectSelection >::notNull(), LLSafeHandle< LLObjectSelection >::operator bool(), LLSafeHandle< LLObjectSelection >::operator BOOL(), LLSafeHandle< Type >::operator const Type *(), LLSafeHandle< Type >::operator Type *(), LLSafeHandle< LLObjectSelection >::operator!(), LLSafeHandle< LLObjectSelection >::operator!=(), LLSafeHandle< LLObjectSelection >::operator->(), LLSafeHandle< LLObjectSelection >::operator<(), LLSafeHandle< LLObjectSelection >::operator=(), LLSafeHandle< LLObjectSelection >::operator==(), LLSafeHandle< LLObjectSelection >::operator>(), LLSafeHandle< LLObjectSelection >::ref(), and LLSafeHandle< LLObjectSelection >::unref().