MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / clear_file

Method clear_file

FHEOffline/Producer.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186template <class FD>
187void Producer<FD>::clear_file(int my_num, int thread_num, bool initial)
188{
189 ofstream outf;
190 string file = this->open_file(outf, my_num, thread_num, initial, true);
191 cout << "Initializing file " << file.c_str() << endl;
192 outf << ""; // Write something to clear the file out
193 if (outf.fail()) { throw file_error(file); }
194 outf.close();
195}
196
197template <class T, class FD, class S>
198int TripleProducer<T,FD,S>::sacrifice(const Player& P, MAC_Check<T>& MC)

Callers 4

TripleProducerMethod · 0.80
InverseProducerMethod · 0.80
SquareProducerMethod · 0.80
gfpBitProducerMethod · 0.80

Calls 4

open_fileMethod · 0.95
file_errorClass · 0.85
closeMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected