openshot-audio  0.1.6
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ValueTree::SharedObject Class Reference
Inheritance diagram for ValueTree::SharedObject:
ReferenceCountedObject

Classes

class  AddOrRemoveChildAction
 
class  MoveChildAction
 
class  SetPropertyAction
 

Public Types

typedef
ReferenceCountedObjectPtr
< SharedObject
Ptr
 

Public Member Functions

 SharedObject (const Identifier &t) noexcept
 
 SharedObject (const SharedObject &other)
 
 ~SharedObject ()
 
template<typename Method >
void callListeners (Method method, ValueTree &tree) const
 
template<typename Method , typename ParamType >
void callListeners (Method method, ValueTree &tree, ParamType &param2) const
 
template<typename Method , typename ParamType1 , typename ParamType2 >
void callListeners (Method method, ValueTree &tree, ParamType1 &param2, ParamType2 &param3) const
 
void sendPropertyChangeMessage (const Identifier &property)
 
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 *const undoManager)
 
bool hasProperty (const Identifier &name) const noexcept
 
void removeProperty (const Identifier &name, UndoManager *const undoManager)
 
void removeAllProperties (UndoManager *const undoManager)
 
void copyPropertiesFrom (const SharedObject &source, UndoManager *const 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 *const possibleParent) const noexcept
 
int indexOf (const ValueTree &child) const noexcept
 
void addChild (SharedObject *child, int index, UndoManager *const undoManager)
 
void removeChild (const int childIndex, UndoManager *const undoManager)
 
void removeAllChildren (UndoManager *const undoManager)
 
void moveChild (int currentIndex, int newIndex, UndoManager *undoManager)
 
void reorderChildren (const OwnedArray< ValueTree > &newOrder, UndoManager *undoManager)
 
bool isEquivalentTo (const SharedObject &other) const
 
XmlElementcreateXml () const
 
void writeToStream (OutputStream &output) const
 
- Public Member Functions inherited from ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 

Static Public Member Functions

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

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject ()
 
virtual ~ReferenceCountedObject ()
 
void resetReferenceCount () noexcept
 

Member Typedef Documentation

Constructor & Destructor Documentation

ValueTree::SharedObject::SharedObject ( const Identifier t)
inlineexplicitnoexcept
ValueTree::SharedObject::SharedObject ( const SharedObject other)
inline
ValueTree::SharedObject::~SharedObject ( )
inline

Member Function Documentation

void ValueTree::SharedObject::addChild ( SharedObject child,
int  index,
UndoManager *const  undoManager 
)
inline
template<typename Method >
void ValueTree::SharedObject::callListeners ( Method  method,
ValueTree tree 
) const
inline
template<typename Method , typename ParamType >
void ValueTree::SharedObject::callListeners ( Method  method,
ValueTree tree,
ParamType &  param2 
) const
inline
template<typename Method , typename ParamType1 , typename ParamType2 >
void ValueTree::SharedObject::callListeners ( Method  method,
ValueTree tree,
ParamType1 &  param2,
ParamType2 &  param3 
) const
inline
void ValueTree::SharedObject::copyPropertiesFrom ( const SharedObject source,
UndoManager *const  undoManager 
)
inline
XmlElement* ValueTree::SharedObject::createXml ( ) const
inline
ValueTree ValueTree::SharedObject::getChildWithName ( const Identifier typeToMatch) const
inline
ValueTree ValueTree::SharedObject::getChildWithProperty ( const Identifier propertyName,
const var propertyValue 
) const
inline
ValueTree ValueTree::SharedObject::getOrCreateChildWithName ( const Identifier typeToMatch,
UndoManager undoManager 
)
inline
bool ValueTree::SharedObject::hasProperty ( const Identifier name) const
inlinenoexcept
int ValueTree::SharedObject::indexOf ( const ValueTree child) const
inlinenoexcept
bool ValueTree::SharedObject::isAChildOf ( const SharedObject *const  possibleParent) const
inlinenoexcept
bool ValueTree::SharedObject::isEquivalentTo ( const SharedObject other) const
inline
void ValueTree::SharedObject::moveChild ( int  currentIndex,
int  newIndex,
UndoManager undoManager 
)
inline
void ValueTree::SharedObject::removeAllChildren ( UndoManager *const  undoManager)
inline
void ValueTree::SharedObject::removeAllProperties ( UndoManager *const  undoManager)
inline
void ValueTree::SharedObject::removeChild ( const int  childIndex,
UndoManager *const  undoManager 
)
inline
void ValueTree::SharedObject::removeProperty ( const Identifier name,
UndoManager *const  undoManager 
)
inline
void ValueTree::SharedObject::reorderChildren ( const OwnedArray< ValueTree > &  newOrder,
UndoManager undoManager 
)
inline
void ValueTree::SharedObject::sendChildAddedMessage ( ValueTree  child)
inline
void ValueTree::SharedObject::sendChildOrderChangedMessage ( int  oldIndex,
int  newIndex 
)
inline
void ValueTree::SharedObject::sendChildRemovedMessage ( ValueTree  child,
int  index 
)
inline
void ValueTree::SharedObject::sendParentChangeMessage ( )
inline
void ValueTree::SharedObject::sendPropertyChangeMessage ( const Identifier property)
inline
void ValueTree::SharedObject::setProperty ( const Identifier name,
const var newValue,
UndoManager *const  undoManager 
)
inline
static void ValueTree::SharedObject::writeObjectToStream ( OutputStream output,
const SharedObject *const  object 
)
inlinestatic
void ValueTree::SharedObject::writeToStream ( OutputStream output) const
inline

Member Data Documentation

ReferenceCountedArray<SharedObject> ValueTree::SharedObject::children
SharedObject* ValueTree::SharedObject::parent
NamedValueSet ValueTree::SharedObject::properties
const Identifier ValueTree::SharedObject::type
SortedSet<ValueTree*> ValueTree::SharedObject::valueTreesWithListeners

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