Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
#include <smartptr.h>
Public Member Functions | |
SmartPtr () | |
SmartPtr (T *pObj) | |
template<class U > | |
SmartPtr (const SmartPtr< U > &ptr) | |
SmartPtr (const SmartPtr &ptr) | |
~SmartPtr () | |
operator T* () const | |
T & | operator* () |
T * | operator-> () const |
template<class U > | |
SmartPtr & | operator= (const SmartPtr< U > &ptr) |
SmartPtr & | operator= (const SmartPtr &ptr) |
SmartPtr & | operator= (T *pObj) |
bool | operator== (const SmartPtr &ptr) const |
bool | operator== (T *pObj) const |
bool | operator!= (const SmartPtr &ptr) const |
bool | operator!= (T *pObj) const |
bool | operator> (const SmartPtr &ptr) const |
bool | operator> (T *pObj) const |
bool | operator< (const SmartPtr &ptr) const |
bool | operator< (T *pObj) const |
T * | getRealPointer () |
const T * | getRealPointer () const |
Public Attributes | |
T * | _pObj |
The real pointer, must derived IRefCount. More... | |
This is the smart pointer template. It assumes that the referenced object supports a reference count interface via IRefCount.
Definition at line 101 of file smartptr.h.
Definition at line 104 of file smartptr.h.
Definition at line 105 of file smartptr.h.
Copy constructor from an inherited type of T.
Definition at line 116 of file smartptr.h.
Copy constructor.
Definition at line 127 of file smartptr.h.
Definition at line 136 of file smartptr.h.
|
inline |
Gets the real pointer.
Definition at line 275 of file smartptr.h.
|
inline |
|
inline |
Cast operator.
Definition at line 150 of file smartptr.h.
Equality operator with a smart pointer.
Definition at line 228 of file smartptr.h.
|
inline |
Equality operator with a real pointer.
Definition at line 236 of file smartptr.h.
|
inline |
Definition at line 151 of file smartptr.h.
|
inline |
Pointer operator.
Definition at line 156 of file smartptr.h.
Comparaison operator with a smart pointer.
Definition at line 259 of file smartptr.h.
|
inline |
Comparaison operator with a real pointer.
Definition at line 266 of file smartptr.h.
|
inline |
Copy operator from a derived type smart pointer.
Definition at line 161 of file smartptr.h.
Copy operator from a smart pointer.
Definition at line 184 of file smartptr.h.
Copy operator from a real pointer.
Definition at line 193 of file smartptr.h.
Equality operator with a smart pointer.
Definition at line 212 of file smartptr.h.
|
inline |
Equality operator with a real pointer.
Definition at line 220 of file smartptr.h.
Comparaison operator with a smart pointer.
Definition at line 244 of file smartptr.h.
|
inline |
Comparaison operator with a real pointer.
Definition at line 251 of file smartptr.h.
T* SmartPtr< T >::_pObj |
The real pointer, must derived IRefCount.
Definition at line 285 of file smartptr.h.