LibreOffice Module comphelper (master) 1
|
A bag of UNO weak references. More...
#include <weakbag.hxx>
Public Member Functions | |
void | add (css::uno::Reference< T > const &e) |
Add a new weak reference. More... | |
css::uno::Reference< T > | remove () |
Remove a living reference. More... | |
Private Attributes | |
std::vector< css::uno::WeakReference< T > > | m_list |
A bag of UNO weak references.
Definition at line 35 of file weakbag.hxx.
|
inline |
Add a new weak reference.
The implementation keeps the amount of memory consumed linear in the number of living references added, not linear in the number of total references added.
e | a non-null reference. |
Definition at line 47 of file weakbag.hxx.
References i, and comphelper::WeakBag< T >::m_list.
|
inline |
Remove a living reference.
Definition at line 65 of file weakbag.hxx.
References comphelper::WeakBag< T >::m_list.
|
private |
Definition at line 77 of file weakbag.hxx.
Referenced by comphelper::WeakBag< T >::add(), and comphelper::WeakBag< T >::remove().