-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIterator.h
63 lines (50 loc) · 1.38 KB
/
Iterator.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
56
57
58
59
60
61
62
63
//
// Created by micha on 2021/11/08.
//
#ifndef ITERATOR_H
#define ITERATOR_H
#include <vector>
class satellite;
using namespace std;
/// This class is the Iterator of the satellities
///
///It has a vector of object type satellite, and an integer which indicates the position of the Iterator
class Iterator
{
private:
vector<satellite *> satellites;
int pos;
public:
/// This is the Iterator Constructor.
///
///
Iterator(vector<satellite *>);
/// This is the first function.
///
///This used to find the first element of the vector
/// @return object of type satellite
satellite *first();
/// This is the next function.
///
///This used to find the next element of the vector
/// @return object of type satellite
satellite *next();
/// This is the current function.
///
///This used to find the current element of the vector
/// @return object of type satellite
satellite *current();
/// This is the done function.
///
///This used to determine if the vector has reached the end of the vector
/// @return bool value
bool done();
/// This is the update function.
///
///This used to update the system_online of the satellite
/// @param tf a bool value passed in.
/// @return nothing
void update(bool);
vector<satellite *>getSats();
};
#endif //ITERATOR_H