55template <
class ObjectType>
87 jassert (
this != &other);
118 while (
l->item !=
nullptr)
119 l = &(
l->item->nextListItem);
132 for (
auto* i = item; i !=
nullptr; i = i->nextListItem)
146 while (--index >= 0 &&
l->item !=
nullptr)
147 l = &(
l->item->nextListItem);
160 while (--index >= 0 &&
l->item !=
nullptr)
161 l = &(
l->item->nextListItem);
169 for (
auto* i = item; i !=
nullptr; i = i->nextListItem)
182 JUCE_BEGIN_IGNORE_WARNINGS_MSVC (6011)
184 jassert (
newItem->nextListItem ==
nullptr);
187 JUCE_END_IGNORE_WARNINGS_MSVC
199 while (index != 0 &&
l->item !=
nullptr)
201 l = &(
l->item->nextListItem);
213 JUCE_BEGIN_IGNORE_WARNINGS_MSVC (6011 28182)
215 jassert (
newItem->nextListItem ==
nullptr);
219 item->nextListItem =
oldItem->nextListItem.item;
220 oldItem->nextListItem.item =
nullptr;
222 JUCE_END_IGNORE_WARNINGS_MSVC
244 for (
auto* i = other.item; i !=
nullptr; i = i->nextListItem)
262 oldItem->nextListItem.item =
nullptr;
282 while (item !=
nullptr)
298 while (
l->item !=
nullptr)
303 l = &(
l->item->nextListItem);
315 JUCE_BEGIN_IGNORE_WARNINGS_MSVC (6011)
318 for (
auto* i = item; i !=
nullptr; i = i->nextListItem)
321 JUCE_END_IGNORE_WARNINGS_MSVC
327 std::swap (item, other.item);
354 endOfList = &(
newItem->nextListItem);
360 JUCE_DECLARE_NON_COPYABLE (
Appender)
Appender(LinkedListPointer &endOfListPointer) noexcept
void append(ObjectType *const newItem) noexcept
LinkedListPointer & getLast() noexcept
LinkedListPointer * findPointerTo(ObjectType *const itemToLookFor) noexcept
LinkedListPointer & operator[](int index) noexcept
ObjectType * replaceNext(ObjectType *const newItem) noexcept
void append(ObjectType *const newItem)
LinkedListPointer & operator=(ObjectType *const newItem) noexcept
bool contains(const ObjectType *const itemToLookFor) const noexcept
ObjectType * removeNext() noexcept
LinkedListPointer(ObjectType *const headItem) noexcept
void insertNext(ObjectType *const newItem)
ObjectType * get() const noexcept
void addCopyOfList(const LinkedListPointer &other)
int size() const noexcept
void insertAtIndex(int index, ObjectType *newItem)
void copyToArray(ObjectType **destArray) const noexcept
LinkedListPointer() noexcept
void swapWith(LinkedListPointer &other) noexcept
void remove(ObjectType *const itemToRemove)