17 lines
377 B
C++
17 lines
377 B
C++
#pragma once
|
|
#include "ExtendedListItem.h"
|
|
|
|
class DoublyLinkedList {
|
|
private:
|
|
public:
|
|
DoublyLinkedList();
|
|
|
|
ExtendedListItem *head;
|
|
ExtendedListItem *tail;
|
|
void append(DoublyLinkedList *appendingList);
|
|
void splice(DoublyLinkedList *insertingList, int position);
|
|
void insertAtStart(int key);
|
|
void insertAtEnd(int key);
|
|
void deleteItem(int key);
|
|
void print();
|
|
}; |