#include <smart_ptr.h>
Public Member Functions | |
CstCDbgPtr (const CstCDbgPtr ©) | |
CstCDbgPtr (const T *p) | |
CstCDbgPtr () | |
bool | isNULL () const |
const T & | operator * (void) const |
operator const T * (void) const | |
const T * | operator-> (void) const |
bool | operator< (const CstCDbgPtr &p) const |
CstCDbgPtr & | operator= (const CstCDbgPtr &p) |
CstCDbgPtr & | operator= (const T *p) |
const T * | ptr () const |
~CstCDbgPtr () | |
Private Attributes | |
const T * | Ptr |
|
Definition at line 584 of file smart_ptr.h.
00584 { Ptr=NULL; } |
|
Definition at line 585 of file smart_ptr.h.
|
|
Definition at line 596 of file smart_ptr.h. References NLMISC::CstCDbgPtr< T >::Ptr.
|
|
Definition at line 630 of file smart_ptr.h.
|
|
Definition at line 614 of file smart_ptr.h.
00615 { 00616 return Ptr==NULL; 00617 } |
|
Definition at line 620 of file smart_ptr.h.
00620 { return *Ptr; } |
|
Definition at line 619 of file smart_ptr.h.
00619 { return Ptr; } |
|
Definition at line 621 of file smart_ptr.h.
00621 { return Ptr; } |
|
Definition at line 671 of file smart_ptr.h. References NLMISC::CstCDbgPtr< T >::Ptr.
00672 { 00673 return Ptr<p.Ptr; 00674 } |
|
Definition at line 666 of file smart_ptr.h. References NLMISC::CstCDbgPtr< T >::Ptr.
00667 {
00668 return CstCDbgPtr<T>::operator=(p.Ptr);
00669 }
|
|
Definition at line 645 of file smart_ptr.h.
00646 { 00647 #ifdef NL_DEBUG_PTR 00648 if(p) 00649 { 00650 CDbgRefCount<T> *ref=static_cast<CDbgRefCount<T>*>(const_cast<T*>(p)); 00651 ref->incRef(*this); 00652 } 00653 if(Ptr) 00654 { 00655 CDbgRefCount<T> *ref=static_cast<CDbgRefCount<T>*>(const_cast<T*>(Ptr)); 00656 ref->decRef(*this); 00657 } 00658 Ptr = p; 00659 00660 #else 00661 Ptr = p; 00662 #endif 00663 return *this; 00664 } |
|
Definition at line 609 of file smart_ptr.h.
00610 { 00611 return Ptr; 00612 } |
|
Definition at line 581 of file smart_ptr.h. Referenced by NLMISC::CstCDbgPtr< T >::CstCDbgPtr(), NLMISC::CstCDbgPtr< T >::operator<(), and NLMISC::CstCDbgPtr< T >::operator=(). |