equal
deleted
inserted
replaced
72 |
72 |
73 /** another way how to test for NULL value */ |
73 /** another way how to test for NULL value */ |
74 FORCEINLINE bool operator == (const CCountedPtr& sp) const {return m_pT == sp.m_pT;} |
74 FORCEINLINE bool operator == (const CCountedPtr& sp) const {return m_pT == sp.m_pT;} |
75 |
75 |
76 /** yet another way how to test for NULL value */ |
76 /** yet another way how to test for NULL value */ |
77 FORCEINLINE bool operator != (const CCountedPtr& sp) const {return m_pT != sp.m_pT;} |
77 FORCEINLINE bool operator != (const CCountedPtr& sp) const {return m_pT != sp.m_pT;} |
78 |
78 |
79 /** assign pointer w/o incrementing ref count */ |
79 /** assign pointer w/o incrementing ref count */ |
80 FORCEINLINE void Attach(Tcls* pT) {Release(); m_pT = pT;} |
80 FORCEINLINE void Attach(Tcls* pT) {Release(); m_pT = pT;} |
81 |
81 |
82 /** detach pointer w/o decrementing ref count */ |
82 /** detach pointer w/o decrementing ref count */ |