|
CARLA
|
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. | |
| 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.
References _list.
|
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.
References _list, and carla::AtomicSharedPtr< T >::load().
Referenced by DeleteByIndex(), DeleteByValue(), and Push().
|
inline |
Definition at line 32 of file AtomicList.h.
|
private |
Definition at line 70 of file AtomicList.h.
Referenced by AtomicList(), Clear(), DeleteByIndex(), DeleteByValue(), Load(), and Push().
|
private |
Definition at line 68 of file AtomicList.h.
Referenced by Clear(), DeleteByIndex(), DeleteByValue(), and Push().