Log4Qt::LogObjectPtr< T > Class Template Reference

The class LogObjectPtr implements automatic reference counting for LogObject objects. More...

#include <logobjectptr.h>

List of all members.

Public Member Functions

 LogObjectPtr ()
 LogObjectPtr (const LogObjectPtr< T > &rOther)
 LogObjectPtr (T *pLogObject)
LogObjectPtr< T > & operator= (const LogObjectPtr< T > &rOther)
 ~LogObjectPtr ()
LogObjectPtr< T > & operator= (T *pLogObject)
T * operator-> () const
T & operator* () const
 operator T * () const


Detailed Description

template<class T>
class Log4Qt::LogObjectPtr< T >

The class LogObjectPtr implements automatic reference counting for LogObject objects.

Constructor & Destructor Documentation

template<class T>
Log4Qt::LogObjectPtr< T >::LogObjectPtr (  )  [inline]

Constructs a 0 LogObject pointer.

template<class T>
Log4Qt::LogObjectPtr< T >::LogObjectPtr ( const LogObjectPtr< T > &  rOther  )  [inline]

Constructs a LogObject pointer that points to the same object then rOther. The reference counter of the object is incremented by one.

template<class T>
Log4Qt::LogObjectPtr< T >::LogObjectPtr ( T *  pLogObject  )  [inline]

Constructs a LogObject pointer that points to the object LogObject. The reference counter of the object is incremented by one.

template<class T>
Log4Qt::LogObjectPtr< T >::~LogObjectPtr (  )  [inline]

Destructs the object. The reference counter of the object the LogObjectPtr points to is decremented by one.


Member Function Documentation

template<class T>
LogObjectPtr< T > & Log4Qt::LogObjectPtr< T >::operator= ( const LogObjectPtr< T > &  rOther  )  [inline]

Assignment operator. Sets the LogObject pointer to point to the same object that rOther points to. The reference counter of the object the LogObjectPtr pointed to before the assignment is decremented by one. The reference counter of the object rOther is pointing to is incremented by one.

References Log4Qt::LogObjectPtr< T >::mpLogObject, and Log4Qt::LogObjectPtr< T >::retain().

template<class T>
LogObjectPtr< T > & Log4Qt::LogObjectPtr< T >::operator= ( T *  pLogObject  )  [inline]

Assignment operator. Sets the LogObject pointer to point to the object pLogObject. The reference counter of the object the LogObjectPtr pointed to before the assignment is decremented by one. The reference counter of the object pLogObject is pointing to is incremented by one.

template<class T>
T * Log4Qt::LogObjectPtr< T >::operator-> (  )  const [inline]

Arrow operator. Returns the LogObject the object points to.

template<class T>
T & Log4Qt::LogObjectPtr< T >::operator* (  )  const [inline]

Dereference operator. Returns a pointer to the LogObject the object points to.

template<class T>
Log4Qt::LogObjectPtr< T >::operator T * (  )  const [inline]

Cast operator. Cast the object to the LogObject the object points to.


The documentation for this class was generated from the following file:

Generated on Sun Mar 1 16:40:45 2009 for Log4Qt by  doxygen 1.5.6