Public Member Functions | List of all members
Processor::Iterator< SubTypeProcessor > Class Template Reference

A iterator over all child processors. More...

Public Member Functions

SubTypeProcessor * getNextProcessor ()
 returns the next processor. More...
 
const SubTypeProcessor * getNextProcessor () const
 returns a const pointer to the next processor. More...
 
 Iterator (const Processor *root, bool useHierarchy=false)
 Creates a new iterator. More...
 

Detailed Description

template<class SubTypeProcessor = Processor>
class hise::Processor::Iterator< SubTypeProcessor >

A iterator over all child processors.

You don't have to use a inherited class of Processor for the template argument, it works with all classes.

Constructor & Destructor Documentation

Iterator ( const Processor root,
bool  useHierarchy = false 
)
inline

Creates a new iterator.

Simply pass in the Processor which children you want to iterate.

It creates a list of all child processors (children before siblings). Call getNextProcessor() to get the next child processor.

Member Function Documentation

SubTypeProcessor* getNextProcessor ( )
inline

returns the next processor.

If a Processor gets deleted between creating the Iterator and calling this method, it will safely return nullptr. (in this case the remaining processors are not iterated, but this is acceptable for the edge case.

const SubTypeProcessor* getNextProcessor ( ) const
inline

returns a const pointer to the next processor.

If a Processor gets deleted between creating the Iterator and calling this method, it will safely return nullptr. (in this case the remaining processors are not iterated, but this is acceptable for the edge case.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.