1 | // Built-in rational number ring. |
2 | |
3 | #ifndef _CL_RATIONAL_RING_H |
4 | #define _CL_RATIONAL_RING_H |
5 | |
6 | #include "cln/ring.h" |
7 | #include "cln/rational_class.h" |
8 | |
9 | namespace cln { |
10 | |
11 | typedef cl_specialized_number_ring<cl_RA> cl_rational_ring; |
12 | extern const cl_rational_ring cl_RA_ring; // math. Q |
13 | extern cl_class cl_class_rational_ring; |
14 | |
15 | class cl_RA_ring_init_helper |
16 | { |
17 | static int count; |
18 | public: |
19 | cl_RA_ring_init_helper(); |
20 | ~cl_RA_ring_init_helper(); |
21 | }; |
22 | static cl_RA_ring_init_helper cl_RA_ring_init_helper_instance; |
23 | |
24 | } // namespace cln |
25 | |
26 | #endif /* _CL_RATIONAL_RING_H */ |
27 | |