PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/cln-1.3.2/include/cln/rational_ring.h

#
C Header | 26 lines | 18 code | 7 blank | 1 comment | 0 complexity | f8337224cb7feb6fcc65f3561d41af6b MD5 | raw file
Possible License(s): GPL-2.0
  1. // Built-in rational number ring.
  2. #ifndef _CL_RATIONAL_RING_H
  3. #define _CL_RATIONAL_RING_H
  4. #include "cln/ring.h"
  5. #include "cln/rational_class.h"
  6. namespace cln {
  7. typedef cl_specialized_number_ring<cl_RA> cl_rational_ring;
  8. extern const cl_rational_ring cl_RA_ring; // math. Q
  9. extern cl_class cl_class_rational_ring;
  10. class cl_RA_ring_init_helper
  11. {
  12. static int count;
  13. public:
  14. cl_RA_ring_init_helper();
  15. ~cl_RA_ring_init_helper();
  16. };
  17. static cl_RA_ring_init_helper cl_RA_ring_init_helper_instance;
  18. } // namespace cln
  19. #endif /* _CL_RATIONAL_RING_H */