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>

Inheritance diagram for KSSharedPtr< T >:

Inheritance graph
[legend]
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.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:51:08 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003