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
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::ValueTree::SharedObject Class Referencefinal
Inheritance diagram for juce::ValueTree::SharedObject:
juce::ReferenceCountedObject

Classes

struct  AddOrRemoveChildAction
 
struct  MoveChildAction
 
struct  SetPropertyAction
 

Public Types

using Ptr = ReferenceCountedObjectPtr< SharedObject >
 

Public Member Functions

 SharedObject (const Identifier &t) noexcept
 
 SharedObject (const SharedObject &other)
 
SharedObjectoperator= (const SharedObject &)=delete
 
SharedObjectgetRoot () noexcept
 
template<typename Function >
void callListeners (ValueTree::Listener *listenerToExclude, Function fn) const
 
template<typename Function >
void callListenersForAllParents (ValueTree::Listener *listenerToExclude, Function fn) const
 
void sendPropertyChangeMessage (const Identifier &property, ValueTree::Listener *listenerToExclude=nullptr)
 
void sendChildAddedMessage (ValueTree child)
 
void sendChildRemovedMessage (ValueTree child, int index)
 
void sendChildOrderChangedMessage (int oldIndex, int newIndex)
 
void sendParentChangeMessage ()
 
void setProperty (const Identifier &name, const var &newValue, UndoManager *undoManager, ValueTree::Listener *listenerToExclude=nullptr)
 
bool hasProperty (const Identifier &name) const noexcept
 
void removeProperty (const Identifier &name, UndoManager *undoManager)
 
void removeAllProperties (UndoManager *undoManager)
 
void copyPropertiesFrom (const SharedObject &source, UndoManager *undoManager)
 
ValueTree getChildWithName (const Identifier &typeToMatch) const
 
ValueTree getOrCreateChildWithName (const Identifier &typeToMatch, UndoManager *undoManager)
 
ValueTree getChildWithProperty (const Identifier &propertyName, const var &propertyValue) const
 
bool isAChildOf (const SharedObject *possibleParent) const noexcept
 
int indexOf (const ValueTree &child) const noexcept
 
void addChild (SharedObject *child, int index, UndoManager *undoManager)
 
void removeChild (int childIndex, UndoManager *undoManager)
 
void removeAllChildren (UndoManager *undoManager)
 
void moveChild (int currentIndex, int newIndex, UndoManager *undoManager)
 
void reorderChildren (const OwnedArray< ValueTree > &newOrder, UndoManager *undoManager)
 
bool isEquivalentTo (const SharedObject &other) const noexcept
 
XmlElementcreateXml () const
 
void writeToStream (OutputStream &output) const
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 Increments the object's reference count.
 
void decReferenceCount () noexcept
 Decreases the object's reference count.
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count.
 
int getReferenceCount () const noexcept
 Returns the object's current reference count.
 

Static Public Member Functions

static void writeObjectToStream (OutputStream &output, const SharedObject *object)
 

Public Attributes

const Identifier type
 
NamedValueSet properties
 
ReferenceCountedArray< SharedObjectchildren
 
SortedSet< ValueTree * > valueTreesWithListeners
 
SharedObjectparent
 

Additional Inherited Members

- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject ()=default
 Creates the reference-counted object (with an initial ref count of zero).
 
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count.
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count.
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count.
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count.
 
virtual ~ReferenceCountedObject ()
 Destructor.
 
void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object.
 

Detailed Description

Definition at line 29 of file juce_ValueTree.cpp.

Member Typedef Documentation

◆ Ptr

Definition at line 32 of file juce_ValueTree.cpp.

Constructor & Destructor Documentation

◆ SharedObject() [1/2]

juce::ValueTree::SharedObject::SharedObject ( const Identifier t)
explicitnoexcept

Definition at line 34 of file juce_ValueTree.cpp.

◆ SharedObject() [2/2]

juce::ValueTree::SharedObject::SharedObject ( const SharedObject other)

Definition at line 36 of file juce_ValueTree.cpp.

◆ ~SharedObject()

juce::ValueTree::SharedObject::~SharedObject ( )
override

Definition at line 49 of file juce_ValueTree.cpp.

Member Function Documentation

◆ addChild()

void juce::ValueTree::SharedObject::addChild ( SharedObject child,
int  index,
UndoManager undoManager 
)

Definition at line 247 of file juce_ValueTree.cpp.

◆ callListeners()

template<typename Function >
void juce::ValueTree::SharedObject::callListeners ( ValueTree::Listener listenerToExclude,
Function  fn 
) const

Definition at line 68 of file juce_ValueTree.cpp.

◆ callListenersForAllParents()

template<typename Function >
void juce::ValueTree::SharedObject::callListenersForAllParents ( ValueTree::Listener listenerToExclude,
Function  fn 
) const

Definition at line 91 of file juce_ValueTree.cpp.

◆ copyPropertiesFrom()

void juce::ValueTree::SharedObject::copyPropertiesFrom ( const SharedObject source,
UndoManager undoManager 
)

Definition at line 194 of file juce_ValueTree.cpp.

◆ createXml()

XmlElement * juce::ValueTree::SharedObject::createXml ( ) const

Definition at line 367 of file juce_ValueTree.cpp.

◆ getChildWithName()

