Files
MP-SPDZ/Processor/OfflineMachine.h
Marcel Keller 2813c0ef0f Maintenance.
2023-08-14 18:29:46 +10:00

40 lines
784 B
C++

/*
* DishonestMajorityOfflineMachine.h
*
*/
#ifndef PROCESSOR_OFFLINEMACHINE_H_
#define PROCESSOR_OFFLINEMACHINE_H_
#include "OnlineMachine.h"
#include "Data_Files.h"
#include "BaseMachine.h"
#include "Networking/CryptoPlayer.h"
template<class W>
class OfflineMachine : public W, BaseMachine
{
DataPositions usage;
Names& playerNames;
Player& P;
template<class T>
void generate();
int buffered_total(size_t required, size_t batch);
public:
template<class V>
OfflineMachine(int argc, const char** argv,
ez::ezOptionParser& opt, OnlineOptions& online_opts, V,
int nplayers = 0);
~OfflineMachine();
template<class T, class U>
int run();
const Names& get_N();
};
#endif /* PROCESSOR_OFFLINEMACHINE_H_ */