1
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1
|
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 2, or (at your option) any |
|
10 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, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
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; |
4513
|
33 class ComplexNDArray; |
1
|
34 class Matrix; |
4513
|
35 class NDArray; |
1738
|
36 class Range; |
3215
|
37 class boolMatrix; |
4513
|
38 class boolNDArray; |
1572
|
39 class charMatrix; |
4513
|
40 class charNDArray; |
3928
|
41 class Cell; |
1
|
42 |
4901
|
43 #include "intNDArray.h" |
|
44 #include "oct-inttypes.h" |
|
45 |
2920
|
46 extern void |
3523
|
47 octave_print_internal (std::ostream& os, double d, |
2920
|
48 bool pr_as_read_syntax = false); |
625
|
49 |
2920
|
50 extern void |
3523
|
51 octave_print_internal (std::ostream& os, const Matrix& m, |
2920
|
52 bool pr_as_read_syntax = false, |
|
53 int extra_indent = 0); |
625
|
54 |
2920
|
55 extern void |
4513
|
56 octave_print_internal (std::ostream& os, const NDArray& nda, |
|
57 bool pr_as_read_syntax = false, |
|
58 int extra_indent = 0); |
|
59 |
|
60 extern void |
3523
|
61 octave_print_internal (std::ostream& os, const Complex& c, |
2920
|
62 bool pr_as_read_syntax = false); |
625
|
63 |
2920
|
64 extern void |
3523
|
65 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, |
2920
|
66 bool pr_as_read_syntax = false, |
|
67 int extra_indent = 0); |
625
|
68 |
2920
|
69 extern void |
4513
|
70 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, |
|
71 bool pr_as_read_syntax = false, |
|
72 int extra_indent = 0); |
|
73 |
|
74 extern void |
3523
|
75 octave_print_internal (std::ostream& os, const Range& r, |
2920
|
76 bool pr_as_read_syntax = false, |
|
77 int extra_indent = 0); |
1
|
78 |
2920
|
79 extern void |
3523
|
80 octave_print_internal (std::ostream& os, const boolMatrix& m, |
3215
|
81 bool pr_as_read_syntax = false, |
|
82 int extra_indent = 0); |
|
83 |
|
84 extern void |
4513
|
85 octave_print_internal (std::ostream& os, const boolNDArray& m, |
|
86 bool pr_as_read_syntax = false, |
|
87 int extra_indent = 0); |
|
88 |
|
89 extern void |
3523
|
90 octave_print_internal (std::ostream& os, const charMatrix& chm, |
2920
|
91 bool pr_as_read_syntax = false, |
3215
|
92 int extra_indent = 0, |
|
93 bool pr_as_string = false); |
1355
|
94 |
3928
|
95 extern void |
4655
|
96 octave_print_internal (std::ostream& os, const charNDArray& nda, |
4513
|
97 bool pr_as_read_syntax = false, |
|
98 int extra_indent = 0, |
|
99 bool pr_as_string = false); |
|
100 |
|
101 extern void |
4925
|
102 octave_print_internal (std::ostream& os, const std::string& s, |
|
103 bool pr_as_read_syntax = false, |
|
104 int extra_indent = 0); |
|
105 |
|
106 extern void |
4655
|
107 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa, |
|
108 bool pr_as_read_syntax = false, |
|
109 int extra_indent = 0); |
|
110 |
4901
|
111 template <class T> |
|
112 extern void |
|
113 octave_print_internal (std::ostream& os, const intNDArray<T>& sa, |
|
114 bool pr_as_read_syntax = false, |
|
115 int extra_indent = 0); |
|
116 |
|
117 template <class T> |
|
118 extern void |
|
119 octave_print_internal (std::ostream& os, const octave_int<T>& sa, |
|
120 bool pr_as_read_syntax = false); |
|
121 |
4655
|
122 extern void |
3933
|
123 octave_print_internal (std::ostream& os, const Cell& cell, |
3928
|
124 bool pr_as_read_syntax = false, |
3933
|
125 int extra_indent = 0, |
|
126 bool pr_as_string = false); |
3928
|
127 |
1
|
128 #endif |
|
129 |
|
130 /* |
|
131 ;;; Local Variables: *** |
|
132 ;;; mode: C++ *** |
|
133 ;;; End: *** |
|
134 */ |