Mbed OS Reference
Loading...
Searching...
No Matches
LinkedListBase Class Reference
Inheritance diagram for LinkedListBase:
LinkedList< events::TaskBase > LinkedList< T >

Public Member Functions

LinkEntryhead ()
 Return the element at the head of the list. More...
 
void enqueue (LinkEntry *entry)
 Add an element to the tail of the list. More...
 
LinkEntrydequeue ()
 Remove the element at the head of the list. More...
 
void remove (LinkEntry *entry)
 Remove the specified element if it is in the list. More...
 

Detailed Description

Definition at line 28 of file LinkedListBase.h.

Member Function Documentation

◆ head()

LinkEntry * head ( )

Return the element at the head of the list.

Returns
The element at the head of the list or NULL if the list is empty

◆ enqueue()

void enqueue ( LinkEntry entry)

Add an element to the tail of the list.

Parameters
entryNew element to add

◆ dequeue()

LinkEntry * dequeue ( )

Remove the element at the head of the list.

Returns
The element at the head of the list or NULL if the list is empty

◆ remove()

void remove ( LinkEntry entry)

Remove the specified element if it is in the list.

Parameters
entryElement to remove from the list