16#ifndef __albaSmartPointer_h
17#define __albaSmartPointer_h
19#include "albaConfigure.h"
133{
return (
static_cast<void*
>(l.GetPointer()) ==
static_cast<void*
>(r.GetPointer())); }
139{
return (
static_cast<void*
>(l) ==
static_cast<void*
>(r.GetPointer())); }
145{
return (
static_cast<void*
>(l.GetPointer()) ==
static_cast<void*
>(r)); }
bool operator==(const albaAutoPointer< T > &l, const albaAutoPointer< T > &r)
Hold a reference to a T instance.
T * m_Object
Pointer to the actual object.
void UnRegister(void *owner)
used to force releasing of internal object, specifying the owner
bool operator==(const T *r) const
T * GetPointer() const
Get the contained pointer.
albaAutoPointer(T *r=NULL, void *owner=NULL)
Initialize smart pointer to (optional) given object.
~albaAutoPointer()
Destroy smart pointer and remove the reference to its object.
bool operator==(const albaAutoPointer< T > &r) const
albaAutoPointer & operator=(const albaAutoPointer< T > &r)
albaAutoPointer(const albaAutoPointer &r)
Initialize smart pointer with a new reference to the same object referenced by given smart pointer.
T * operator->() const
Provides normal pointer target member access using operator ->.
albaAutoPointer & operator=(T *r)
Assign object to reference.
void Swap(albaAutoPointer &r)
void Register(void *owner)
albaBase - the pourpose of this class is just to groups utilities classes
albaReferenceCounted - abstract base class for ALBA objects with reference counting.
AutoPointer which self allocates the internal object.
albaSmartPointer()
Initialize smart pointer to a new instance of class T.
albaSmartPointer(const albaAutoPointer< T > &r)
Initialize smart pointer with a new reference to the same object referenced by given smart pointer.
albaSmartPointer(T *r)
Initialize smart pointer to given object pointer and reference the given object.