PageRenderTime 224ms CodeModel.GetById 79ms app.highlight 134ms 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
 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
 9namespace cln {
10
11typedef cl_specialized_number_ring<cl_RA> cl_rational_ring;
12extern const cl_rational_ring cl_RA_ring;	// math. Q
13extern cl_class cl_class_rational_ring;
14
15class cl_RA_ring_init_helper
16{
17	static int count;
18public:
19	cl_RA_ring_init_helper();
20	~cl_RA_ring_init_helper();
21};
22static cl_RA_ring_init_helper cl_RA_ring_init_helper_instance;
23
24}  // namespace cln
25
26#endif /* _CL_RATIONAL_RING_H */