-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuni_var.h
46 lines (41 loc) · 908 Bytes
/
uni_var.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
#ifndef UNI_VAR_H
#define UNI_VAR_H
#include "poly_aux.h"
class Uni_var{
private:
vector<unsigned char> *coeffs;
vector<unsigned char> *expns;
unsigned char dmo;
unsigned char m;
public:
Uni_var(){};
Uni_var(unsigned char d, unsigned char mNum){
dmo = d-1;
m = mNum;
coeffs = new vector<unsigned char>();
expns = new vector<unsigned char>();
};
vector<unsigned char> *getCoeffs() {
return coeffs;
}
vector<unsigned char> *getExpns() {
return expns;
}
unsigned char getSize() {
return dmo;
}
unsigned char getM(){
return m;
}
void setUniPolyEx(unsigned char elem){
expns->push_back(elem);
}
void setUniPolyCo(unsigned char elem){
coeffs->push_back(elem);
}
~Uni_var(){
delete coeffs;
delete expns;
};
};
#endif