COSA
An Object-Oriented Platform for Arduino Programming
Linkage Class Reference

#include <Linkage.hh>

Inheritance diagram for Linkage:
Inheritance graph
Collaboration diagram for Linkage:
Collaboration graph

Public Member Functions

 Linkage ()
 
Linkagesucc () const
 
Linkagepred () const
 
void attach (Linkage *pred)
 
virtual void on_event (uint8_t type, uint16_t value)
 

Protected Member Functions

void detach ()
 

Protected Attributes

Linkagem_succ
 
Linkagem_pred
 

Detailed Description

The Cosa collection handling class; double linked circulic list.

Acknowledgements

These classes are inspired by the Simula-67 SIMSET Linkage classes.

References

  1. Historical document, http://www.edelweb.fr/Simula/scb-14.pdf

Definition at line 36 of file Linkage.hh.

Constructor & Destructor Documentation

Linkage::Linkage ( )
inline

Construct this linkage and initiate to self reference.

Definition at line 41 of file Linkage.hh.

Member Function Documentation

void Linkage::attach ( Linkage pred)
inline

Attach given linkage as predecessor. Will check and detach if already attached.

Parameters
[in]predlinkage to attach.
Note
atomic

Definition at line 71 of file Linkage.hh.

void Linkage::detach ( )
inlineprotected

Detach this linkage. Unlink from any list.

Note
atomic

Definition at line 100 of file Linkage.hh.

virtual void Event::Handler::on_event ( uint8_t  type,
uint16_t  value 
)
inlinevirtualinherited

Default null event handler. Should be redefined by sub-classes. Called by Event::dispatch().

Parameters
[in]typethe event type.
[in]valuethe event value.

Reimplemented in Menu::RotaryController, Rotary::Dial< T >, AnalogPin, Job, TWI::Slave, ProtoThread, AnalogPins, and Periodic.

Definition at line 107 of file Event.hh.

Linkage* Linkage::pred ( ) const
inline

Return predecessor in sequence.

Returns
predecessor linkage.

Definition at line 60 of file Linkage.hh.

Linkage* Linkage::succ ( ) const
inline

Return successor in sequence.

Returns
successor linkage.

Definition at line 51 of file Linkage.hh.

Member Data Documentation

Linkage* Linkage::m_pred
protected

Definition at line 94 of file Linkage.hh.

Linkage* Linkage::m_succ
protected

Double linked list pointers.

Definition at line 93 of file Linkage.hh.


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