Files
MP-SPDZ/Math/Integer.h
2016-09-02 19:16:51 +01:00

35 lines
506 B
C++

// (C) 2016 University of Bristol. See License.txt
/*
* Integer.h
*
*/
#ifndef INTEGER_H_
#define INTEGER_H_
#include <iostream>
using namespace std;
// Wrapper class for integer, used for Memory
class Integer
{
long a;
public:
Integer() { a = 0; }
Integer(long a) : a(a) {}
long get() const { return a; }
void assign_zero() { a = 0; }
void output(ostream& s,bool human) const;
void input(istream& s,bool human);
};
#endif /* INTEGER_H_ */