00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (octave_pr_output_h)
00025 #define octave_pr_output_h 1
00026
00027 #include <iosfwd>
00028
00029 #include "oct-cmplx.h"
00030
00031 template <typename T> class Array;
00032 class ComplexMatrix;
00033 class FloatComplexMatrix;
00034 class ComplexDiagMatrix;
00035 class FloatComplexDiagMatrix;
00036 class ComplexNDArray;
00037 class FloatComplexNDArray;
00038 class Matrix;
00039 class FloatMatrix;
00040 class DiagMatrix;
00041 class FloatDiagMatrix;
00042 class NDArray;
00043 class FloatNDArray;
00044 class Range;
00045 class boolMatrix;
00046 class boolNDArray;
00047 class charMatrix;
00048 class charNDArray;
00049 class PermMatrix;
00050 class Cell;
00051
00052 #include "intNDArray.h"
00053 #include "oct-inttypes.h"
00054
00055
00056 extern OCTINTERP_API void
00057 octave_print_internal (std::ostream& os, bool d,
00058 bool pr_as_read_syntax = false);
00059
00060 extern OCTINTERP_API void
00061 octave_print_internal (std::ostream& os, double d,
00062 bool pr_as_read_syntax = false);
00063
00064 extern OCTINTERP_API void
00065 octave_print_internal (std::ostream& os, float d,
00066 bool pr_as_read_syntax = false);
00067
00068 extern OCTINTERP_API void
00069 octave_print_internal (std::ostream& os, const Matrix& m,
00070 bool pr_as_read_syntax = false,
00071 int extra_indent = 0);
00072
00073 extern OCTINTERP_API void
00074 octave_print_internal (std::ostream& os, const DiagMatrix& m,
00075 bool pr_as_read_syntax = false,
00076 int extra_indent = 0);
00077
00078 extern OCTINTERP_API void
00079 octave_print_internal (std::ostream& os, const FloatMatrix& m,
00080 bool pr_as_read_syntax = false,
00081 int extra_indent = 0);
00082
00083 extern OCTINTERP_API void
00084 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m,
00085 bool pr_as_read_syntax = false,
00086 int extra_indent = 0);
00087
00088 extern OCTINTERP_API void
00089 octave_print_internal (std::ostream& os, const NDArray& nda,
00090 bool pr_as_read_syntax = false,
00091 int extra_indent = 0);
00092
00093 extern OCTINTERP_API void
00094 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
00095 bool pr_as_read_syntax = false,
00096 int extra_indent = 0);
00097
00098 extern OCTINTERP_API void
00099 octave_print_internal (std::ostream& os, const Complex& c,
00100 bool pr_as_read_syntax = false);
00101
00102 extern OCTINTERP_API void
00103 octave_print_internal (std::ostream& os, const FloatComplex& c,
00104 bool pr_as_read_syntax = false);
00105
00106 extern OCTINTERP_API void
00107 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
00108 bool pr_as_read_syntax = false,
00109 int extra_indent = 0);
00110
00111 extern OCTINTERP_API void
00112 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm,
00113 bool pr_as_read_syntax = false,
00114 int extra_indent = 0);
00115
00116 extern OCTINTERP_API void
00117 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
00118 bool pr_as_read_syntax = false,
00119 int extra_indent = 0);
00120
00121 extern OCTINTERP_API void
00122 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm,
00123 bool pr_as_read_syntax = false,
00124 int extra_indent = 0);
00125
00126 extern OCTINTERP_API void
00127 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
00128 bool pr_as_read_syntax = false,
00129 int extra_indent = 0);
00130
00131 extern OCTINTERP_API void
00132 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
00133 bool pr_as_read_syntax = false,
00134 int extra_indent = 0);
00135
00136 extern OCTINTERP_API void
00137 octave_print_internal (std::ostream& os, const PermMatrix& m,
00138 bool pr_as_read_syntax = false,
00139 int extra_indent = 0);
00140
00141 extern OCTINTERP_API void
00142 octave_print_internal (std::ostream& os, const Range& r,
00143 bool pr_as_read_syntax = false,
00144 int extra_indent = 0);
00145
00146 extern OCTINTERP_API void
00147 octave_print_internal (std::ostream& os, const boolMatrix& m,
00148 bool pr_as_read_syntax = false,
00149 int extra_indent = 0);
00150
00151 extern OCTINTERP_API void
00152 octave_print_internal (std::ostream& os, const boolNDArray& m,
00153 bool pr_as_read_syntax = false,
00154 int extra_indent = 0);
00155
00156 extern OCTINTERP_API void
00157 octave_print_internal (std::ostream& os, const charMatrix& chm,
00158 bool pr_as_read_syntax = false,
00159 int extra_indent = 0,
00160 bool pr_as_string = false);
00161
00162 extern OCTINTERP_API void
00163 octave_print_internal (std::ostream& os, const charNDArray& nda,
00164 bool pr_as_read_syntax = false,
00165 int extra_indent = 0,
00166 bool pr_as_string = false);
00167
00168 extern OCTINTERP_API void
00169 octave_print_internal (std::ostream& os, const std::string& s,
00170 bool pr_as_read_syntax = false,
00171 int extra_indent = 0);
00172
00173 extern OCTINTERP_API void
00174 octave_print_internal (std::ostream& os, const Array<std::string>& sa,
00175 bool pr_as_read_syntax = false,
00176 int extra_indent = 0);
00177
00178 extern OCTINTERP_API void
00179 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa,
00180 bool pr_as_read_syntax = false,
00181 int extra_indent = 0);
00182
00183 extern OCTINTERP_API void
00184 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa,
00185 bool pr_as_read_syntax = false,
00186 int extra_indent = 0);
00187
00188 extern OCTINTERP_API void
00189 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa,
00190 bool pr_as_read_syntax = false,
00191 int extra_indent = 0);
00192
00193 extern OCTINTERP_API void
00194 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa,
00195 bool pr_as_read_syntax = false,
00196 int extra_indent = 0);
00197
00198 extern OCTINTERP_API void
00199 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa,
00200 bool pr_as_read_syntax = false,
00201 int extra_indent = 0);
00202
00203 extern OCTINTERP_API void
00204 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa,
00205 bool pr_as_read_syntax = false,
00206 int extra_indent = 0);
00207
00208 extern OCTINTERP_API void
00209 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa,
00210 bool pr_as_read_syntax = false,
00211 int extra_indent = 0);
00212
00213 extern OCTINTERP_API void
00214 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa,
00215 bool pr_as_read_syntax = false,
00216 int extra_indent = 0);
00217
00218 extern OCTINTERP_API void
00219 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa,
00220 bool pr_as_read_syntax = false);
00221
00222 extern OCTINTERP_API void
00223 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa,
00224 bool pr_as_read_syntax = false);
00225
00226 extern OCTINTERP_API void
00227 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa,
00228 bool pr_as_read_syntax = false);
00229
00230 extern OCTINTERP_API void
00231 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa,
00232 bool pr_as_read_syntax = false);
00233
00234 extern OCTINTERP_API void
00235 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa,
00236 bool pr_as_read_syntax = false);
00237
00238 extern OCTINTERP_API void
00239 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa,
00240 bool pr_as_read_syntax = false);
00241
00242 extern OCTINTERP_API void
00243 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa,
00244 bool pr_as_read_syntax = false);
00245
00246 extern OCTINTERP_API void
00247 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa,
00248 bool pr_as_read_syntax = false);
00249
00250 extern OCTINTERP_API void
00251 octave_print_internal (std::ostream& os, const Cell& cell,
00252 bool pr_as_read_syntax = false,
00253 int extra_indent = 0,
00254 bool pr_as_string = false);
00255
00256
00257
00258 extern bool Vprint_empty_dimensions;
00259
00260
00261 extern OCTINTERP_API int Vstruct_levels_to_print;
00262
00263 #endif
00264
00265
00266
00267
00268
00269