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 |
1738
|
30 class ComplexMatrix; |
4513
|
31 class ComplexNDArray; |
1
|
32 class Matrix; |
4513
|
33 class NDArray; |
1738
|
34 class Range; |
3215
|
35 class boolMatrix; |
4513
|
36 class boolNDArray; |
1572
|
37 class charMatrix; |
4513
|
38 class charNDArray; |
3928
|
39 class Cell; |
1
|
40 |
2920
|
41 extern void |
3523
|
42 octave_print_internal (std::ostream& os, double d, |
2920
|
43 bool pr_as_read_syntax = false); |
625
|
44 |
2920
|
45 extern void |
3523
|
46 octave_print_internal (std::ostream& os, const Matrix& m, |
2920
|
47 bool pr_as_read_syntax = false, |
|
48 int extra_indent = 0); |
625
|
49 |
2920
|
50 extern void |
4513
|
51 octave_print_internal (std::ostream& os, const NDArray& nda, |
|
52 bool pr_as_read_syntax = false, |
|
53 int extra_indent = 0); |
|
54 |
|
55 extern void |
3523
|
56 octave_print_internal (std::ostream& os, const Complex& c, |
2920
|
57 bool pr_as_read_syntax = false); |
625
|
58 |
2920
|
59 extern void |
3523
|
60 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, |
2920
|
61 bool pr_as_read_syntax = false, |
|
62 int extra_indent = 0); |
625
|
63 |
2920
|
64 extern void |
4513
|
65 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, |
|
66 bool pr_as_read_syntax = false, |
|
67 int extra_indent = 0); |
|
68 |
|
69 extern void |
3523
|
70 octave_print_internal (std::ostream& os, const Range& r, |
2920
|
71 bool pr_as_read_syntax = false, |
|
72 int extra_indent = 0); |
1
|
73 |
2920
|
74 extern void |
3523
|
75 octave_print_internal (std::ostream& os, const boolMatrix& m, |
3215
|
76 bool pr_as_read_syntax = false, |
|
77 int extra_indent = 0); |
|
78 |
|
79 extern void |
4513
|
80 octave_print_internal (std::ostream& os, const boolNDArray& m, |
|
81 bool pr_as_read_syntax = false, |
|
82 int extra_indent = 0); |
|
83 |
|
84 extern void |
3523
|
85 octave_print_internal (std::ostream& os, const charMatrix& chm, |
2920
|
86 bool pr_as_read_syntax = false, |
3215
|
87 int extra_indent = 0, |
|
88 bool pr_as_string = false); |
1355
|
89 |
3928
|
90 extern void |
4513
|
91 octave_print_internal (std::ostream& os, const charNDArray& chm, |
|
92 bool pr_as_read_syntax = false, |
|
93 int extra_indent = 0, |
|
94 bool pr_as_string = false); |
|
95 |
|
96 extern void |
3933
|
97 octave_print_internal (std::ostream& os, const Cell& cell, |
3928
|
98 bool pr_as_read_syntax = false, |
3933
|
99 int extra_indent = 0, |
|
100 bool pr_as_string = false); |
3928
|
101 |
1
|
102 #endif |
|
103 |
|
104 /* |
|
105 ;;; Local Variables: *** |
|
106 ;;; mode: C++ *** |
|
107 ;;; End: *** |
|
108 */ |