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

#include <Linkage.hh>

Inheritance diagram for Link:
Inheritance graph
Collaboration diagram for Link:
Collaboration graph

Public Member Functions

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

Protected Attributes

Linkagem_succ
 
Linkagem_pred
 

Detailed Description

Definition at line 115 of file Linkage.hh.

Constructor & Destructor Documentation

Link::Link ( )
inline

Construct a link.

Definition at line 120 of file Linkage.hh.

Member Function Documentation

void Linkage::attach ( Linkage pred)
inlineinherited

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 Link::detach ( )
inline

Detach this link. Unlink from any list.

Definition at line 125 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
inlineinherited

Return predecessor in sequence.

Returns
predecessor linkage.

Definition at line 60 of file Linkage.hh.

Linkage* Linkage::succ ( ) const
inlineinherited

Return successor in sequence.

Returns
successor linkage.

Definition at line 51 of file Linkage.hh.

Member Data Documentation

Linkage* Linkage::m_pred
protectedinherited

Definition at line 94 of file Linkage.hh.

Linkage* Linkage::m_succ
protectedinherited

Double linked list pointers.

Definition at line 93 of file Linkage.hh.


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