print_helpers.hpp 903 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef __PRINT_HELPERS_HPP
  2. #define __PRINT_HELPERS_HPP
  3. #include <iomanip>
  4. #include <ostream>
  5. extern "C" {
  6. #include "fp12e.h"
  7. #include "fp6e.h"
  8. #include "fp2e.h"
  9. #include "fpe.h"
  10. }
  11. class Fp12e {
  12. public:
  13. Fp12e(const fp12e_t& input);
  14. friend std::ostream& operator<<(std::ostream& os, const Fp12e& output);
  15. private:
  16. fp12e_t data;
  17. };
  18. class Fp6e {
  19. public:
  20. Fp6e(const fp6e_t& input);
  21. friend std::ostream& operator<<(std::ostream& os, const Fp6e& output);
  22. private:
  23. fp6e_t data;
  24. };
  25. class Fp2e {
  26. public:
  27. Fp2e(const fp2e_t& input);
  28. friend std::ostream& operator<<(std::ostream& os, const Fp2e& output);
  29. private:
  30. fp2e_t data;
  31. };
  32. class Fpe {
  33. public:
  34. Fpe(const fpe_t& input);
  35. friend std::ostream& operator<<(std::ostream& os, const Fpe& output);
  36. private:
  37. fpe_t data;
  38. };
  39. #endif