Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
12 #ifndef SERIALIZATION_HPP_
13 #define SERIALIZATION_HPP_
65 #define OUTPUT_NEWLINE ""
66 #define OUTPUT_SEPARATOR ""
68 #define OUTPUT_NEWLINE "\n"
69 #define OUTPUT_SEPARATOR " "
76 inline void output_bool(std::ostream &out,
const bool b);
77 inline void input_bool(std::istream &in,
bool &b);
85 std::ostream &
operator<<(std::ostream &out,
const std::vector<T> &v);
88 std::istream &
operator>>(std::ostream &out, std::vector<T> &v);
90 template<
typename T1,
typename T2>
91 std::ostream &
operator<<(std::ostream &out,
const std::map<T1, T2> &m);
93 template<
typename T1,
typename T2>
94 std::istream &
operator>>(std::istream &in, std::map<T1, T2> &m);
97 std::ostream &
operator<<(std::ostream &out,
const std::set<T> &s);
99 template<
typename T> std::istream &
operator>>(std::istream &in, std::set<T> &s);
105 #endif // SERIALIZATION_HPP_
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
void output_bool_vector(std::ostream &out, const std::vector< bool > &v)
void consume_OUTPUT_SEPARATOR(std::istream &in)
void input_bool(std::istream &in, bool &b)
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
void consume_OUTPUT_NEWLINE(std::istream &in)
void output_bool(std::ostream &out, const bool b)
void consume_newline(std::istream &in)
void input_bool_vector(std::istream &in, std::vector< bool > &v)
T reserialize(const T &obj)