26 lines
642 B
C++
26 lines
642 B
C++
#ifndef __LINKEDLIST_H__
|
|
#define __LINKEDLIST_H__
|
|
#include <iostream>
|
|
#include "LinkedListInterface.h"
|
|
#include "node.h"
|
|
|
|
using namespace std;
|
|
|
|
class linkedlist : public LinkedListInterface {
|
|
public:
|
|
linkedlist();
|
|
~linkedlist();
|
|
node* head;
|
|
bool has_a(int value);
|
|
bool is_it_zero(int value);
|
|
void insertHead(int value);
|
|
void insertTail(int value);
|
|
void insertAfter(int value, int insertionNode);
|
|
void remove(int value);
|
|
void clear();
|
|
int at(int index);
|
|
int size();
|
|
friend ostream & operator<<(ostream & os, linkedlist & f);
|
|
};
|
|
#endif
|