|
C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
|
A simple thread safe list of items. More...
#include <GuardedList.h>
Public Types | |
| using | Index = typename std::list< T >::const_iterator |
| Type of an item index. | |
Public Member Functions | |
| std::vector< T > | get () const |
| Gets a copy of the list of items. More... | |
| Index | add (const T &item) |
| Adds the given item to the list and returns its index. More... | |
| void | remove (const Index &index) |
| Removes the item at the given index from the list. More... | |
A simple thread safe list of items.
| T | The item type. |
| Index Systemic::GuardedList< T >::add | ( | const T & | item | ) |
Adds the given item to the list and returns its index.
| item | The item to add. |
| std::vector< T > Systemic::GuardedList< T >::get | ( | ) | const |
Gets a copy of the list of items.
| void Systemic::GuardedList< T >::remove | ( | const Index & | index | ) |
Removes the item at the given index from the list.
| index | The index of the item to remove. |