26 #if ! defined (octave_pr_output_h)
27 #define octave_pr_output_h 1
29 #include "octave-config.h"
38 template <
typename T>
class Array;
182 extern OCTINTERP_API
void
184 bool d,
bool pr_as_read_syntax =
false);
186 extern OCTINTERP_API
void
188 bool pr_as_read_syntax =
false);
190 extern OCTINTERP_API
void
192 char c,
bool pr_as_read_syntax =
false);
196 bool pr_as_read_syntax =
false)
202 extern OCTINTERP_API
void
204 double d,
bool pr_as_read_syntax =
false);
208 bool pr_as_read_syntax =
false)
213 extern OCTINTERP_API
void
215 float d,
bool pr_as_read_syntax =
false);
219 bool pr_as_read_syntax =
false)
224 extern OCTINTERP_API
void
226 bool pr_as_read_syntax =
false,
227 int extra_indent = 0);
229 extern OCTINTERP_API
void
231 bool pr_as_read_syntax =
false,
232 int extra_indent = 0);
234 extern OCTINTERP_API
void
236 bool pr_as_read_syntax =
false,
237 int extra_indent = 0);
239 extern OCTINTERP_API
void
241 bool pr_as_read_syntax =
false,
242 int extra_indent = 0);
244 extern OCTINTERP_API
void
246 bool pr_as_read_syntax =
false,
247 int extra_indent = 0);
249 extern OCTINTERP_API
void
251 bool pr_as_read_syntax =
false,
252 int extra_indent = 0);
254 extern OCTINTERP_API
void
256 const Complex& c,
bool pr_as_read_syntax =
false);
260 bool pr_as_read_syntax =
false)
265 extern OCTINTERP_API
void
271 bool pr_as_read_syntax =
false)
276 extern OCTINTERP_API
void
278 bool pr_as_read_syntax =
false,
279 int extra_indent = 0);
281 extern OCTINTERP_API
void
283 bool pr_as_read_syntax =
false,
284 int extra_indent = 0);
286 extern OCTINTERP_API
void
288 bool pr_as_read_syntax =
false,
289 int extra_indent = 0);
291 extern OCTINTERP_API
void
293 bool pr_as_read_syntax =
false,
294 int extra_indent = 0);
296 extern OCTINTERP_API
void
298 bool pr_as_read_syntax =
false,
299 int extra_indent = 0);
301 extern OCTINTERP_API
void
303 bool pr_as_read_syntax =
false,
304 int extra_indent = 0);
306 extern OCTINTERP_API
void
308 bool pr_as_read_syntax =
false,
309 int extra_indent = 0);
311 extern OCTINTERP_API
void
313 bool pr_as_read_syntax =
false,
314 int extra_indent = 0);
316 extern OCTINTERP_API
void
318 bool pr_as_read_syntax =
false,
319 int extra_indent = 0);
321 extern OCTINTERP_API
void
323 bool pr_as_read_syntax =
false,
324 int extra_indent = 0);
326 extern OCTINTERP_API
void
328 bool pr_as_read_syntax =
false,
329 int extra_indent = 0,
330 bool pr_as_string =
false);
332 extern OCTINTERP_API
void
334 bool pr_as_read_syntax =
false,
335 int extra_indent = 0,
336 bool pr_as_string =
false);
338 extern OCTINTERP_API
void
340 bool pr_as_read_syntax =
false,
341 int extra_indent = 0);
343 extern OCTINTERP_API
void
345 bool pr_as_read_syntax =
false,
346 int extra_indent = 0);
348 extern OCTINTERP_API
void
350 bool pr_as_read_syntax =
false,
351 int extra_indent = 0);
353 extern OCTINTERP_API
void
355 bool pr_as_read_syntax =
false,
356 int extra_indent = 0);
358 extern OCTINTERP_API
void
360 bool pr_as_read_syntax =
false,
361 int extra_indent = 0);
363 extern OCTINTERP_API
void
365 bool pr_as_read_syntax =
false,
366 int extra_indent = 0);
368 extern OCTINTERP_API
void
370 bool pr_as_read_syntax =
false,
371 int extra_indent = 0);
373 extern OCTINTERP_API
void
375 bool pr_as_read_syntax =
false,
376 int extra_indent = 0);
378 extern OCTINTERP_API
void
380 bool pr_as_read_syntax =
false,
381 int extra_indent = 0);
383 extern OCTINTERP_API
void
385 bool pr_as_read_syntax =
false,
386 int extra_indent = 0);
391 bool pr_as_read_syntax =
false);
393 inline OCTINTERP_API
void
395 bool pr_as_read_syntax =
false)
404 bool pr_as_read_syntax =
false);
406 inline OCTINTERP_API
void
408 bool pr_as_read_syntax =
false)
417 bool pr_as_read_syntax =
false);
419 inline OCTINTERP_API
void
421 bool pr_as_read_syntax =
false)
430 bool pr_as_read_syntax =
false);
432 inline OCTINTERP_API
void
434 bool pr_as_read_syntax =
false)
443 bool pr_as_read_syntax =
false);
445 inline OCTINTERP_API
void
447 bool pr_as_read_syntax =
false)
456 bool pr_as_read_syntax =
false);
458 inline OCTINTERP_API
void
460 bool pr_as_read_syntax =
false)
469 bool pr_as_read_syntax =
false);
471 inline OCTINTERP_API
void
473 bool pr_as_read_syntax =
false)
482 bool pr_as_read_syntax =
false);
484 inline OCTINTERP_API
void
486 bool pr_as_read_syntax =
false)
492 extern OCTINTERP_API
void
494 bool pr_as_read_syntax =
false,
495 int extra_indent = 0,
496 bool pr_as_string =
false);
500 const Cell& cell,
bool pr_as_read_syntax =
false,
501 int extra_indent = 0,
bool pr_as_string =
false)
507 extern OCTINTERP_API
void
509 bool pr_as_read_syntax =
false);
511 template <
typename T>
521 int exponent (
void)
const;
523 T mantissa (
void)
const;
526 : m_ff (ff), m_val (val) { }
529 : m_ff (fdf.real_format ()), m_val (val) { }
532 template <
typename T>
543 : m_ff (ff), m_val (val) { }
546 : m_ff (fdf.real_format ()), m_val (val) { }
549 template <
typename T>
560 : m_ff (ff), m_val (val) { }
563 : m_ff (fdf.real_format ()), m_val (val) { }
566 template <
typename T>
570 template <
typename T>
574 template <
typename T>
N Dimensional Array with copy-on-write semantics.
pr_engineering_float(const float_format &ff, T val)
pr_engineering_float(const float_display_format &fdf, T val)
pr_rational_float(const float_format &ff, T val)
pr_rational_float(const float_display_format &fdf, T val)
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
F77_RET_T const F77_DBLE const F77_DBLE * f
std::complex< double > Complex
std::complex< float > FloatComplex
float_display_format make_format(const std::complex< T > &)
bool Vprint_empty_dimensions
std::ostream & operator<<(std::ostream &os, const pr_engineering_float< T > &pef)
OCTINTERP_API void octave_print_internal(std::ostream &os, const float_display_format &fmt, bool d, bool pr_as_read_syntax=false)