|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A basic object container. More...
#include "juce_ArrayBase.h"
Public Member Functions | |
| ArrayBase (ArrayBase &&other) noexcept | |
| ArrayBase & | operator= (ArrayBase &&other) noexcept |
| template<class OtherElementType , class OtherCriticalSection , typename = AllowConversion<OtherElementType, OtherCriticalSection>> | |
| ArrayBase (ArrayBase< OtherElementType, OtherCriticalSection > &&other) noexcept | |
| Converting move constructor. | |
| template<class OtherElementType , class OtherCriticalSection , typename = AllowConversion<OtherElementType, OtherCriticalSection>> | |
| ArrayBase & | operator= (ArrayBase< OtherElementType, OtherCriticalSection > &&other) noexcept |
| Converting move assignment operator. | |
| template<class OtherArrayType > | |
| bool | operator== (const OtherArrayType &other) const noexcept |
| template<class OtherArrayType > | |
| bool | operator!= (const OtherArrayType &other) const noexcept |
| ElementType & | operator[] (const int index) noexcept |
| const ElementType & | operator[] (const int index) const noexcept |
| ElementType | getValueWithDefault (const int index) const noexcept |
| ElementType | getFirst () const noexcept |
| ElementType | getLast () const noexcept |
| ElementType * | begin () noexcept |
| const ElementType * | begin () const noexcept |
| ElementType * | end () noexcept |
| const ElementType * | end () const noexcept |
| ElementType * | data () noexcept |
| const ElementType * | data () const noexcept |
| int | size () const noexcept |
| int | capacity () const noexcept |
| void | setAllocatedSize (int numElements) |
| void | ensureAllocatedSize (int minNumElements) |
| void | shrinkToNoMoreThan (int maxNumElements) |
| void | clear () |
| void | swapWith (ArrayBase &other) noexcept |
| void | add (const ElementType &newElement) |
| void | add (ElementType &&newElement) |
| template<typename... OtherElements> | |
| void | add (const ElementType &firstNewElement, OtherElements &&... otherElements) |
| template<typename... OtherElements> | |
| void | add (ElementType &&firstNewElement, OtherElements &&... otherElements) |
| template<typename Type > | |
| void | addArray (const Type *elementsToAdd, int numElementsToAdd) |
| template<typename TypeToCreateFrom > | |
| void | addArray (const std::initializer_list< TypeToCreateFrom > &items) |
| template<class OtherArrayType > | |
| void | addArray (const OtherArrayType &arrayToAddFrom) |
| template<class OtherArrayType > | |
| std::enable_if_t<! std::is_pointer_v< OtherArrayType >, int > | addArray (const OtherArrayType &arrayToAddFrom, int startIndex, int numElementsToAdd=-1) |
| void | insert (int indexToInsertAt, ParameterType newElement, int numberOfTimesToInsertIt) |
| void | insertArray (int indexToInsertAt, const ElementType *newElements, int numberOfElements) |
| void | removeElements (int indexToRemoveAt, int numElementsToRemove) |
| void | swap (int index1, int index2) |
| void | move (int currentIndex, int newIndex) noexcept |
A basic object container.
This class isn't really for public use - it's used by the other array classes, but might come in handy for some purposes.
It inherits from a critical section class to allow the arrays to use the "empty base class optimisation" pattern to reduce their footprint.
@tags{Core}
Definition at line 40 of file juce_ArrayBase.h.
| juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::~ArrayBase | ( | ) |
Definition at line 53 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 58 of file juce_ArrayBase.h.
|
noexcept |
Converting move constructor.
Only enabled when the other array has a different type to this one. If you see a compile error here, it's probably because you're attempting a conversion that HeapBlock won't allow.
Definition at line 86 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::add | ( | const ElementType & | firstNewElement, |
| OtherElements &&... | otherElements | ||
| ) |
Definition at line 267 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::add | ( | const ElementType & | newElement | ) |
Definition at line 256 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::add | ( | ElementType && | firstNewElement, |
| OtherElements &&... | otherElements | ||
| ) |
Definition at line 273 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::add | ( | ElementType && | newElement | ) |
Definition at line 261 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::addArray | ( | const OtherArrayType & | arrayToAddFrom | ) |
Definition at line 297 of file juce_ArrayBase.h.
| std::enable_if_t<! std::is_pointer_v< OtherArrayType >, int > juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::addArray | ( | const OtherArrayType & | arrayToAddFrom, |
| int | startIndex, | ||
| int | numElementsToAdd = -1 |
||
| ) |
Definition at line 308 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::addArray | ( | const std::initializer_list< TypeToCreateFrom > & | items | ) |
Definition at line 288 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::addArray | ( | const Type * | elementsToAdd, |
| int | numElementsToAdd | ||
| ) |
Definition at line 280 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 174 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 169 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 204 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::clear | ( | ) |
Definition at line 239 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 194 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 189 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 184 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 179 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::ensureAllocatedSize | ( | int | minNumElements | ) |
Definition at line 225 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 158 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 163 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 153 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::insert | ( | int | indexToInsertAt, |
| ParameterType | newElement, | ||
| int | numberOfTimesToInsertIt | ||
| ) |
Definition at line 328 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::insertArray | ( | int | indexToInsertAt, |
| const ElementType * | newElements, | ||
| int | numberOfElements | ||
| ) |
Definition at line 339 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 375 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 133 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 67 of file juce_ArrayBase.h.
|
noexcept |
Converting move assignment operator.
Only enabled when the other array has a different type to this one. If you see a compile error here, it's probably because you're attempting a conversion that HeapBlock won't allow.
Definition at line 103 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 118 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 146 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 139 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::removeElements | ( | int | indexToRemoveAt, |
| int | numElementsToRemove | ||
| ) |
Definition at line 350 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::setAllocatedSize | ( | int | numElements | ) |
Definition at line 210 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::shrinkToNoMoreThan | ( | int | maxNumElements | ) |
Definition at line 233 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 199 of file juce_ArrayBase.h.
| void juce::ArrayBase< ElementType, TypeOfCriticalSectionToUse >::swap | ( | int | index1, |
| int | index2 | ||
| ) |
Definition at line 364 of file juce_ArrayBase.h.
|
noexcept |
Definition at line 248 of file juce_ArrayBase.h.
|
friend |
Definition at line 585 of file juce_ArrayBase.h.