-
Notifications
You must be signed in to change notification settings - Fork 0
/
PointArray.h
34 lines (24 loc) · 733 Bytes
/
PointArray.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
#ifndef SEGVECTORS_H_
#define SEGVECTORS_H_
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include "Point.h"
using namespace std;
namespace Machine {
class PointArray : public vector<Point> {
private:
bool multiplication_is_safe(unsigned long a, unsigned long b);
size_t highestOneBitPosition(unsigned long a);
public:
void Copy(PointArray);
std::string GetStatus();
unsigned long Length();
unsigned long NumberOfPossiblePaths();
unsigned long ShortestPathLength();
double MeasureOfQuality();
double RelativeQuality(Point,Point);
};
} /* namespace Machine */
#endif /* SEGVECTORS_H_ */