/* * Input.h * */ #ifndef PROCESSOR_INPUT_H_ #define PROCESSOR_INPUT_H_ #include using namespace std; #include "Math/Share.h" #include "Auth/MAC_Check.h" #include "Processor/Buffer.h" #include "Tools/time-func.h" class Processor; template class InputBase { protected: Buffer buffer; Timer timer; public: int values_input; InputBase(Processor& proc); ~InputBase(); }; template class Input : public InputBase { Processor& proc; MAC_Check& MC; vector< vector< Share > > shares; void adjust_mac(Share& share, T& value); public: Input(Processor& proc, MAC_Check& mc); void start(int player, int n_inputs); void stop(int player, vector targets); }; #endif /* PROCESSOR_INPUT_H_ */