Allows efficient repeated insertions into a list. More...
#include <juce_LinkedListPointer.h>
Public Member Functions | |
Appender (LinkedListPointer &endOfListPointer) noexcept | |
Creates an appender which will add items to the given list. More... | |
void | append (ObjectType *const newItem) noexcept |
Appends an item to the list. More... | |
Private Attributes | |
LinkedListPointer * | endOfList |
Allows efficient repeated insertions into a list.
You can create an Appender object which points to the last element in your list, and then repeatedly call Appender::append() to add items to the end of the list in O(1) time.
|
inlinenoexcept |
Creates an appender which will add items to the given list.
References jassert.
|
inlinenoexcept |
Appends an item to the list.
References juce::LinkedListPointer< ObjectType >::Appender::endOfList.
|
private |
Referenced by juce::LinkedListPointer< ObjectType >::Appender::append().