]> www.ginac.de Git - cln.git/blob - include/cl_complex_io.h
- autoconf/aclocal.m4 (CL_CANONICAL_HOST): Added missing changequote
[cln.git] / include / cl_complex_io.h
1 // I/O of complex numbers.
2
3 #ifndef _CL_COMPLEX_IO_H
4 #define _CL_COMPLEX_IO_H
5
6 #include "cl_number_io.h"
7 #include "cl_complex.h"
8
9
10 // Undocumented input functions
11
12 extern const cl_N read_complex (const cl_read_flags& flags, const char * string, const char * string_limit, const char * * end_of_parse);
13 extern const cl_N read_complex (cl_istream stream, const cl_read_flags& flags);
14
15 // Documented input functions
16
17 inline cl_istream operator>> (cl_istream stream, cl_N& result)
18 {
19         extern cl_read_flags cl_N_read_flags;
20         result = read_complex(stream,cl_N_read_flags);
21         return stream;
22 }
23
24
25 // Undocumented output functions
26
27
28 // Documented output functions
29
30 // Gibt eine komplexe Zahl aus.
31 // print_complex(stream,z);
32 // > z: komplexe Zahl
33 // > stream: Stream
34 extern void print_complex (cl_ostream stream, const cl_print_flags& flags, const cl_N& z);
35 extern void print_complex (cl_ostream stream, const cl_print_number_flags& flags, const cl_N& z);
36
37 inline void fprint (cl_ostream stream, const cl_N& x)
38 {
39         extern cl_print_flags cl_default_print_flags;
40         print_complex(stream,cl_default_print_flags,x);
41 }
42
43 CL_DEFINE_PRINT_OPERATOR(cl_N)
44
45
46 #endif /* _CL_COMPLEX_IO_H */