All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
Processor::Iterator< SubTypeProcessor > Class Template Reference

Public Member Functions

 Iterator (Processor *root_, bool useHierarchy=false)
 
SubTypeProcessor * getNextProcessor ()
 
const SubTypeProcessor * getNextProcessor () const
 

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 ( 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.