annotate src/pr-output.h @ 5540:cda6a105ae9a before-ov-branch

[project @ 2005-11-17 05:47:13 by jwe]
author jwe
date Thu, 17 Nov 2005 05:47:13 +0000
parents 33adb987c033
children ce79d238f142
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
1 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
2
2847
8b262e771614 [project @ 1997-03-27 16:18:26 by jwe]
jwe
parents: 2387
diff changeset
3 Copyright (C) 1996, 1997 John W. Eaton
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
4
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
6
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
10 later version.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
11
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
15 for more details.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
16
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, write to the Free
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4925
diff changeset
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4925
diff changeset
20 02110-1301, USA.
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
21
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
22 */
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
23
383
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
24 #if !defined (octave_pr_output_h)
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
25 #define octave_pr_output_h 1
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
26
3503
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 3215
diff changeset
27 #include <iostream>
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
28
1651
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
29 #include "oct-cmplx.h"
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
30
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
31 template <typename T> class ArrayN;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
32 class ComplexMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
33 class ComplexNDArray;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
34 class Matrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
35 class NDArray;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
36 class Range;
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
37 class boolMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
38 class boolNDArray;
1572
0d9e10d10bd7 [project @ 1995-10-19 04:31:30 by jwe]
jwe
parents: 1355
diff changeset
39 class charMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
40 class charNDArray;
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
41 class Cell;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
42
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
43 #include "intNDArray.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
44 #include "oct-inttypes.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
45
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
46 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
47 octave_print_internal (std::ostream& os, double d,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
48 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
49
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
50 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
51 octave_print_internal (std::ostream& os, const Matrix& m,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
52 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
53 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
54
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
55 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
56 octave_print_internal (std::ostream& os, const NDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
57 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
58 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
59
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
60 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
61 octave_print_internal (std::ostream& os, const Complex& c,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
62 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
63
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
64 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
65 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
66 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
67 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
68
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
69 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
70 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
71 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
72 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
73
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
74 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
75 octave_print_internal (std::ostream& os, const Range& r,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
76 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
77 int extra_indent = 0);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
78
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
79 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
80 octave_print_internal (std::ostream& os, const boolMatrix& m,
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
81 bool pr_as_read_syntax = false,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
82 int extra_indent = 0);
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
83
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
84 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
85 octave_print_internal (std::ostream& os, const boolNDArray& m,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
86 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
87 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
88
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
89 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
90 octave_print_internal (std::ostream& os, const charMatrix& chm,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
91 bool pr_as_read_syntax = false,
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
92 int extra_indent = 0,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
93 bool pr_as_string = false);
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1315
diff changeset
94
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
95 extern void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
96 octave_print_internal (std::ostream& os, const charNDArray& nda,
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
97 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
98 int extra_indent = 0,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
99 bool pr_as_string = false);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
100
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
101 extern void
4925
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
102 octave_print_internal (std::ostream& os, const std::string& s,
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
103 bool pr_as_read_syntax = false,
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
104 int extra_indent = 0);
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
105
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
106 extern void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
107 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa,
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
108 bool pr_as_read_syntax = false,
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
109 int extra_indent = 0);
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
110
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
111 template <class T>
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
112 extern void
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
113 octave_print_internal (std::ostream& os, const intNDArray<T>& sa,
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
114 bool pr_as_read_syntax = false,
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
115 int extra_indent = 0);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
116
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
117 template <class T>
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
118 extern void
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
119 octave_print_internal (std::ostream& os, const octave_int<T>& sa,
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
120 bool pr_as_read_syntax = false);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
121
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
122 extern void
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
123 octave_print_internal (std::ostream& os, const Cell& cell,
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
124 bool pr_as_read_syntax = false,
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
125 int extra_indent = 0,
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
126 bool pr_as_string = false);
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
127
5360
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
128 // TRUE means that the dimensions of empty objects should be printed
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
129 // like this: x = [](2x0).
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
130 extern bool Vprint_empty_dimensions;
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
131
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
132 #endif
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
133
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
134 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
135 ;;; Local Variables: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
136 ;;; mode: C++ ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
137 ;;; End: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
138 */