LibreOffice Module slideshow (master) 1
|
ListenerContainer variant that does not serialize access. More...
#include <listenercontainer.hxx>
Additional Inherited Members | |
Public Types inherited from slideshow::internal::ListenerContainerBase< ListenerT, EmptyBase, std::vector< ListenerT > > | |
typedef ListenerT | listener_type |
typedef std::vector< ListenerT > | container_type |
Public Types inherited from slideshow::internal::EmptyBase | |
typedef EmptyGuard | Guard |
typedef EmptyClearableGuard | ClearableGuard |
Public Member Functions inherited from slideshow::internal::ListenerContainerBase< ListenerT, EmptyBase, std::vector< ListenerT > > | |
bool | isEmpty () const |
Check whether listener container is empty. More... | |
bool | isAdded (listener_type const &rListener) const |
Check whether given listener is already added. More... | |
void | add (listener_type const &rListener) |
Add new listener. More... | |
bool | addSorted (listener_type const &rListener) |
Add new listener into sorted container. More... | |
bool | remove (listener_type const &rListener) |
Remove listener from container. More... | |
void | clear () |
Removes all listeners in one go. More... | |
bool | apply (FuncT func) const |
Apply functor to one listener. More... | |
bool | applyAll (FuncT func) const |
Apply functor to all listeners. More... | |
ListenerContainer variant that does not serialize access.
This ListenerContainer version is not safe to use in a multi-threaded scenario, but has less overhead.
Definition at line 408 of file listenercontainer.hxx.