lib Library API Documentation

KSSharedPtr< T > Struct Template Reference

Can be used to control the lifetime of an object that has derived QShared. More...

#include <koscript_ptr.h>

List of all members.

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:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 24 18:22:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003