20 #ifndef __PERCYRESULT_H__
21 #define __PERCYRESULT_H__
31 PercyResult(vector<nservers_t> G,
string sigma) : G(G), sigma(sigma) {}
35 void dump(ostream &out,
unsigned int depth = 0)
const {
36 string leader(2*depth,
' ');
37 out << leader <<
"PercyResult {" << endl;
38 out << leader <<
" G = <";
39 for (vector<nservers_t>::const_iterator i=G.begin(); i != G.end(); ++i) {
43 out << leader <<
" sigma = \"" << sigma <<
"\"" << endl;
44 out << leader <<
"}" << endl;
49 inline ostream& operator<<(ostream &out, const vector<PercyResult> &r) {
51 for (vector<PercyResult>::const_iterator i=r.begin();
61 dbsize_t block_number;
62 vector<PercyResult> results;
64 void dump(ostream &out,
unsigned int depth = 0)
const {
65 string leader(2*depth,
' ');
66 out << leader <<
"PercyBlockResults {" << endl;
67 out << leader <<
" block_number = " << block_number << endl;
68 out << leader <<
" results = <" << endl;
69 for (vector<PercyResult>::const_iterator i=results.begin();
70 i != results.end(); ++i) {
71 i->dump(out, depth+2);
73 out << leader <<
" >" << endl;
74 out << leader <<
"}" << endl;
79 inline ostream& operator<<(ostream &out, const vector<PercyBlockResults> &r) {
81 for (vector<PercyBlockResults>::const_iterator i=r.begin();
std::ostream & operator<<(std::ostream &os, PercyMode mode)
Prints a PercyMode string to a stream.
Definition: percyresult.h:30
This header contains typedefs for seamless switching between 32- and 64-bit builds of Percy++...
Definition: percyresult.h:60