QueueList Library For Arduino Author: Efstathios Chatzikyriakidis Contact: contact@efxa.org
Library was updated for Arduino 1.0
1.0 2010-09-28 - Efstathios Chatzikyriakidis - added exit(), blink(): error reporting and handling methods.
1.0 2010-09-28 - Efstathios Chatzikyriakidis - added exit(), blink(): error reporting and handling methods.
1.0 2010-09-25 - Alexander Brevig - added setPrinter(): indirectly reference a Serial object.
1.0 2010-09-20 - Efstathios Chatzikyriakidis - initial release of the library.
QueueList is a library implementing a generic, dynamic queue (linked list version) for the Arduino.
It is created to help adding FIFO (First In - First Out) Abstract Data Structure to a program for any use.
QueueList library is part of the "Data Structures & Algorithms" libraries.
Download here: QueueList.zip
Put the "QueueList" directory in "libraries" directory.
In the Arduino IDE, create a new sketch and select from the menubar "Sketch->Import Library->QueueList".
Once the library is imported, an "#include <QueueList.h>" line will appear at the top of your Sketch.
Replace "T" with the data type you want to use.
QueueList <T> queue;
Create instance (object) of a QueueList class.
Replace "T" with the data type you want to use.
Push an item with data type "T" to the queue.
Pop an item with data type "T" from the queue.
Get an item with data type "T" from the queue.
Check if the queue is empty.
Get the number of items in the queue.
Sets the printer of the queue.
Manage strings by using a generic, dynamic queue data structure.
QueueList is a class. Therefore to use multiple queues, you must create an instance for each of them.
Last Modified: February 11, 2012, at 10:58 AM
By: efxa