GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
pr-output.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2015 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_pr_output_h)
24 #define octave_pr_output_h 1
25 
26 #include <iosfwd>
27 
28 #include "oct-cmplx.h"
29 
30 template <typename T> class Array;
31 class ComplexMatrix;
32 class FloatComplexMatrix;
33 class ComplexDiagMatrix;
35 class ComplexNDArray;
37 class Matrix;
38 class FloatMatrix;
39 class DiagMatrix;
40 class FloatDiagMatrix;
41 class NDArray;
42 class FloatNDArray;
43 class Range;
44 class boolMatrix;
45 class boolNDArray;
46 class charMatrix;
47 class charNDArray;
48 class PermMatrix;
49 class Cell;
50 class octave_value;
51 
52 #include "intNDArray.h"
53 #include "oct-inttypes.h"
54 
55 
56 extern OCTINTERP_API void
57 octave_print_internal (std::ostream& os, bool d,
58  bool pr_as_read_syntax = false);
59 
60 extern OCTINTERP_API void
61 octave_print_internal (std::ostream& os, char c,
62  bool pr_as_read_syntax = false);
63 
64 extern OCTINTERP_API void
65 octave_print_internal (std::ostream& os, double d,
66  bool pr_as_read_syntax = false);
67 
68 extern OCTINTERP_API void
69 octave_print_internal (std::ostream& os, float d,
70  bool pr_as_read_syntax = false);
71 
72 extern OCTINTERP_API void
73 octave_print_internal (std::ostream& os, const Matrix& m,
74  bool pr_as_read_syntax = false,
75  int extra_indent = 0);
76 
77 extern OCTINTERP_API void
78 octave_print_internal (std::ostream& os, const DiagMatrix& m,
79  bool pr_as_read_syntax = false,
80  int extra_indent = 0);
81 
82 extern OCTINTERP_API void
83 octave_print_internal (std::ostream& os, const FloatMatrix& m,
84  bool pr_as_read_syntax = false,
85  int extra_indent = 0);
86 
87 extern OCTINTERP_API void
88 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m,
89  bool pr_as_read_syntax = false,
90  int extra_indent = 0);
91 
92 extern OCTINTERP_API void
93 octave_print_internal (std::ostream& os, const NDArray& nda,
94  bool pr_as_read_syntax = false,
95  int extra_indent = 0);
96 
97 extern OCTINTERP_API void
98 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
99  bool pr_as_read_syntax = false,
100  int extra_indent = 0);
101 
102 extern OCTINTERP_API void
103 octave_print_internal (std::ostream& os, const Complex& c,
104  bool pr_as_read_syntax = false);
105 
106 extern OCTINTERP_API void
107 octave_print_internal (std::ostream& os, const FloatComplex& c,
108  bool pr_as_read_syntax = false);
109 
110 extern OCTINTERP_API void
111 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
112  bool pr_as_read_syntax = false,
113  int extra_indent = 0);
114 
115 extern OCTINTERP_API void
116 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm,
117  bool pr_as_read_syntax = false,
118  int extra_indent = 0);
119 
120 extern OCTINTERP_API void
121 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
122  bool pr_as_read_syntax = false,
123  int extra_indent = 0);
124 
125 extern OCTINTERP_API void
126 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm,
127  bool pr_as_read_syntax = false,
128  int extra_indent = 0);
129 
130 extern OCTINTERP_API void
131 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
132  bool pr_as_read_syntax = false,
133  int extra_indent = 0);
134 
135 extern OCTINTERP_API void
136 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
137  bool pr_as_read_syntax = false,
138  int extra_indent = 0);
139 
140 extern OCTINTERP_API void
141 octave_print_internal (std::ostream& os, const PermMatrix& m,
142  bool pr_as_read_syntax = false,
143  int extra_indent = 0);
144 
145 extern OCTINTERP_API void
146 octave_print_internal (std::ostream& os, const Range& r,
147  bool pr_as_read_syntax = false,
148  int extra_indent = 0);
149 
150 extern OCTINTERP_API void
151 octave_print_internal (std::ostream& os, const boolMatrix& m,
152  bool pr_as_read_syntax = false,
153  int extra_indent = 0);
154 
155 extern OCTINTERP_API void
156 octave_print_internal (std::ostream& os, const boolNDArray& m,
157  bool pr_as_read_syntax = false,
158  int extra_indent = 0);
159 
160 extern OCTINTERP_API void
161 octave_print_internal (std::ostream& os, const charMatrix& chm,
162  bool pr_as_read_syntax = false,
163  int extra_indent = 0,
164  bool pr_as_string = false);
165 
166 extern OCTINTERP_API void
167 octave_print_internal (std::ostream& os, const charNDArray& nda,
168  bool pr_as_read_syntax = false,
169  int extra_indent = 0,
170  bool pr_as_string = false);
171 
172 extern OCTINTERP_API void
173 octave_print_internal (std::ostream& os, const std::string& s,
174  bool pr_as_read_syntax = false,
175  int extra_indent = 0);
176 
177 extern OCTINTERP_API void
178 octave_print_internal (std::ostream& os, const Array<std::string>& sa,
179  bool pr_as_read_syntax = false,
180  int extra_indent = 0);
181 
182 extern OCTINTERP_API void
183 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa,
184  bool pr_as_read_syntax = false,
185  int extra_indent = 0);
186 
187 extern OCTINTERP_API void
188 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa,
189  bool pr_as_read_syntax = false,
190  int extra_indent = 0);
191 
192 extern OCTINTERP_API void
193 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa,
194  bool pr_as_read_syntax = false,
195  int extra_indent = 0);
196 
197 extern OCTINTERP_API void
198 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa,
199  bool pr_as_read_syntax = false,
200  int extra_indent = 0);
201 
202 extern OCTINTERP_API void
203 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa,
204  bool pr_as_read_syntax = false,
205  int extra_indent = 0);
206 
207 extern OCTINTERP_API void
208 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa,
209  bool pr_as_read_syntax = false,
210  int extra_indent = 0);
211 
212 extern OCTINTERP_API void
213 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa,
214  bool pr_as_read_syntax = false,
215  int extra_indent = 0);
216 
217 extern OCTINTERP_API void
218 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa,
219  bool pr_as_read_syntax = false,
220  int extra_indent = 0);
221 
222 extern OCTINTERP_API void
223 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa,
224  bool pr_as_read_syntax = false);
225 
226 extern OCTINTERP_API void
227 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa,
228  bool pr_as_read_syntax = false);
229 
230 extern OCTINTERP_API void
231 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa,
232  bool pr_as_read_syntax = false);
233 
234 extern OCTINTERP_API void
235 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa,
236  bool pr_as_read_syntax = false);
237 
238 extern OCTINTERP_API void
239 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa,
240  bool pr_as_read_syntax = false);
241 
242 extern OCTINTERP_API void
243 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa,
244  bool pr_as_read_syntax = false);
245 
246 extern OCTINTERP_API void
247 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa,
248  bool pr_as_read_syntax = false);
249 
250 extern OCTINTERP_API void
251 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa,
252  bool pr_as_read_syntax = false);
253 
254 extern OCTINTERP_API void
255 octave_print_internal (std::ostream& os, const Cell& cell,
256  bool pr_as_read_syntax = false,
257  int extra_indent = 0,
258  bool pr_as_string = false);
259 
260 extern OCTINTERP_API void
261 octave_print_internal (std::ostream& os, const octave_value& ov,
262  bool pr_as_read_syntax = false);
263 
264 // TRUE means that the dimensions of empty objects should be printed
265 // like this: x = [](2x0).
266 extern bool Vprint_empty_dimensions;
267 
268 // TRUE means don't put empty lines in output
269 extern bool Vcompact_format;
270 
271 #endif
Definition: Cell.h:35
Definition: Range.h:31
bool Vprint_empty_dimensions
Definition: pr-output.cc:75
F77_RET_T const double const double double * d
#define OCTINTERP_API
Definition: mexproto.h:66
OCTINTERP_API void octave_print_internal(std::ostream &os, bool d, bool pr_as_read_syntax=false)
Definition: pr-output.cc:2595
Definition: dMatrix.h:35
Handles the reference counting for all the derived classes.
Definition: Array.h:45
std::complex< float > FloatComplex
Definition: oct-cmplx.h:30
std::complex< double > Complex
Definition: oct-cmplx.h:29
bool Vcompact_format
Definition: pr-output.cc:106