summaryrefslogtreecommitdiff
path: root/algo1w3/IntDoubleLink.h
blob: e3cb385b6c3f0c2a742eb5f2591776e54efd104d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
class IntDoubleLink {
private:
	IntDoubleLink();
	IntDoubleLink(int, IntDoubleLink*, IntDoubleLink*);

public:
	virtual ~IntDoubleLink();

public:
	virtual IntDoubleLink *getPrev();
	virtual IntDoubleLink *getNext();

private:
	int value = 0;
	IntDoubleLink* next = nullptr;
	IntDoubleLink* prev = nullptr;

private:
	friend class IntDoubleLinkedList;
};