krita

KisSharedPtrVector< T > Class Template Reference

#include <kis_shared_ptr_vector.h>

Inherits QValueVector< KSharedPtr< T > >.

List of all members.


Detailed Description

template<class T>
class KisSharedPtrVector< T >

QValueVector does not always destroy an element when it is erased.

If the items it is holding are KSharedPtr, this can result in hidden references to objects that cannot be accounted for. This class sets the KSharedPtr to 0 on erase, which dereferences the object as expected.

Definition at line 34 of file kis_shared_ptr_vector.h.


Public Member Functions

void pop_back ()
super::iterator erase (typename super::iterator it)
super::iterator erase (typename super::iterator first, typename super::iterator last)
bool contains (KSharedPtr< T > ptr) const

The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys