-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcontainerInterface.h
More file actions
28 lines (21 loc) · 971 Bytes
/
containerInterface.h
File metadata and controls
28 lines (21 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Authors: Ryan Cornwall, Christopher Son, Alex McElroy, Brandon Mattingly, and John Coffey
#ifndef _CONTAINER
#define _CONTAINER
class BADINDEX {};
template <class T>
class containerInterface
{
public:
virtual containerInterface <T>& pushFront(T) =0;
virtual containerInterface <T>& pushBack(T) =0;
virtual containerInterface <T>& popFront(T&) =0;
virtual containerInterface <T>& popBack(T&) =0;
virtual int getSize() =0;
virtual bool isFull() =0;
virtual bool isEmpty() =0;
virtual T front() =0;
virtual T back() =0;
virtual T& operator [](int) =0;
virtual void erase() =0;
};
#endif