#include <pointer_template.h>
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. |
If you subclass your classes from PointerProtection_Skel you will even get protection against dangling pointers after deletion.
NSCore::Pointer_template< T >::Pointer_template | ( | ) | [inline, private] |
No creation of the Pointer without the real pointer
NSCore::Pointer_template< T >::Pointer_template | ( | T * | p | ) | [inline] |
Creates a Pointer from the given pointer
NSCore::Pointer_template< T >::Pointer_template | ( | const Pointer_template< T > & | n | ) | [inline] |
Copy constructor
virtual NSCore::Pointer_template< T >::~Pointer_template | ( | ) | [inline, virtual] |
destructor
Pointer_template NSCore::Pointer_template< T >::operator= | ( | Pointer_template< T > | pointer | ) | [inline] |
operator =
T* NSCore::Pointer_template< T >::operator* | ( | ) | const [inline] |
Access.
T* NSCore::Pointer_template< T >::operator-> | ( | ) | const [inline] |
Access.
T* NSCore::Pointer_template< T >::object | ( | ) | const [inline] |
virtual void NSCore::Pointer_template< T >::setNull | ( | ) | [inline, virtual] |
Implements NSCore::PointerProtection_Base.
Reimplemented in NSCore::QTreeItemPointer, and NSEvaluation::PluginItemPointer.
Referenced by NSEvaluation::PluginItemPointer::setNull().
bool NSCore::Pointer_template< T >::isNull | ( | ) | const [inline] |
bool operator== | ( | Pointer_template< T > | one, | |
Pointer_template< T > | two | |||
) | [related] |
bool operator< | ( | Pointer_template< T > | one, | |
Pointer_template< T > | two | |||
) | [related] |
Comparison for pointer templates.
T* NSCore::Pointer_template< T >::_p [protected] |
Referenced by NSCore::QTreeItemPointer::guiActions(), NSCore::QTreeItemPointer::guiExecAction(), NSCore::QTreeItemPointer::guiFlags(), NSCore::QTreeItemPointer::guiIdentifier(), NSCore::QTreeItemPointer::guiSetValue(), NSCore::QTreeItemPointer::guiValue(), NSCore::Pointer_template< NSCore::QTreeItem >::isNull(), NSCore::Pointer_template< NSCore::QTreeItem >::object(), NSCore::Pointer_template< NSCore::QTreeItem >::operator=(), NSCore::NamedParameterTreeItemPointer::operator[](), NSCore::Pointer_template< NSCore::QTreeItem >::Pointer_template(), NSCore::Pointer_template< NSCore::QTreeItem >::setNull(), NSEvaluation::PluginItemPointer::setNull(), and NSCore::Pointer_template< NSCore::QTreeItem >::~Pointer_template().
bool NSCore::Pointer_template< T >::_shownwarning [mutable, private] |
Referenced by NSCore::Pointer_template< NSCore::QTreeItem >::object().