COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Linkage.hh>
Public Member Functions | |
Linkage () | |
Linkage * | succ () const |
Linkage * | pred () const |
void | attach (Linkage *pred) |
virtual void | on_event (uint8_t type, uint16_t value) |
Protected Member Functions | |
void | detach () |
Protected Attributes | |
Linkage * | m_succ |
Linkage * | m_pred |
The Cosa collection handling class; double linked circulic list.
These classes are inspired by the Simula-67 SIMSET Linkage classes.
Definition at line 36 of file Linkage.hh.
|
inline |
Construct this linkage and initiate to self reference.
Definition at line 41 of file Linkage.hh.
|
inline |
Attach given linkage as predecessor. Will check and detach if already attached.
[in] | pred | linkage to attach. |
Definition at line 71 of file Linkage.hh.
|
inlineprotected |
|
inlinevirtualinherited |
Default null event handler. Should be redefined by sub-classes. Called by Event::dispatch().
[in] | type | the event type. |
[in] | value | the event value. |
Reimplemented in Menu::RotaryController, Rotary::Dial< T >, AnalogPin, Job, TWI::Slave, ProtoThread, AnalogPins, and Periodic.
|
inline |
Return predecessor in sequence.
Definition at line 60 of file Linkage.hh.
|
inline |
|
protected |
Definition at line 94 of file Linkage.hh.
|
protected |
Double linked list pointers.
Definition at line 93 of file Linkage.hh.