-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathByteVector.h
More file actions
35 lines (31 loc) · 881 Bytes
/
ByteVector.h
File metadata and controls
35 lines (31 loc) · 881 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
#pragma once
#include <iostream>
using namespace std;
typedef bool byte;
class ByteVector
{
private:
//Âñå õðàíèòñÿ íàîáîðîò
byte* word;
const int size;
public:
ByteVector(int size);
int getLen() const { return size; }
byte getByte(int id) const;
void setByte(int id, byte value);
ByteVector offestRight(int offsetsize) const;
ByteVector offestLeft(int offsetsize) const;
ByteVector SymmetrycSumm(const ByteVector&vect) const;
//ByteVector() :ByteVector(0, 0) {}
ByteVector(int vect,int size);
//Êîíñòðóêòîð êîïèðîâàíèÿ
ByteVector(const ByteVector& vect);
ByteVector operator=(const ByteVector& vect);
bool operator<(const ByteVector& other)const;
bool operator==(const ByteVector& other)const;
bool operator!=(const ByteVector& other)const {
return !(*this == other);
}
~ByteVector();
friend ostream& operator<<(ostream& a, const ByteVector&vect);
};