annotate src/pr-output.h @ 5100:5a92c3177fc6 before-gnuplot-split

[project @ 2004-12-27 17:20:38 by jwe]
author jwe
date Mon, 27 Dec 2004 17:20:38 +0000
parents 90f51232d751
children 4c8a2e4e0717
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
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1309
diff changeset
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
20
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
383
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
23 #if !defined (octave_pr_output_h)
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
24 #define octave_pr_output_h 1
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
25
3503
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 3215
diff changeset
26 #include <iostream>
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
27
1651
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
28 #include "oct-cmplx.h"
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
29
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
30 template <typename T> class ArrayN;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
31 class ComplexMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
32 class ComplexNDArray;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
33 class Matrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
34 class NDArray;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
35 class Range;
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
36 class boolMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
37 class boolNDArray;
1572
0d9e10d10bd7 [project @ 1995-10-19 04:31:30 by jwe]
jwe
parents: 1355
diff changeset
38 class charMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
39 class charNDArray;
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
40 class Cell;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
41
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
42 #include "intNDArray.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
43 #include "oct-inttypes.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
44
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
45 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
46 octave_print_internal (std::ostream& os, double d,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
47 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
48
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
49 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
50 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
51 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
52 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
53
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
54 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
55 octave_print_internal (std::ostream& os, const NDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
56 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
57 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
58
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
59 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
60 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
61 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
62
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
63 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
64 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
65 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
66 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
67
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
68 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
69 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
70 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
71 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
72
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
73 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
74 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
75 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
76 int extra_indent = 0);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
77
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
78 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
79 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
80 bool pr_as_read_syntax = false,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
81 int extra_indent = 0);
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
82
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
83 extern void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
84 octave_print_internal (std::ostream& os, const boolNDArray& m,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
85 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
86 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
87
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
88 extern void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
89 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
90 bool pr_as_read_syntax = false,
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
91 int extra_indent = 0,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
92 bool pr_as_string = false);
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1315
diff changeset
93
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
94 extern void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
95 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
96 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
97 int extra_indent = 0,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
98 bool pr_as_string = false);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
99
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
100 extern void
4925
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
101 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
102 bool pr_as_read_syntax = false,
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
103 int extra_indent = 0);
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
104
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
105 extern void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
106 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
107 bool pr_as_read_syntax = false,
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
108 int extra_indent = 0);
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
109
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
110 template <class T>
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
111 extern void
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
112 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
113 bool pr_as_read_syntax = false,
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
114 int extra_indent = 0);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
115
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
116 template <class T>
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
117 extern void
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
118 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
119 bool pr_as_read_syntax = false);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
120
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
121 extern void
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
122 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
123 bool pr_as_read_syntax = false,
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
124 int extra_indent = 0,
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
125 bool pr_as_string = false);
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
126
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
127 #endif
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
128
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
129 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
130 ;;; Local Variables: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
131 ;;; mode: C++ ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
132 ;;; End: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
133 */