LibreOffice Module slideshow (master) 1
List of all members
slideshow::internal::ThreadUnsafeListenerContainer< ListenerT, ContainerT > Class Template Reference

ListenerContainer variant that does not serialize access. More...

#include <listenercontainer.hxx>

Inheritance diagram for slideshow::internal::ThreadUnsafeListenerContainer< ListenerT, ContainerT >:
[legend]
Collaboration diagram for slideshow::internal::ThreadUnsafeListenerContainer< ListenerT, ContainerT >:
[legend]

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...
 

Detailed Description

template<typename ListenerT, typename ContainerT = std::vector<ListenerT>>
class slideshow::internal::ThreadUnsafeListenerContainer< ListenerT, ContainerT >

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.


The documentation for this class was generated from the following file: