OpenAB
1.0.1
|
Smart pointer implementation for safely passing around dynamically created data. Smart pointers are reference counted, data that they are managing is automatically freed when no other references to it exist. More...
#include <SmartPtr.hpp>
Public Member Functions | |
SmartPtr () | |
Default constructor. More... | |
SmartPtr (__C *p) | |
Constructor. Creates new SmartPtr from given pointer. More... | |
SmartPtr (const SmartPtr &other) | |
Copy constructor. Creates new SmartPtr from other instance of SmartPtr increasing its reference count. More... | |
~SmartPtr () | |
Destructor. Decrements reference count, if it drops to 0 frees managed data. More... | |
SmartPtr & | operator= (const SmartPtr &other) |
Assignment operator Creates new SmartPtr from other instance of SmartPtr increasing its reference count. Decreases reference count of previous data, and it is needed frees it. More... | |
bool | operator== (const SmartPtr &other) const |
bool | operator!= (const SmartPtr &other) const |
bool | operator< (const SmartPtr &other) const |
__C * | operator-> () const |
__C & | operator* () const |
__C * | getPointer () const |
operator __C * () const | |
operator const __C * () const | |
Smart pointer implementation for safely passing around dynamically created data. Smart pointers are reference counted, data that they are managing is automatically freed when no other references to it exist.
|
inline |
Default constructor.
|
inline |
|
inline |
|
inline |
Destructor. Decrements reference count, if it drops to 0 frees managed data.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |