summaryrefslogtreecommitdiff
path: root/algo1w1/NAWOrderedArray.h
blob: f21bb1ad7ed5c7b3f4d1f5bcd6f14dc936d2bd05 (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 NAW;

class NAWOrderedArray {
public:
	NAWOrderedArray();
	virtual ~NAWOrderedArray();

public:
	virtual int find(const NAW&) const;
	virtual int add(const NAW&);
	virtual int remove(const NAW&);
	virtual int replace(const NAW& cOld, const NAW& cNew);

public:
	virtual void showAll() const;

private:
	const NAW* _nawCollection[20] = { nullptr };
	unsigned _nawCollectionSize = 0;
};