Gin
Public Member Functions | Static Public Attributes | List of all members
ValueTreeObject Class Reference

Mirrors a ValueTree in Objects. More...

Inherits juce::ValueTree::Listener.

Public Member Functions

 ValueTreeObject (const juce::ValueTree &state)
 
juce::ValueTree & getState ()
 
const juce::OwnedArray< ValueTreeObject > & getChildren () const
 
template<class TargetClass >
TargetClass * findParentOfType () const
 
template<class TargetClass >
juce::Array< TargetClass * > findChildrenOfClass () const
 
template<class TargetClass >
int countChildrenOfClass () const
 
template<class TargetClass >
TargetClass * findChildOfClass (int idx) const
 

Static Public Attributes

static std::function< ValueTreeObject *(const juce::Identifier &, const juce::ValueTree &)> factory
 

Detailed Description

Mirrors a ValueTree in Objects.

Constructor & Destructor Documentation

◆ ValueTreeObject()

ValueTreeObject::ValueTreeObject ( const juce::ValueTree &  state)

Member Function Documentation

◆ getState()

juce::ValueTree& ValueTreeObject::getState ( )

◆ getChildren()

const juce::OwnedArray<ValueTreeObject>& ValueTreeObject::getChildren ( ) const

◆ findParentOfType()

template<class TargetClass >
TargetClass* ValueTreeObject::findParentOfType ( ) const

◆ findChildrenOfClass()

template<class TargetClass >
juce::Array<TargetClass*> ValueTreeObject::findChildrenOfClass ( ) const

◆ countChildrenOfClass()

template<class TargetClass >
int ValueTreeObject::countChildrenOfClass ( ) const

◆ findChildOfClass()

template<class TargetClass >
TargetClass* ValueTreeObject::findChildOfClass ( int  idx) const

Member Data Documentation

◆ factory

std::function<ValueTreeObject* (const juce::Identifier&, const juce::ValueTree&)> ValueTreeObject::factory
static

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