KisSharedPtrVector< T > Class Template Reference
#include <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 (TDESharedPtr< T > ptr) const |
Detailed Description
template<class T>
class KisSharedPtrVector< T >
class KisSharedPtrVector< T >
TQValueVector does not always destroy an element when it is erased.
If the items it is holding are TDESharedPtr, this can result in hidden references to objects that cannot be accounted for. This class sets the TDESharedPtr to 0 on erase, which dereferences the object as expected.
Definition at line 34 of file kis_shared_ptr_vector.h.
Constructor & Destructor Documentation
◆ KisSharedPtrVector()
template<class T>
|
inline |
Definition at line 38 of file kis_shared_ptr_vector.h.
Member Function Documentation
◆ contains()
template<class T>
|
inline |
Definition at line 60 of file kis_shared_ptr_vector.h.
◆ erase() [1/2]
template<class T>
|
inline |
Definition at line 54 of file kis_shared_ptr_vector.h.
◆ erase() [2/2]
template<class T>
|
inline |
Definition at line 48 of file kis_shared_ptr_vector.h.
◆ pop_back()
template<class T>
|
inline |
Definition at line 40 of file kis_shared_ptr_vector.h.
The documentation for this class was generated from the following file:
