Holds an atomic pointer to a list. More...
#include <AtomicList.h>
Public Member Functions | |
AtomicList () | |
void | Clear () |
void | DeleteByIndex (size_t index) |
template<typename ValueT > | |
void | DeleteByValue (const ValueT &value) |
std::shared_ptr< const ListT > | Load () const |
Returns a pointer to the list. More... | |
template<typename ValueT > | |
void | Push (ValueT &&value) |
Private Types | |
using | ListT = std::vector< T > |
Private Attributes | |
AtomicSharedPtr< const ListT > | _list |
std::mutex | _mutex |
Additional Inherited Members | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Holds an atomic pointer to a list.
Definition at line 25 of file AtomicList.h.
|
private |
Definition at line 26 of file AtomicList.h.
|
inline |
Definition at line 29 of file AtomicList.h.
|
inline |
Definition at line 56 of file AtomicList.h.
|
inline |
Definition at line 39 of file AtomicList.h.
|
inline |
Definition at line 49 of file AtomicList.h.
|
inline |
Returns a pointer to the list.
Definition at line 62 of file AtomicList.h.
Referenced by carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByIndex(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByValue(), and carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Push().
|
inline |
Definition at line 32 of file AtomicList.h.
|
private |
Definition at line 70 of file AtomicList.h.
Referenced by carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Clear(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByIndex(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByValue(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Load(), and carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Push().
|
private |
Definition at line 68 of file AtomicList.h.
Referenced by carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Clear(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByIndex(), carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::DeleteByValue(), and carla::client::detail::AtomicList< carla::client::detail::CallbackList::Item >::Push().