LLHandle< Type > Class Template Reference

#include <llmemory.h>

Inheritance diagram for LLHandle< Type >:

Inheritance graph
[legend]
Collaboration diagram for LLHandle< Type >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Type *(*) NullFunc ()

Public Member Functions

 LLHandle ()
 LLHandle (Type *ptr)
 LLHandle (const LLHandle< Type > &ptr)
template<typename Subclass>
 LLHandle (const LLHandle< Subclass > &ptr)
 ~LLHandle ()
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 LLHandle< Type > &ptr) const
bool operator< (const LLHandle< Type > &ptr) const
bool operator> (const LLHandle< Type > &ptr) const
LLHandle< Type > & operator= (Type *ptr)
LLHandle< Type > & operator= (const LLHandle< Type > &ptr)
template<typename Subclass>
LLHandle< Type > & operator= (const LLHandle< 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

Detailed Description

template<class Type>
class LLHandle< Type >

Definition at line 250 of file llmemory.h.


Member Typedef Documentation

template<class Type>
typedef Type*(*) LLHandle< Type >::NullFunc()

Definition at line 328 of file llmemory.h.


Constructor & Destructor Documentation

template<class Type>
LLHandle< Type >::LLHandle (  )  [inline]

Definition at line 253 of file llmemory.h.

template<class Type>
LLHandle< Type >::LLHandle ( Type *  ptr  )  [inline]

Definition at line 258 of file llmemory.h.

template<class Type>
LLHandle< Type >::LLHandle ( const LLHandle< Type > &  ptr  )  [inline]

Definition at line 264 of file llmemory.h.

template<class Type>
template<typename Subclass>
LLHandle< Type >::LLHandle ( const LLHandle< Subclass > &  ptr  )  [inline]

Definition at line 272 of file llmemory.h.

template<class Type>
LLHandle< Type >::~LLHandle (  )  [inline]

Definition at line 278 of file llmemory.h.


Member Function Documentation

template<class Type>
void LLHandle< Type >::assign ( Type *  ptr  )  [inline, protected]

Definition at line 355 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::LLHandle(), and LLHandle< LLObjectSelection >::operator=().

template<class Type>
Type* LLHandle< Type >::get (  )  const [inline]

Definition at line 286 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::LLHandle(), and LLHandle< LLObjectSelection >::operator=().

template<class Type>
bool LLHandle< Type >::isNull (  )  const [inline]

Definition at line 295 of file llmemory.h.

template<class Type>
static Type* LLHandle< Type >::nonNull ( Type *  ptr  )  [inline, static, protected]

Definition at line 365 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::operator->().

template<class Type>
bool LLHandle< Type >::notNull (  )  const [inline]

Definition at line 296 of file llmemory.h.

template<class Type>
LLHandle< Type >::operator bool (  )  const [inline]

Definition at line 293 of file llmemory.h.

template<class Type>
LLHandle< Type >::operator BOOL (  )  const [inline]

Definition at line 292 of file llmemory.h.

template<class Type>
LLHandle< Type >::operator const Type * (  )  const [inline]

Definition at line 300 of file llmemory.h.

References LLHandle< Type >::mPointer.

template<class Type>
LLHandle< Type >::operator Type * (  )  const [inline]

Definition at line 299 of file llmemory.h.

References LLHandle< Type >::mPointer.

template<class Type>
bool LLHandle< Type >::operator! (  )  const [inline]

Definition at line 294 of file llmemory.h.

template<class Type>
bool LLHandle< Type >::operator!= ( Type *  ptr  )  const [inline]

Definition at line 301 of file llmemory.h.

template<class Type>
Type* LLHandle< Type >::operator-> (  )  [inline]

Definition at line 284 of file llmemory.h.

template<class Type>
const Type* LLHandle< Type >::operator-> (  )  const [inline]

Definition at line 283 of file llmemory.h.

template<class Type>
bool LLHandle< Type >::operator< ( const LLHandle< Type > &  ptr  )  const [inline]

Definition at line 304 of file llmemory.h.

template<class Type>
template<typename Subclass>
LLHandle<Type>& LLHandle< Type >::operator= ( const LLHandle< Subclass > &  ptr  )  [inline]

Definition at line 321 of file llmemory.h.

template<class Type>
LLHandle<Type>& LLHandle< Type >::operator= ( const LLHandle< Type > &  ptr  )  [inline]

Definition at line 313 of file llmemory.h.

template<class Type>
LLHandle<Type>& LLHandle< Type >::operator= ( Type *  ptr  )  [inline]

Definition at line 307 of file llmemory.h.

template<class Type>
bool LLHandle< Type >::operator== ( const LLHandle< Type > &  ptr  )  const [inline]

Definition at line 303 of file llmemory.h.

template<class Type>
bool LLHandle< Type >::operator== ( Type *  ptr  )  const [inline]

Definition at line 302 of file llmemory.h.

template<class Type>
bool LLHandle< Type >::operator> ( const LLHandle< Type > &  ptr  )  const [inline]

Definition at line 305 of file llmemory.h.

template<class Type>
void LLHandle< Type >::ref (  )  [inline, protected]

Definition at line 332 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::assign().

template<class Type>
void LLHandle< Type >::unref (  )  [inline, protected]

Definition at line 340 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::assign(), LLHandle< LLObjectSelection >::unref(), and LLHandle< LLObjectSelection >::~LLHandle().


Member Data Documentation

template<class Type>
Type* LLHandle< Type >::mPointer [protected]

Definition at line 371 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::assign(), LLHandle< LLObjectSelection >::get(), LLHandle< LLObjectSelection >::isNull(), LLHandle< LLObjectSelection >::LLHandle(), LLHandle< LLObjectSelection >::notNull(), LLHandle< LLObjectSelection >::operator bool(), LLHandle< LLObjectSelection >::operator BOOL(), LLHandle< Type >::operator const Type *(), LLHandle< Type >::operator Type *(), LLHandle< LLObjectSelection >::operator!(), LLHandle< LLObjectSelection >::operator!=(), LLHandle< LLObjectSelection >::operator->(), LLHandle< LLObjectSelection >::operator<(), LLHandle< LLObjectSelection >::operator=(), LLHandle< LLObjectSelection >::operator==(), LLHandle< LLObjectSelection >::operator>(), LLHandle< LLObjectSelection >::ref(), and LLHandle< LLObjectSelection >::unref().

template<class Type>
const NullFunc LLHandle< Type >::sNullFunc [static]

Definition at line 329 of file llmemory.h.

Referenced by LLHandle< LLObjectSelection >::nonNull().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7