NSCore::Pointer_template< T > Class Template Reference

Template class for pointer-arithmetic. More...

#include <pointer_template.h>

Inheritance diagram for NSCore::Pointer_template< T >:

NSCore::PointerProtection_Base NSCore::NamedParameterTreeItemPointer NSCore::QTreeItemPointer NSEvaluation::PluginItemPointer NSCore::QTreeItemNode
Collaboration diagram for NSCore::Pointer_template< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Pointer_template (T *p)
 Pointer_template (const Pointer_template< T > &n)
virtual ~Pointer_template ()
 destructor
Pointer_template operator= (Pointer_template pointer)
T * operator* () const
 Access.
T * operator-> () const
 Access.
T * object () const
 Access.
virtual void setNull ()
bool isNull () const

Protected Attributes

T * _p

Private Member Functions

 Pointer_template ()

Private Attributes

bool _shownwarning

Related Functions

(Note that these are not member functions.)

template<class T>
bool operator== (Pointer_template< T > one, Pointer_template< T > two)
 Comparison for pointer templates.
template<class T>
bool operator< (Pointer_template< T > one, Pointer_template< T > two)
 Comparison for pointer templates.


Detailed Description

template<class T>
class NSCore::Pointer_template< T >

Template class for pointer-arithmetic.

If you subclass your classes from PointerProtection_Skel you will even get protection against dangling pointers after deletion.


Constructor & Destructor Documentation

template<class T>
NSCore::Pointer_template< T >::Pointer_template (  )  [inline, private]

No creation of the Pointer without the real pointer

template<class T>
NSCore::Pointer_template< T >::Pointer_template ( T *  p  )  [inline]

Creates a Pointer from the given pointer

template<class T>
NSCore::Pointer_template< T >::Pointer_template ( const Pointer_template< T > &  n  )  [inline]

Copy constructor

template<class T>
virtual NSCore::Pointer_template< T >::~Pointer_template (  )  [inline, virtual]

destructor


Member Function Documentation

template<class T>
Pointer_template NSCore::Pointer_template< T >::operator= ( Pointer_template< T >  pointer  )  [inline]

operator =

template<class T>
T* NSCore::Pointer_template< T >::operator* (  )  const [inline]

Access.

template<class T>
T* NSCore::Pointer_template< T >::operator-> (  )  const [inline]

Access.

template<class T>
T* NSCore::Pointer_template< T >::object (  )  const [inline]

template<class T>
virtual void NSCore::Pointer_template< T >::setNull (  )  [inline, virtual]

template<class T>
bool NSCore::Pointer_template< T >::isNull (  )  const [inline]


Friends And Related Function Documentation

template<class T>
bool operator== ( Pointer_template< T >  one,
Pointer_template< T >  two 
) [related]

Comparison for pointer templates.

References NSCore::Pointer_template< T >::object().

template<class T>
bool operator< ( Pointer_template< T >  one,
Pointer_template< T >  two 
) [related]

Comparison for pointer templates.


Member Data Documentation

template<class T>
T* NSCore::Pointer_template< T >::_p [protected]

template<class T>
bool NSCore::Pointer_template< T >::_shownwarning [mutable, private]


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

Generated on Tue Apr 12 02:10:28 2011 for epos by  doxygen 1.5.5