My Project
|
Doubly Linked List class. Available member functions include default constructor, insert, printer and reverse. More...
#include <DSA.h>
Public Member Functions | |
DoublyLinkedList () | |
Construct a new Doubly Linked List object. | |
void | insert (ll data) |
Insert an element into the list. More... | |
void | printer (string sep) |
Print the list. More... | |
void | reverse () |
Reverse the list. | |
Public Attributes | |
DoublyLinkedListNode * | head |
pointer to the head | |
DoublyLinkedListNode * | tail |
pointer to the tail | |
Doubly Linked List class. Available member functions include default constructor, insert, printer and reverse.
void DoublyLinkedList::insert | ( | ll | data | ) |
Insert an element into the list.
[in] | data | value to be inserted |
void DoublyLinkedList::printer | ( | string | sep = ", " | ) |
Print the list.
[in] | sep | separator string |