Mercurial > hg > octave-nkf
annotate src/pr-output.h @ 7948:af10baa63915 ss-3-1-50
3.1.50 snapshot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Jul 2008 17:42:48 -0400 |
parents | 82be108cc558 |
children | 4d90d21a9cd9 |
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 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
69 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
|
70 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
71 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
72 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
73 extern OCTINTERP_API void |
4513 | 74 octave_print_internal (std::ostream& os, const NDArray& nda, |
75 bool pr_as_read_syntax = false, | |
76 int extra_indent = 0); | |
77 | |
6109 | 78 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
79 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
|
80 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
81 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
82 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
83 extern OCTINTERP_API void |
3523 | 84 octave_print_internal (std::ostream& os, const Complex& c, |
2920 | 85 bool pr_as_read_syntax = false); |
625 | 86 |
6109 | 87 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
88 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
|
89 bool pr_as_read_syntax = false); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
90 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
91 extern OCTINTERP_API void |
3523 | 92 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, |
2920 | 93 bool pr_as_read_syntax = false, |
94 int extra_indent = 0); | |
625 | 95 |
6109 | 96 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
97 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
|
98 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
99 int extra_indent = 0); |
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 |
4513 | 102 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, |
103 bool pr_as_read_syntax = false, | |
104 int extra_indent = 0); | |
105 | |
6109 | 106 extern OCTINTERP_API void |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
107 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
|
108 bool pr_as_read_syntax = false, |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
109 int extra_indent = 0); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
110 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7215
diff
changeset
|
111 extern OCTINTERP_API void |
3523 | 112 octave_print_internal (std::ostream& os, const Range& r, |
2920 | 113 bool pr_as_read_syntax = false, |
114 int extra_indent = 0); | |
1 | 115 |
6109 | 116 extern OCTINTERP_API void |
3523 | 117 octave_print_internal (std::ostream& os, const boolMatrix& m, |
3215 | 118 bool pr_as_read_syntax = false, |
119 int extra_indent = 0); | |
120 | |
6109 | 121 extern OCTINTERP_API void |
4513 | 122 octave_print_internal (std::ostream& os, const boolNDArray& m, |
123 bool pr_as_read_syntax = false, | |
124 int extra_indent = 0); | |
125 | |
6109 | 126 extern OCTINTERP_API void |
3523 | 127 octave_print_internal (std::ostream& os, const charMatrix& chm, |
2920 | 128 bool pr_as_read_syntax = false, |
3215 | 129 int extra_indent = 0, |
130 bool pr_as_string = false); | |
1355 | 131 |
6109 | 132 extern OCTINTERP_API void |
4655 | 133 octave_print_internal (std::ostream& os, const charNDArray& nda, |
4513 | 134 bool pr_as_read_syntax = false, |
135 int extra_indent = 0, | |
136 bool pr_as_string = false); | |
137 | |
6109 | 138 extern OCTINTERP_API void |
4925 | 139 octave_print_internal (std::ostream& os, const std::string& s, |
140 bool pr_as_read_syntax = false, | |
141 int extra_indent = 0); | |
142 | |
6109 | 143 extern OCTINTERP_API void |
4655 | 144 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa, |
145 bool pr_as_read_syntax = false, | |
146 int extra_indent = 0); | |
147 | |
7215 | 148 extern OCTINTERP_API void |
149 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa, | |
150 bool pr_as_read_syntax = false, | |
151 int extra_indent = 0); | |
152 | |
153 extern OCTINTERP_API void | |
154 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa, | |
155 bool pr_as_read_syntax = false, | |
156 int extra_indent = 0); | |
157 | |
158 extern OCTINTERP_API void | |
159 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa, | |
160 bool pr_as_read_syntax = false, | |
161 int extra_indent = 0); | |
162 | |
163 extern OCTINTERP_API void | |
164 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa, | |
165 bool pr_as_read_syntax = false, | |
166 int extra_indent = 0); | |
167 | |
168 extern OCTINTERP_API void | |
169 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& 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_uint32>& 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_int64>& sa, | |
4901 | 180 bool pr_as_read_syntax = false, |
181 int extra_indent = 0); | |
182 | |
7215 | 183 extern OCTINTERP_API void |
184 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& 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 octave_int<int8_t>& sa, | |
190 bool pr_as_read_syntax = false); | |
191 | |
192 extern OCTINTERP_API void | |
193 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa, | |
194 bool pr_as_read_syntax = false); | |
195 | |
196 extern OCTINTERP_API void | |
197 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa, | |
198 bool pr_as_read_syntax = false); | |
199 | |
200 extern OCTINTERP_API void | |
201 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa, | |
202 bool pr_as_read_syntax = false); | |
203 | |
204 extern OCTINTERP_API void | |
205 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa, | |
206 bool pr_as_read_syntax = false); | |
207 | |
208 extern OCTINTERP_API void | |
209 octave_print_internal (std::ostream& os, const octave_int<uint32_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<int64_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<uint64_t>& sa, | |
4901 | 218 bool pr_as_read_syntax = false); |
219 | |
6109 | 220 extern OCTINTERP_API void |
3933 | 221 octave_print_internal (std::ostream& os, const Cell& cell, |
3928 | 222 bool pr_as_read_syntax = false, |
3933 | 223 int extra_indent = 0, |
224 bool pr_as_string = false); | |
3928 | 225 |
5360 | 226 // TRUE means that the dimensions of empty objects should be printed |
227 // like this: x = [](2x0). | |
228 extern bool Vprint_empty_dimensions; | |
229 | |
5759 | 230 // How many levels of structure elements should we print? |
6153 | 231 extern OCTINTERP_API int Vstruct_levels_to_print; |
5759 | 232 |
1 | 233 #endif |
234 | |
235 /* | |
236 ;;; Local Variables: *** | |
237 ;;; mode: C++ *** | |
238 ;;; End: *** | |
239 */ |