-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjPosArrayList.h
More file actions
35 lines (27 loc) · 775 Bytes
/
objPosArrayList.h
File metadata and controls
35 lines (27 loc) · 775 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
28
29
30
31
32
33
34
35
#ifndef OBJPOS_ARRAYLIST_H
#define OBJPOS_ARRAYLIST_H
#define ARRAY_MAX_CAP 200
#include "objPos.h"
class objPosArrayList
{
private:
objPos* aList;
int listSize;
int arrayCapacity;
public:
objPosArrayList();
~objPosArrayList();
objPosArrayList(objPosArrayList& copy);
objPosArrayList& operator=(const objPosArrayList& copy);
int getSize() const;
void insertHead(objPos thisPos);
void insertTail(objPos thisPos);
void insertTails(int num);
void removeHead();
void removeTail();
objPos getHeadElement() const;
objPos getTailElement() const;
objPos getElement(int index) const;
void removeElement(int index);
};
#endif