-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vector.h
55 lines (31 loc) · 975 Bytes
/
Vector.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Vector.h - Vector is a hack to resolve ATmega328p not having a full C++11 STL implementation
* On any system which supports it you might as well #include <vector> and you will get almost the same results
* except for backCopy()... this was basically an early morning hack... or was it late night?
* Created: 12/8/2019 6:00:49 PM
* Author: Tristan Callahan
*/
#ifndef VECTOR_H_
#define VECTOR_H_
#include "Event.h"
namespace Vector
{
class Vector {
private:
constexpr static int max {10};
TaskManager::Event* list[max];
public:
Vector () {};
boolean empty();
TaskManager::Event* back();
TaskManager::Event backCopy();
void pop_back();
void push_back(TaskManager::Event e);
static uint8_t type(TaskManager::Event* e);
int size();
void prioritize();
TaskManager::Event* operator[](int n);
~Vector() {};
};
}
#endif /* VECTOR_H_ */