|
TracktionEngine
|
A list of Selectables, similar to a juce::Array but contains a cached list of the SelectableClasses for each entry. More...
#include <tracktion_Selectable.h>
Public Types | |
| using | ScopedLockType = juce::Array<Selectable*>::ScopedLockType |
Public Member Functions | |
| SelectableList ()=default | |
| SelectableList (const std::initializer_list< Selectable * > &initialItems) | |
| template<typename SelectableType> | |
| SelectableList (const juce::Array< SelectableType * > &initialItems) | |
| template<typename SelectableType> | |
| SelectableList (const juce::ReferenceCountedArray< SelectableType > &initialItems) | |
| template<typename SelectableType> | |
| SelectableList (const std::vector< SelectableType * > &initialItems) | |
| SelectableClass * | getSelectableClass (int index) const |
| Returns the selectable class for a given Selectable in the list. | |
| std::pair< Selectable *, SelectableClass * > | getSelectableAndClass (int index) const |
| Returns the selectable and it's associated class. | |
| template<typename SubclassType> | |
| juce::Array< SubclassType * > | getItemsOfType () const |
| template<typename SubclassType> | |
| SubclassType * | getFirstOfType () const |
| template<typename SubclassType> | |
| bool | containsType () const |
| int | size () const |
| bool | isEmpty () const |
| bool | isNotEmpty () const |
| Selectable ** | begin () |
| Selectable *const * | begin () const |
| Selectable ** | end () |
| Selectable *const * | end () const |
| Selectable ** | data () |
| Selectable *const * | data () const |
| Selectable * | operator[] (int index) const |
| Selectable * | getUnchecked (int index) const |
| Selectable * | getFirst () const |
| Selectable * | getLast () const |
| template<class OtherArrayType> | |
| void | addArray (const OtherArrayType &arrayToAddFrom, int startIndex=0, int numElementsToAdd=-1) |
| template<class OtherArrayType> | |
| void | mergeArray (const OtherArrayType &arrayToMergeFrom) |
| void | add (Selectable *newElement) |
| bool | addIfNotAlreadyThere (Selectable *newElement) |
| void | clear () |
| void | remove (int indexToRemove) |
| int | removeAllInstancesOf (Selectable *s) |
| Selectable * | removeAndReturn (int indexToRemove) |
| bool | contains (Selectable *elementToLookFor) const |
| int | indexOf (Selectable *elementToLookFor) const |
| template<class OtherArrayType> | |
| bool | operator== (const OtherArrayType &other) const |
| template<class OtherArrayType> | |
| bool | operator!= (const OtherArrayType &other) const |
| bool | operator== (const SelectableList &other) const |
| bool | operator!= (const SelectableList &other) const |
| const juce::DummyCriticalSection & | getLock () const noexcept |
A list of Selectables, similar to a juce::Array but contains a cached list of the SelectableClasses for each entry.
| using engine::SelectableList::ScopedLockType = juce::Array<Selectable*>::ScopedLockType |
|
default |
Referenced by operator!=(), and operator==().
| engine::SelectableList::SelectableList | ( | const std::initializer_list< Selectable * > & | initialItems | ) |
| engine::SelectableList::SelectableList | ( | const juce::Array< SelectableType * > & | initialItems | ) |
| engine::SelectableList::SelectableList | ( | const juce::ReferenceCountedArray< SelectableType > & | initialItems | ) |
| engine::SelectableList::SelectableList | ( | const std::vector< SelectableType * > & | initialItems | ) |
| SelectableClass * engine::SelectableList::getSelectableClass | ( | int | index | ) | const |
Returns the selectable class for a given Selectable in the list.
| std::pair< Selectable *, SelectableClass * > engine::SelectableList::getSelectableAndClass | ( | int | index | ) | const |
Returns the selectable and it's associated class.
N.B. This does no bounds checking so make sure index is in range!
| juce::Array< SubclassType * > engine::SelectableList::getItemsOfType | ( | ) | const |
| SubclassType * engine::SelectableList::getFirstOfType | ( | ) | const |
| bool engine::SelectableList::containsType | ( | ) | const |
| int engine::SelectableList::size | ( | ) | const |
| bool engine::SelectableList::isEmpty | ( | ) | const |
Referenced by isNotEmpty().
| bool engine::SelectableList::isNotEmpty | ( | ) | const |
References isEmpty().
| Selectable *const * engine::SelectableList::begin | ( | ) | const |
| Selectable ** engine::SelectableList::end | ( | ) |
| Selectable *const * engine::SelectableList::end | ( | ) | const |
| Selectable ** engine::SelectableList::data | ( | ) |
References begin().
| Selectable *const * engine::SelectableList::data | ( | ) | const |
References begin().
| Selectable * engine::SelectableList::operator[] | ( | int | index | ) | const |
| Selectable * engine::SelectableList::getUnchecked | ( | int | index | ) | const |
| Selectable * engine::SelectableList::getFirst | ( | ) | const |
| Selectable * engine::SelectableList::getLast | ( | ) | const |
| void engine::SelectableList::addArray | ( | const OtherArrayType & | arrayToAddFrom, |
| int | startIndex = 0, | ||
| int | numElementsToAdd = -1 ) |
| void engine::SelectableList::mergeArray | ( | const OtherArrayType & | arrayToMergeFrom | ) |
References addIfNotAlreadyThere().
| void engine::SelectableList::add | ( | Selectable * | newElement | ) |
| bool engine::SelectableList::addIfNotAlreadyThere | ( | Selectable * | newElement | ) |
Referenced by mergeArray().
| void engine::SelectableList::clear | ( | ) |
| void engine::SelectableList::remove | ( | int | indexToRemove | ) |
| int engine::SelectableList::removeAllInstancesOf | ( | Selectable * | s | ) |
| Selectable * engine::SelectableList::removeAndReturn | ( | int | indexToRemove | ) |
| bool engine::SelectableList::contains | ( | Selectable * | elementToLookFor | ) | const |
| int engine::SelectableList::indexOf | ( | Selectable * | elementToLookFor | ) | const |
| bool engine::SelectableList::operator== | ( | const OtherArrayType & | other | ) | const |
| bool engine::SelectableList::operator!= | ( | const OtherArrayType & | other | ) | const |
| bool engine::SelectableList::operator== | ( | const SelectableList & | other | ) | const |
References SelectableList().
| bool engine::SelectableList::operator!= | ( | const SelectableList & | other | ) | const |
References SelectableList().
|
noexcept |