TracktionEngine
Loading...
Searching...
No Matches
engine::ValueTreeObjectList< ObjectType, CriticalSectionType > Class Template Referenceabstract

#include <tracktion_ValueTreeUtilities.h>

Inheritance diagram for engine::ValueTreeObjectList< ObjectType, CriticalSectionType >:

Public Types

using ScopedLockType = typename CriticalSectionType::ScopedLockType

Public Member Functions

 ValueTreeObjectList (const juce::ValueTree &parentTree)
 ~ValueTreeObjectList () override
int size () const
bool isEmpty () const noexcept
ObjectType * operator[] (int idx) const
ObjectType * at (int idx)
ObjectType ** begin ()
ObjectType *const * begin () const
ObjectType ** end ()
ObjectType *const * end () const
void rebuildObjects ()
void freeObjects ()
virtual bool isSuitableType (const juce::ValueTree &) const =0
virtual ObjectType * createNewObject (const juce::ValueTree &)=0
virtual void deleteObject (ObjectType *)=0
virtual void newObjectAdded (ObjectType *)=0
virtual void objectRemoved (ObjectType *)=0
virtual void objectOrderChanged ()=0
void valueTreeChildAdded (juce::ValueTree &, juce::ValueTree &tree) override
void valueTreeChildRemoved (juce::ValueTree &exParent, juce::ValueTree &tree, int) override
void valueTreeChildOrderChanged (juce::ValueTree &tree, int, int) override
void valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override
void valueTreeParentChanged (juce::ValueTree &) override
void valueTreeRedirected (juce::ValueTree &) override
int compareElements (ObjectType *first, ObjectType *second) const

Public Attributes

juce::Array< ObjectType * > objects
CriticalSectionType arrayLock

Protected Member Functions

void deleteAllObjects ()
bool isChildTree (juce::ValueTree &v) const
int indexOf (const juce::ValueTree &v) const noexcept
void sortArray ()

Protected Attributes

juce::ValueTree parent

Member Typedef Documentation

◆ ScopedLockType

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
using engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::ScopedLockType = typename CriticalSectionType::ScopedLockType

Constructor & Destructor Documentation

◆ ValueTreeObjectList()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::ValueTreeObjectList ( const juce::ValueTree & parentTree)

◆ ~ValueTreeObjectList()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::~ValueTreeObjectList ( )
override

References objects.

Member Function Documentation

◆ size()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
int engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::size ( ) const

References objects.

Referenced by isEmpty().

◆ isEmpty()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
bool engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::isEmpty ( ) const
noexcept

References size().

◆ operator[]()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType * engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::operator[] ( int idx) const

References objects.

◆ at()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType * engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::at ( int idx)

References objects.

◆ begin() [1/2]

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType ** engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::begin ( )

References objects.

◆ begin() [2/2]

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType *const * engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::begin ( ) const

References objects.

◆ end() [1/2]

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType ** engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::end ( )

References objects.

◆ end() [2/2]

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
ObjectType *const * engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::end ( ) const

References objects.

◆ rebuildObjects()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::rebuildObjects ( )

◆ freeObjects()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::freeObjects ( )

References deleteAllObjects(), and parent.

◆ isSuitableType()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual bool engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::isSuitableType ( const juce::ValueTree & ) const
pure virtual

◆ createNewObject()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual ObjectType * engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::createNewObject ( const juce::ValueTree & )
pure virtual

◆ deleteObject()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::deleteObject ( ObjectType * )
pure virtual

◆ newObjectAdded()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::newObjectAdded ( ObjectType * )
pure virtual

◆ objectRemoved()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::objectRemoved ( ObjectType * )
pure virtual

◆ objectOrderChanged()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
virtual void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::objectOrderChanged ( )
pure virtual

◆ valueTreeChildAdded()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreeChildAdded ( juce::ValueTree & ,
juce::ValueTree & tree )
override

◆ valueTreeChildRemoved()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreeChildRemoved ( juce::ValueTree & exParent,
juce::ValueTree & tree,
int  )
override

◆ valueTreeChildOrderChanged()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreeChildOrderChanged ( juce::ValueTree & tree,
int ,
int  )
override

◆ valueTreePropertyChanged()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreePropertyChanged ( juce::ValueTree & ,
const juce::Identifier &  )
override

◆ valueTreeParentChanged()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreeParentChanged ( juce::ValueTree & )
override

◆ valueTreeRedirected()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::valueTreeRedirected ( juce::ValueTree & )
override

◆ deleteAllObjects()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::deleteAllObjects ( )
protected

References arrayLock, deleteObject(), and objects.

Referenced by freeObjects().

◆ isChildTree()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
bool engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::isChildTree ( juce::ValueTree & v) const
protected

◆ indexOf()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
int engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::indexOf ( const juce::ValueTree & v) const
protectednoexcept

References objects.

Referenced by valueTreeChildRemoved().

◆ sortArray()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
void engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::sortArray ( )
protected

References objects.

Referenced by valueTreeChildOrderChanged().

◆ compareElements()

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
int engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::compareElements ( ObjectType * first,
ObjectType * second ) const

References parent.

Member Data Documentation

◆ objects

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
juce::Array<ObjectType*> engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::objects

◆ arrayLock

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
CriticalSectionType engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::arrayLock

◆ parent

template<typename ObjectType, typename CriticalSectionType = juce::DummyCriticalSection>
juce::ValueTree engine::ValueTreeObjectList< ObjectType, CriticalSectionType >::parent
protected

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