KSSharedPtr< T > Struct Template Reference
Can be used to control the lifetime of an object that has derived QShared. More...
#include <koscript_ptr.h>
Inheritance diagram for KSSharedPtr< T >:

Public Member Functions | |
| KSSharedPtr (T *t) | |
| KSSharedPtr (const KSSharedPtr &p) | |
| KSSharedPtr< T > & | operator= (const KSSharedPtr< T > &p) |
| KSSharedPtr< T > & | operator= (T *p) |
| bool | operator== (const KSSharedPtr< T > &p) const |
| bool | operator!= (const KSSharedPtr< T > &p) const |
| bool | operator== (const T &p) const |
| bool | operator!= (const T &p) const |
| bool | operator! () const |
| operator bool () const | |
| operator bool () | |
| operator T * () | |
| operator T * () const | |
| const T & | operator * () const |
| T & | operator * () |
| const T * | operator-> () const |
| T * | operator-> () |
| uint | count () const |
| bool | isNull () const |
Detailed Description
template<class T>
struct KSSharedPtr< T >
Can be used to control the lifetime of an object that has derived QShared.
As long a someone holds a KSSharedPtr on some QShared object it won't become deleted but is deleted once its reference count is 0. This struct emulates C++ pointers perfectly. So just use it like a simple C++ pointer.
Definition at line 19 of file koscript_ptr.h.
The documentation for this struct was generated from the following file:
