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 |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_pr_output_h) |
|
24 #define octave_pr_output_h 1 |
1
|
25 |
3503
|
26 #include <iostream> |
1
|
27 |
1651
|
28 #include "oct-cmplx.h" |
|
29 |
4655
|
30 template <typename T> class ArrayN; |
1738
|
31 class ComplexMatrix; |
4513
|
32 class ComplexNDArray; |
1
|
33 class Matrix; |
4513
|
34 class NDArray; |
1738
|
35 class Range; |
3215
|
36 class boolMatrix; |
4513
|
37 class boolNDArray; |
1572
|
38 class charMatrix; |
4513
|
39 class charNDArray; |
3928
|
40 class Cell; |
1
|
41 |
4901
|
42 #include "intNDArray.h" |
|
43 #include "oct-inttypes.h" |
|
44 |
2920
|
45 extern void |
3523
|
46 octave_print_internal (std::ostream& os, double d, |
2920
|
47 bool pr_as_read_syntax = false); |
625
|
48 |
2920
|
49 extern void |
3523
|
50 octave_print_internal (std::ostream& os, const Matrix& m, |
2920
|
51 bool pr_as_read_syntax = false, |
|
52 int extra_indent = 0); |
625
|
53 |
2920
|
54 extern void |
4513
|
55 octave_print_internal (std::ostream& os, const NDArray& nda, |
|
56 bool pr_as_read_syntax = false, |
|
57 int extra_indent = 0); |
|
58 |
|
59 extern void |
3523
|
60 octave_print_internal (std::ostream& os, const Complex& c, |
2920
|
61 bool pr_as_read_syntax = false); |
625
|
62 |
2920
|
63 extern void |
3523
|
64 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, |
2920
|
65 bool pr_as_read_syntax = false, |
|
66 int extra_indent = 0); |
625
|
67 |
2920
|
68 extern void |
4513
|
69 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, |
|
70 bool pr_as_read_syntax = false, |
|
71 int extra_indent = 0); |
|
72 |
|
73 extern void |
3523
|
74 octave_print_internal (std::ostream& os, const Range& r, |
2920
|
75 bool pr_as_read_syntax = false, |
|
76 int extra_indent = 0); |
1
|
77 |
2920
|
78 extern void |
3523
|
79 octave_print_internal (std::ostream& os, const boolMatrix& m, |
3215
|
80 bool pr_as_read_syntax = false, |
|
81 int extra_indent = 0); |
|
82 |
|
83 extern void |
4513
|
84 octave_print_internal (std::ostream& os, const boolNDArray& m, |
|
85 bool pr_as_read_syntax = false, |
|
86 int extra_indent = 0); |
|
87 |
|
88 extern void |
3523
|
89 octave_print_internal (std::ostream& os, const charMatrix& chm, |
2920
|
90 bool pr_as_read_syntax = false, |
3215
|
91 int extra_indent = 0, |
|
92 bool pr_as_string = false); |
1355
|
93 |
3928
|
94 extern void |
4655
|
95 octave_print_internal (std::ostream& os, const charNDArray& nda, |
4513
|
96 bool pr_as_read_syntax = false, |
|
97 int extra_indent = 0, |
|
98 bool pr_as_string = false); |
|
99 |
|
100 extern void |
4655
|
101 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa, |
|
102 bool pr_as_read_syntax = false, |
|
103 int extra_indent = 0); |
|
104 |
4901
|
105 template <class T> |
|
106 extern void |
|
107 octave_print_internal (std::ostream& os, const intNDArray<T>& sa, |
|
108 bool pr_as_read_syntax = false, |
|
109 int extra_indent = 0); |
|
110 |
|
111 template <class T> |
|
112 extern void |
|
113 octave_print_internal (std::ostream& os, const octave_int<T>& sa, |
|
114 bool pr_as_read_syntax = false); |
|
115 |
4655
|
116 extern void |
3933
|
117 octave_print_internal (std::ostream& os, const Cell& cell, |
3928
|
118 bool pr_as_read_syntax = false, |
3933
|
119 int extra_indent = 0, |
|
120 bool pr_as_string = false); |
3928
|
121 |
1
|
122 #endif |
|
123 |
|
124 /* |
|
125 ;;; Local Variables: *** |
|
126 ;;; mode: C++ *** |
|
127 ;;; End: *** |
|
128 */ |