#include <pointer.h>
Definition at line 24 of file pointer.h.
◆ SPtr() [1/2]
Definition at line 34 of file pointer.h.
34 : pObj(pobj) {
35 if (pObj) { pObj->count++; }
36 }
◆ SPtr() [2/2]
Definition at line 37 of file pointer.h.
37 : pObj(ptr.pObj) {
38 if (pObj) { pObj->count++; }
39 }
◆ ~SPtr()
Definition at line 48 of file pointer.h.
48 {
49 if (pObj && --(pObj->count) == 0) { delete pObj; }
50 }
◆ operator!=() [1/2]
Definition at line 32 of file pointer.h.
32{ return spobj.pObj!=pObj; }
◆ operator!=() [2/2]
bool SPtr< T >::operator!= |
( |
const T * |
pobj | ) |
const |
|
inline |
◆ operator->()
T * SPtr< T >::operator-> |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 41 of file pointer.h.
41 {
42 if (this == &ptr) { return *this; }
43 if (pObj && --(pObj->count) == 0) { delete pObj; }
44 if ( (pObj=ptr.pObj) ) { pObj->count++; }
45 return *this;
46 }
◆ operator==() [1/2]
Definition at line 31 of file pointer.h.
31{ return spobj.pObj==pObj; }
◆ operator==() [2/2]
bool SPtr< T >::operator== |
( |
const T * |
pobj | ) |
const |
|
inline |
The documentation for this class was generated from the following file: