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

#include <Linkage.hh>

Inheritance diagram for Head:
Inheritance graph
Collaboration diagram for Head:
Collaboration graph

Public Member Functions

 Head ()
 
int available ()
 
bool is_empty () const
 
Linkagesucc () const
 
Linkagepred () const
 
void attach (Linkage *pred)
 

Protected Member Functions

void detach ()
 

Protected Attributes

Linkagem_succ
 
Linkagem_pred
 

Detailed Description

Definition at line 132 of file Linkage.hh.

Constructor & Destructor Documentation

Head::Head ( )
inline

Construct a double linked list queue head.

Definition at line 137 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.

int Head::available ( )
inline

Return number of elements in double linked list.

Returns
elements.

Definition at line 143 of file Linkage.hh.

void Linkage::detach ( )
inlineprotectedinherited

Detach this linkage. Unlink from any list.

Note
atomic

Definition at line 100 of file Linkage.hh.

bool Head::is_empty ( ) const
inline

Return true(1) if the queue is empty otherwise false(0).

Returns
bool.

Definition at line 155 of file Linkage.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: