|
template<typename VarType > |
void | tracktion::engine::convertPropertyToType (juce::ValueTree &v, const juce::Identifier &id) |
| Ensures a property is a given type which can avoid having to parse a string every time it is read after loading from XML.
|
|
template<typename Type > |
bool | tracktion::engine::matchesAnyOf (const Type &needle, const std::initializer_list< Type > &haystack) |
| Returns true if the needle is found in the haystack.
|
|
template<typename Type , typename UnaryFunction > |
void | tracktion::engine::forEachItem (const juce::Array< Type * > &items, const UnaryFunction &fn) |
| Calls a function object on each item in an array.
|
|
template<typename... Others> |
void | tracktion::engine::addValueTreeProperties (juce::ValueTree &v, const juce::Identifier &name, const juce::var &value, Others &&... others) |
|
template<typename... Properties> |
juce::ValueTree | tracktion::engine::createValueTree (const juce::Identifier &name, Properties &&... properties) |
|
juce::Array< juce::ValueTree > & | tracktion::engine::removeInvalidValueTrees (juce::Array< juce::ValueTree > &trees) |
| Strips out any invalid trees from the array.
|
|
juce::Array< juce::ValueTree > | tracktion::engine::getTreesOfType (const juce::Array< juce::ValueTree > &trees, const juce::Identifier &type) |
| Returns a new array with any trees without the given type removed.
|
|
void | tracktion::engine::getChildTreesRecursive (juce::Array< juce::ValueTree > &result, const juce::ValueTree &tree) |
|
void | tracktion::engine::renamePropertyRecursive (juce::ValueTree &tree, const juce::Identifier &oldName, const juce::Identifier &newName, juce::UndoManager *um) |
|