1 // I/O of complex numbers.
3 #ifndef _CL_COMPLEX_IO_H
4 #define _CL_COMPLEX_IO_H
6 #include "cl_number_io.h"
7 #include "cl_complex.h"
10 // Undocumented input functions
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);
15 // Documented input functions
17 inline cl_istream operator>> (cl_istream stream, cl_N& result)
19 extern cl_read_flags cl_N_read_flags;
20 result = read_complex(stream,cl_N_read_flags);
25 // Undocumented output functions
28 // Documented output functions
30 // Gibt eine komplexe Zahl aus.
31 // print_complex(stream,z);
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);
37 inline void fprint (cl_ostream stream, const cl_N& x)
39 extern cl_print_flags cl_default_print_flags;
40 print_complex(stream,cl_default_print_flags,x);
43 CL_DEFINE_PRINT_OPERATOR(cl_N)
46 #endif /* _CL_COMPLEX_IO_H */