Mercurial > hg > octave-nkf
annotate src/pr-output.h @ 8770:af676d09da08
Fix test for X11 if "--without-x" is given.
author | Thomas Treichl <Thomas.Treichl@gmx.net> |
---|---|
date | Tue, 17 Feb 2009 00:27:30 -0500 |
parents | 4d90d21a9cd9 |
children | d077c590eb88 |
rev | line source |
---|---|
1 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003, |
4 2004, 2005, 2006, 2007 John W. Eaton | |
1 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
1 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
1 | 21 |
22 */ | |
23 | |
383 | 24 #if !defined (octave_pr_output_h) |
25 #define octave_pr_output_h 1 | |
1 | 26 |
3503 | 27 #include <iostream> |
1 | 28 |
1651 | 29 #include "oct-cmplx.h" |
30 | |
4655 | 31 template <typename T> class ArrayN; |
1738 | 32 class ComplexMatrix; |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
33 class FloatComplexMatrix; |
4513 | 34 class ComplexNDArray; |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
35 class FloatComplexNDArray; |
1 | 36 class Matrix; |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
37 class FloatMatrix; |
4513 | 38 class NDArray; |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
39 class FloatNDArray; |
1738 | 40 class Range; |
3215 | 41 class boolMatrix; |
4513 | 42 class boolNDArray; |
1572 | 43 class charMatrix; |
4513 | 44 class charNDArray; |
3928 | 45 class Cell; |
1 | 46 |
4901 | 47 #include "intNDArray.h" |
48 #include "oct-inttypes.h" | |
49 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
50 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
51 extern OCTINTERP_API void |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
52 octave_print_internal (std::ostream& os, bool d, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
53 bool pr_as_read_syntax = false); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
54 |
6109 | 55 extern OCTINTERP_API void |
3523 | 56 octave_print_internal (std::ostream& os, double d, |
2920 | 57 bool pr_as_read_syntax = false); |
625 | 58 |
6109 | 59 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
60 octave_print_internal (std::ostream& os, float d, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
61 bool pr_as_read_syntax = false); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
62 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
63 extern OCTINTERP_API void |
3523 | 64 octave_print_internal (std::ostream& os, const Matrix& m, |
2920 | 65 bool pr_as_read_syntax = false, |
66 int extra_indent = 0); | |
625 | 67 |
6109 | 68 extern OCTINTERP_API void |
8625
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
69 octave_print_internal (std::ostream& os, const DiagMatrix& m, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
70 bool pr_as_read_syntax = false, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
71 int extra_indent = 0); |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
72 |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
73 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
74 octave_print_internal (std::ostream& os, const FloatMatrix& m, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
75 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
76 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
77 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
78 extern OCTINTERP_API void |
8625
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
79 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
80 bool pr_as_read_syntax = false, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
81 int extra_indent = 0); |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
82 |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
83 extern OCTINTERP_API void |
4513 | 84 octave_print_internal (std::ostream& os, const NDArray& nda, |
85 bool pr_as_read_syntax = false, | |
86 int extra_indent = 0); | |
87 | |
6109 | 88 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
89 octave_print_internal (std::ostream& os, const FloatNDArray& nda, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
90 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
91 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
92 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
93 extern OCTINTERP_API void |
3523 | 94 octave_print_internal (std::ostream& os, const Complex& c, |
2920 | 95 bool pr_as_read_syntax = false); |
625 | 96 |
6109 | 97 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
98 octave_print_internal (std::ostream& os, const FloatComplex& c, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
99 bool pr_as_read_syntax = false); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
100 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
101 extern OCTINTERP_API void |
3523 | 102 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, |
2920 | 103 bool pr_as_read_syntax = false, |
104 int extra_indent = 0); | |
625 | 105 |
6109 | 106 extern OCTINTERP_API void |
8625
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
107 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
108 bool pr_as_read_syntax = false, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
109 int extra_indent = 0); |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
110 |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
111 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
112 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
113 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
114 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
115 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
116 extern OCTINTERP_API void |
8625
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
117 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
118 bool pr_as_read_syntax = false, |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
119 int extra_indent = 0); |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
120 |
4d90d21a9cd9
special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
121 extern OCTINTERP_API void |
4513 | 122 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, |
123 bool pr_as_read_syntax = false, | |
124 int extra_indent = 0); | |
125 | |
6109 | 126 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
127 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
128 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
129 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
130 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
131 extern OCTINTERP_API void |
3523 | 132 octave_print_internal (std::ostream& os, const Range& r, |
2920 | 133 bool pr_as_read_syntax = false, |
134 int extra_indent = 0); | |
1 | 135 |
6109 | 136 extern OCTINTERP_API void |
3523 | 137 octave_print_internal (std::ostream& os, const boolMatrix& m, |
3215 | 138 bool pr_as_read_syntax = false, |
139 int extra_indent = 0); | |
140 | |
6109 | 141 extern OCTINTERP_API void |
4513 | 142 octave_print_internal (std::ostream& os, const boolNDArray& m, |
143 bool pr_as_read_syntax = false, | |
144 int extra_indent = 0); | |
145 | |
6109 | 146 extern OCTINTERP_API void |
3523 | 147 octave_print_internal (std::ostream& os, const charMatrix& chm, |
2920 | 148 bool pr_as_read_syntax = false, |
3215 | 149 int extra_indent = 0, |
150 bool pr_as_string = false); | |
1355 | 151 |
6109 | 152 extern OCTINTERP_API void |
4655 | 153 octave_print_internal (std::ostream& os, const charNDArray& nda, |
4513 | 154 bool pr_as_read_syntax = false, |
155 int extra_indent = 0, | |
156 bool pr_as_string = false); | |
157 | |
6109 | 158 extern OCTINTERP_API void |
4925 | 159 octave_print_internal (std::ostream& os, const std::string& s, |
160 bool pr_as_read_syntax = false, | |
161 int extra_indent = 0); | |
162 | |
6109 | 163 extern OCTINTERP_API void |
4655 | 164 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa, |
165 bool pr_as_read_syntax = false, | |
166 int extra_indent = 0); | |
167 | |
7215 | 168 extern OCTINTERP_API void |
169 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa, | |
170 bool pr_as_read_syntax = false, | |
171 int extra_indent = 0); | |
172 | |
173 extern OCTINTERP_API void | |
174 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa, | |
175 bool pr_as_read_syntax = false, | |
176 int extra_indent = 0); | |
177 | |
178 extern OCTINTERP_API void | |
179 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa, | |
180 bool pr_as_read_syntax = false, | |
181 int extra_indent = 0); | |
182 | |
183 extern OCTINTERP_API void | |
184 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa, | |
185 bool pr_as_read_syntax = false, | |
186 int extra_indent = 0); | |
187 | |
188 extern OCTINTERP_API void | |
189 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa, | |
190 bool pr_as_read_syntax = false, | |
191 int extra_indent = 0); | |
192 | |
193 extern OCTINTERP_API void | |
194 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa, | |
195 bool pr_as_read_syntax = false, | |
196 int extra_indent = 0); | |
197 | |
198 extern OCTINTERP_API void | |
199 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa, | |
4901 | 200 bool pr_as_read_syntax = false, |
201 int extra_indent = 0); | |
202 | |
7215 | 203 extern OCTINTERP_API void |
204 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa, | |
205 bool pr_as_read_syntax = false, | |
206 int extra_indent = 0); | |
207 | |
208 extern OCTINTERP_API void | |
209 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa, | |
210 bool pr_as_read_syntax = false); | |
211 | |
212 extern OCTINTERP_API void | |
213 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa, | |
214 bool pr_as_read_syntax = false); | |
215 | |
216 extern OCTINTERP_API void | |
217 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa, | |
218 bool pr_as_read_syntax = false); | |
219 | |
220 extern OCTINTERP_API void | |
221 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa, | |
222 bool pr_as_read_syntax = false); | |
223 | |
224 extern OCTINTERP_API void | |
225 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa, | |
226 bool pr_as_read_syntax = false); | |
227 | |
228 extern OCTINTERP_API void | |
229 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa, | |
230 bool pr_as_read_syntax = false); | |
231 | |
232 extern OCTINTERP_API void | |
233 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa, | |
234 bool pr_as_read_syntax = false); | |
235 | |
236 extern OCTINTERP_API void | |
237 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa, | |
4901 | 238 bool pr_as_read_syntax = false); |
239 | |
6109 | 240 extern OCTINTERP_API void |
3933 | 241 octave_print_internal (std::ostream& os, const Cell& cell, |
3928 | 242 bool pr_as_read_syntax = false, |
3933 | 243 int extra_indent = 0, |
244 bool pr_as_string = false); | |
3928 | 245 |
5360 | 246 // TRUE means that the dimensions of empty objects should be printed |
247 // like this: x = [](2x0). | |
248 extern bool Vprint_empty_dimensions; | |
249 | |
5759 | 250 // How many levels of structure elements should we print? |
6153 | 251 extern OCTINTERP_API int Vstruct_levels_to_print; |
5759 | 252 |
1 | 253 #endif |
254 | |
255 /* | |
256 ;;; Local Variables: *** | |
257 ;;; mode: C++ *** | |
258 ;;; End: *** | |
259 */ |