JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::LinkedListPointer< ObjectType >::Appender Class Reference

Allows efficient repeated insertions into a list. More...

#include <juce_LinkedListPointer.h>

Collaboration diagram for juce::LinkedListPointer< ObjectType >::Appender:

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

LinkedListPointerendOfList
 

Detailed Description

template<class ObjectType>
class juce::LinkedListPointer< ObjectType >::Appender

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.

Constructor & Destructor Documentation

◆ Appender()

template<class ObjectType >
juce::LinkedListPointer< ObjectType >::Appender::Appender ( LinkedListPointer endOfListPointer)
inlinenoexcept

Creates an appender which will add items to the given list.

References jassert.

Member Function Documentation

◆ append()

template<class ObjectType >
void juce::LinkedListPointer< ObjectType >::Appender::append ( ObjectType *const  newItem)
inlinenoexcept

Appends an item to the list.

References juce::LinkedListPointer< ObjectType >::Appender::endOfList.

Member Data Documentation

◆ endOfList

template<class ObjectType >
LinkedListPointer* juce::LinkedListPointer< ObjectType >::Appender::endOfList
private

The documentation for this class was generated from the following file: