#include <SignalVector.hpp>
|
| SignalVector () |
|
| SignalVector (std::function< bool(const T &, const T &)> &&compare) |
|
bool | isSorted () const |
|
std::shared_ptr< const std::vector< T > > | readOnly () |
| A read-only version of the vector which can be used concurrently. More...
|
|
int | insert (const T &item, int index=-1, void *caller=nullptr) |
|
int | append (const T &item, void *caller=nullptr) |
|
void | removeAt (int index, void *caller=nullptr) |
|
const std::vector< T > & | raw () const |
|
std::vector< T > | cloneVector () |
|
auto | begin () const |
|
auto | end () const |
|
decltype(auto) | operator[] (size_t index) |
|
auto | empty () |
|
◆ SignalVector() [1/2]
◆ SignalVector() [2/2]
◆ append()
This may only be called from the GUI thread.
- Parameters
-
item | Item to be appended. |
caller | Caller id which will be passed in the itemInserted and itemRemoved signals. |
◆ begin()
◆ cloneVector()
◆ empty()
◆ end()
◆ insert()
This may only be called from the GUI thread.
- Parameters
-
item | Item to be inserted. |
proposedIndex | Index to insert at. -1 will append at the end. Will be ignored if the vector is sorted. |
caller | Caller id which will be passed in the itemInserted and itemRemoved signals. |
◆ isSorted()
◆ operator[]()
◆ raw()
◆ readOnly()
A read-only version of the vector which can be used concurrently.
◆ removeAt()
◆ delayedItemsChanged
◆ itemInserted
◆ itemRemoved
The documentation for this class was generated from the following file: