#include <AH/Containers/Updatable.hpp>
A super class for object that have to be updated regularly.
All instances of this class are kept in a linked list, so it's easy to iterate over all of them to update them.
Definition at line 169 of file Updatable.hpp.
Main initialization and updating methods | |
| virtual void | begin ()=0 |
| Initialize this updatable. | |
| virtual void | update ()=0 |
| Update this updatable. | |
| static void | beginAll () |
| Begin all enabled instances of this class. | |
| static void | updateAll () |
| Update all enabled instances of this class. | |
|
pure virtual |
Initialize this updatable.
Implemented in AudioVULEDs< N >, FortySevenEffectsMIDI_Interface< MidiInterface >, GenericBLEMIDI_Interface< Backend >, GenericBLEMIDI_Interface< BLEMIDIBackend >, GenericUSBMIDI_Interface< Backend >, GenericUSBMIDI_Interface< USBDeviceMIDIBackend >, GenericUSBMIDI_Interface< USBHostMIDIBackend< 512 > >, GenericUSBMIDI_Interface< USBHostMIDIBackend< 64 > >, MIDI_Interface, SerialDebugMIDI_Interface< T >, SerialDebugMIDI_Interface< decltype(Serial)>, SerialDebugMIDI_Interface< HardwareSerial >, SerialDebugMIDI_Interface< SoftwareSerial >, SerialMIDI_Interface< S >, SerialMIDI_Interface< decltype(Serial)>, SerialMIDI_Interface< HardwareSerial >, and SerialMIDI_Interface< SoftwareSerial >.
|
pure virtual |
Update this updatable.
Implemented in AudioVULEDs< N >, FortySevenEffectsMIDI_Interface< MidiInterface >, GenericBLEMIDI_Interface< Backend >, GenericBLEMIDI_Interface< BLEMIDIBackend >, GenericUSBMIDI_Interface< Backend >, GenericUSBMIDI_Interface< USBDeviceMIDIBackend >, GenericUSBMIDI_Interface< USBHostMIDIBackend< 512 > >, GenericUSBMIDI_Interface< USBHostMIDIBackend< 64 > >, MIDI_Interface, StreamDebugMIDI_Interface, and StreamMIDI_Interface.
|
inlinestatic |
Begin all enabled instances of this class.
Definition at line 182 of file Updatable.hpp.
|
inlinestatic |
Update all enabled instances of this class.
Definition at line 186 of file Updatable.hpp.