pr-output.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 1993-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_pr_output_h)
00024 #define octave_pr_output_h 1
00025 
00026 #include <iosfwd>
00027 
00028 #include "oct-cmplx.h"
00029 
00030 template <typename T> class Array;
00031 class ComplexMatrix;
00032 class FloatComplexMatrix;
00033 class ComplexDiagMatrix;
00034 class FloatComplexDiagMatrix;
00035 class ComplexNDArray;
00036 class FloatComplexNDArray;
00037 class Matrix;
00038 class FloatMatrix;
00039 class DiagMatrix;
00040 class FloatDiagMatrix;
00041 class NDArray;
00042 class FloatNDArray;
00043 class Range;
00044 class boolMatrix;
00045 class boolNDArray;
00046 class charMatrix;
00047 class charNDArray;
00048 class PermMatrix;
00049 class Cell;
00050 
00051 #include "intNDArray.h"
00052 #include "oct-inttypes.h"
00053 
00054 
00055 extern OCTINTERP_API void
00056 octave_print_internal (std::ostream& os, bool d,
00057                        bool pr_as_read_syntax = false);
00058 
00059 extern OCTINTERP_API void
00060 octave_print_internal (std::ostream& os, double d,
00061                        bool pr_as_read_syntax = false);
00062 
00063 extern OCTINTERP_API void
00064 octave_print_internal (std::ostream& os, float d,
00065                        bool pr_as_read_syntax = false);
00066 
00067 extern OCTINTERP_API void
00068 octave_print_internal (std::ostream& os, const Matrix& m,
00069                        bool pr_as_read_syntax = false,
00070                        int extra_indent = 0);
00071 
00072 extern OCTINTERP_API void
00073 octave_print_internal (std::ostream& os, const DiagMatrix& m,
00074                        bool pr_as_read_syntax = false,
00075                        int extra_indent = 0);
00076 
00077 extern OCTINTERP_API void
00078 octave_print_internal (std::ostream& os, const FloatMatrix& m,
00079                        bool pr_as_read_syntax = false,
00080                        int extra_indent = 0);
00081 
00082 extern OCTINTERP_API void
00083 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m,
00084                        bool pr_as_read_syntax = false,
00085                        int extra_indent = 0);
00086 
00087 extern OCTINTERP_API void
00088 octave_print_internal (std::ostream& os, const NDArray& nda,
00089                        bool pr_as_read_syntax = false,
00090                        int extra_indent = 0);
00091 
00092 extern OCTINTERP_API void
00093 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
00094                        bool pr_as_read_syntax = false,
00095                        int extra_indent = 0);
00096 
00097 extern OCTINTERP_API void
00098 octave_print_internal (std::ostream& os, const Complex& c,
00099                        bool pr_as_read_syntax = false);
00100 
00101 extern OCTINTERP_API void
00102 octave_print_internal (std::ostream& os, const FloatComplex& c,
00103                        bool pr_as_read_syntax = false);
00104 
00105 extern OCTINTERP_API void
00106 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
00107                        bool pr_as_read_syntax = false,
00108                        int extra_indent = 0);
00109 
00110 extern OCTINTERP_API void
00111 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm,
00112                        bool pr_as_read_syntax = false,
00113                        int extra_indent = 0);
00114 
00115 extern OCTINTERP_API void
00116 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
00117                        bool pr_as_read_syntax = false,
00118                        int extra_indent = 0);
00119 
00120 extern OCTINTERP_API void
00121 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm,
00122                        bool pr_as_read_syntax = false,
00123                        int extra_indent = 0);
00124 
00125 extern OCTINTERP_API void
00126 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
00127                        bool pr_as_read_syntax = false,
00128                        int extra_indent = 0);
00129 
00130 extern OCTINTERP_API void
00131 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
00132                        bool pr_as_read_syntax = false,
00133                        int extra_indent = 0);
00134 
00135 extern OCTINTERP_API void
00136 octave_print_internal (std::ostream& os, const PermMatrix& m,
00137                        bool pr_as_read_syntax = false,
00138                        int extra_indent = 0);
00139 
00140 extern OCTINTERP_API void
00141 octave_print_internal (std::ostream& os, const Range& r,
00142                        bool pr_as_read_syntax = false,
00143                        int extra_indent = 0);
00144 
00145 extern OCTINTERP_API void
00146 octave_print_internal (std::ostream& os, const boolMatrix& m,
00147                        bool pr_as_read_syntax = false,
00148                        int extra_indent = 0);
00149 
00150 extern OCTINTERP_API void
00151 octave_print_internal (std::ostream& os, const boolNDArray& m,
00152                        bool pr_as_read_syntax = false,
00153                        int extra_indent = 0);
00154 
00155 extern OCTINTERP_API void
00156 octave_print_internal (std::ostream& os, const charMatrix& chm,
00157                        bool pr_as_read_syntax = false,
00158                        int extra_indent = 0,
00159                        bool pr_as_string = false);
00160 
00161 extern OCTINTERP_API void
00162 octave_print_internal (std::ostream& os, const charNDArray& nda,
00163                        bool pr_as_read_syntax = false,
00164                        int extra_indent = 0,
00165                        bool pr_as_string = false);
00166 
00167 extern OCTINTERP_API void
00168 octave_print_internal (std::ostream& os, const std::string& s,
00169                        bool pr_as_read_syntax = false,
00170                        int extra_indent = 0);
00171 
00172 extern OCTINTERP_API void
00173 octave_print_internal (std::ostream& os, const Array<std::string>& sa,
00174                        bool pr_as_read_syntax = false,
00175                        int extra_indent = 0);
00176 
00177 extern OCTINTERP_API void
00178 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa,
00179                        bool pr_as_read_syntax = false,
00180                        int extra_indent = 0);
00181 
00182 extern OCTINTERP_API void
00183 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa,
00184                        bool pr_as_read_syntax = false,
00185                        int extra_indent = 0);
00186 
00187 extern OCTINTERP_API void
00188 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa,
00189                        bool pr_as_read_syntax = false,
00190                        int extra_indent = 0);
00191 
00192 extern OCTINTERP_API void
00193 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa,
00194                        bool pr_as_read_syntax = false,
00195                        int extra_indent = 0);
00196 
00197 extern OCTINTERP_API void
00198 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa,
00199                        bool pr_as_read_syntax = false,
00200                        int extra_indent = 0);
00201 
00202 extern OCTINTERP_API void
00203 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa,
00204                        bool pr_as_read_syntax = false,
00205                        int extra_indent = 0);
00206 
00207 extern OCTINTERP_API void
00208 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa,
00209                        bool pr_as_read_syntax = false,
00210                        int extra_indent = 0);
00211 
00212 extern OCTINTERP_API void
00213 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa,
00214                        bool pr_as_read_syntax = false,
00215                        int extra_indent = 0);
00216 
00217 extern OCTINTERP_API void
00218 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa,
00219                        bool pr_as_read_syntax = false);
00220 
00221 extern OCTINTERP_API void
00222 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa,
00223                        bool pr_as_read_syntax = false);
00224 
00225 extern OCTINTERP_API void
00226 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa,
00227                        bool pr_as_read_syntax = false);
00228 
00229 extern OCTINTERP_API void
00230 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa,
00231                        bool pr_as_read_syntax = false);
00232 
00233 extern OCTINTERP_API void
00234 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa,
00235                        bool pr_as_read_syntax = false);
00236 
00237 extern OCTINTERP_API void
00238 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa,
00239                        bool pr_as_read_syntax = false);
00240 
00241 extern OCTINTERP_API void
00242 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa,
00243                        bool pr_as_read_syntax = false);
00244 
00245 extern OCTINTERP_API void
00246 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa,
00247                        bool pr_as_read_syntax = false);
00248 
00249 extern OCTINTERP_API void
00250 octave_print_internal (std::ostream& os, const Cell& cell,
00251                        bool pr_as_read_syntax = false,
00252                        int extra_indent = 0,
00253                        bool pr_as_string = false);
00254 
00255 // TRUE means that the dimensions of empty objects should be printed
00256 // like this: x = [](2x0).
00257 extern bool Vprint_empty_dimensions;
00258 
00259 // TRUE means don't put empty lines in output
00260 extern bool Vcompact_format;
00261 
00262 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines