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

Public Member Functions

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

Detailed Description

template<class T>
class LinkedList< T >

Definition at line 30 of file LinkedList.h.

Member Function Documentation

◆ head()

T * 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

Definition at line 40 of file LinkedList.h.

◆ enqueue() [1/2]

void enqueue ( T *  entry)

Add an element to the tail of the list.

Parameters
entryNew element to add

Definition at line 50 of file LinkedList.h.

◆ dequeue()

T * 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

Definition at line 60 of file LinkedList.h.

◆ enqueue() [2/2]

void enqueue ( LinkEntry entry)
inherited

Add an element to the tail of the list.

Parameters
entryNew element to add

◆ remove()

void remove ( LinkEntry entry)
inherited

Remove the specified element if it is in the list.

Parameters
entryElement to remove from the list