My Project
|
Doubly Linked List class. Available member functions include default constructor, insert, printer and reverse. More...
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.
|
inline |
Insert an element into the list.
[in] | data | value to be inserted |
|
inline |
Print the list.
[in] | sep | separator string |