ValueTree juce::ValueTree::SharedObject::getChildWithName ( const Identifier typeToMatch) const

Definition at line 204 of file juce_ValueTree.cpp.

◆ getChildWithProperty()

ValueTree juce::ValueTree::SharedObject::getChildWithProperty ( const Identifier propertyName,
const var propertyValue 
) const

Definition at line 224 of file juce_ValueTree.cpp.

◆ getOrCreateChildWithName()

ValueTree juce::ValueTree::SharedObject::getOrCreateChildWithName ( const Identifier typeToMatch,
UndoManager undoManager 
)

Definition at line 213 of file juce_ValueTree.cpp.

◆ getRoot()

SharedObject & juce::ValueTree::SharedObject::getRoot ( )
noexcept

Definition at line 62 of file juce_ValueTree.cpp.

◆ hasProperty()

bool juce::ValueTree::SharedObject::hasProperty ( const Identifier name) const
noexcept

Definition at line 156 of file juce_ValueTree.cpp.

◆ indexOf()

int juce::ValueTree::SharedObject::indexOf ( const ValueTree child) const
noexcept

Definition at line 242 of file juce_ValueTree.cpp.

◆ isAChildOf()

bool juce::ValueTree::SharedObject::isAChildOf ( const SharedObject possibleParent) const
noexcept

Definition at line 233 of file juce_ValueTree.cpp.

◆ isEquivalentTo()

bool juce::ValueTree::SharedObject::isEquivalentTo ( const SharedObject other) const
noexcept

Definition at line 352 of file juce_ValueTree.cpp.

◆ moveChild()

void juce::ValueTree::SharedObject::moveChild ( int  currentIndex,
int  newIndex,
UndoManager undoManager 
)

Definition at line 312 of file juce_ValueTree.cpp.

◆ removeAllChildren()

void juce::ValueTree::SharedObject::removeAllChildren ( UndoManager undoManager)

Definition at line 306 of file juce_ValueTree.cpp.

◆ removeAllProperties()

void juce::ValueTree::SharedObject::removeAllProperties ( UndoManager undoManager)

Definition at line 175 of file juce_ValueTree.cpp.

◆ removeChild()

void juce::ValueTree::SharedObject::removeChild ( int  childIndex,
UndoManager undoManager 
)

Definition at line 288 of file juce_ValueTree.cpp.

◆ removeProperty()

void juce::ValueTree::SharedObject::removeProperty ( const Identifier name,
UndoManager undoManager 
)

Definition at line 161 of file juce_ValueTree.cpp.

◆ reorderChildren()

void juce::ValueTree::SharedObject::reorderChildren ( const OwnedArray< ValueTree > &  newOrder,
UndoManager undoManager 
)

Definition at line 335 of file juce_ValueTree.cpp.

◆ sendChildAddedMessage()

void juce::ValueTree::SharedObject::sendChildAddedMessage ( ValueTree  child)

Definition at line 103 of file juce_ValueTree.cpp.

◆ sendChildOrderChangedMessage()

void juce::ValueTree::SharedObject::sendChildOrderChangedMessage ( int  oldIndex,
int  newIndex 
)

Definition at line 115 of file juce_ValueTree.cpp.

◆ sendChildRemovedMessage()

void juce::ValueTree::SharedObject::sendChildRemovedMessage ( ValueTree  child,
int  index 
)

Definition at line 109 of file juce_ValueTree.cpp.

◆ sendParentChangeMessage()

void juce::ValueTree::SharedObject::sendParentChangeMessage ( )

Definition at line 121 of file juce_ValueTree.cpp.

◆ sendPropertyChangeMessage()

void juce::ValueTree::SharedObject::sendPropertyChangeMessage ( const Identifier property,
ValueTree::Listener listenerToExclude = nullptr 
)

Definition at line 97 of file juce_ValueTree.cpp.

◆ setProperty()

void juce::ValueTree::SharedObject::setProperty ( const Identifier name,
const var newValue,
UndoManager undoManager,
ValueTree::Listener listenerToExclude = nullptr 
)

Definition at line 132 of file juce_ValueTree.cpp.

◆ writeObjectToStream()

static void juce::ValueTree::SharedObject::writeObjectToStream ( OutputStream output,
const SharedObject object 
)
static

Definition at line 396 of file juce_ValueTree.cpp.

◆ writeToStream()

void juce::ValueTree::SharedObject::writeToStream ( OutputStream output) const

Definition at line 379 of file juce_ValueTree.cpp.

Member Data Documentation

◆ children

ReferenceCountedArray<SharedObject> juce::ValueTree::SharedObject::children

Definition at line 570 of file juce_ValueTree.cpp.

◆ parent

SharedObject* juce::ValueTree::SharedObject::parent

Definition at line 572 of file juce_ValueTree.cpp.

◆ properties

NamedValueSet juce::ValueTree::SharedObject::properties

Definition at line 569 of file juce_ValueTree.cpp.

◆ type

const Identifier juce::ValueTree::SharedObject::type

Definition at line 568 of file juce_ValueTree.cpp.

◆ valueTreesWithListeners

SortedSet<ValueTree*> juce::ValueTree::SharedObject::valueTreesWithListeners

Definition at line 571 of file juce_ValueTree.cpp.


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