Public Member Functions

zeus::TNativePointer< T > Class Template Reference

#include <NativePointer.hpp>

Inheritance diagram for zeus::TNativePointer< T >:
zeus::INativePointer

List of all members.

Public Member Functions

 TNativePointer ()
 TNativePointer (T *pPointer)
 TNativePointer (T &rPointer)
virtual ~TNativePointer ()
void freeMemory ()
T * getPointer ()
const T * getConstPointer () const
virtual void *MQUALIFIER getIntPtr ()
virtual const void *MQUALIFIER getConstIntPtr () const
virtual void MQUALIFIER setIntPtr (void *pValue)
TNativePointer< T > & operator= (const T *pPtr)
TNativePointer< T > & operator= (const T &rPtr)
T * operator-> ()
const T * operator-> () const
T & operator* () const
 operator T * () const

Detailed Description

template<class T>
class zeus::TNativePointer< T >

Implements a native pointer instance. The pointer is unmanaged and must be deleted calling freeMemory(). For managed pointer use the TPtr<T> class.


Constructor & Destructor Documentation

template<class T >
zeus::TNativePointer< T >::TNativePointer (  ) [inline]

creates an empty pointer

template<class T >
zeus::TNativePointer< T >::TNativePointer ( T *  pPointer ) [inline]

creates pointer wrapper

template<class T >
zeus::TNativePointer< T >::TNativePointer ( T &  rPointer ) [inline]

creates pointer wrapper

template<class T >
virtual zeus::TNativePointer< T >::~TNativePointer (  ) [inline, virtual]

releases the pointer wrapper only


Member Function Documentation

template<class T >
void zeus::TNativePointer< T >::freeMemory (  ) [inline]

freeing the memory

template<class T >
virtual const void* MQUALIFIER zeus::TNativePointer< T >::getConstIntPtr (  ) const [inline, virtual]
template<class T >
const T* zeus::TNativePointer< T >::getConstPointer (  ) const [inline]

returns the the const_pointer

template<class T >
virtual void* MQUALIFIER zeus::TNativePointer< T >::getIntPtr (  ) [inline, virtual]
template<class T >
T* zeus::TNativePointer< T >::getPointer (  ) [inline]

returns the the pointer

template<class T >
zeus::TNativePointer< T >::operator T * (  ) const [inline]

Implicit cast to T*

template<class T >
T& zeus::TNativePointer< T >::operator* (  ) const [inline]

Returns the dereferenced pointer of an object

Returns:
reference to an object
template<class T >
const T* zeus::TNativePointer< T >::operator-> (  ) const [inline]

Operator is used to return the pointer and to access to all methods of the object

Returns:
pointer to interface
template<class T >
T* zeus::TNativePointer< T >::operator-> (  ) [inline]

Operator is used to return the pointer and to access to all methods of the object

Returns:
pointer to interface
template<class T >
TNativePointer<T>& zeus::TNativePointer< T >::operator= ( const T *  pPtr ) [inline]

Assign operator

Parameters:
pPtr: new pointer
template<class T >
TNativePointer<T>& zeus::TNativePointer< T >::operator= ( const T &  rPtr ) [inline]

Assign operator

Parameters:
rPtr: new pointer reference
template<class T >
virtual void MQUALIFIER zeus::TNativePointer< T >::setIntPtr ( void *  pValue ) [inline, virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:39