GiNaC  1.8.0
print.cpp
Go to the documentation of this file.
1 
5 /*
6  * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #include "print.h"
24 
25 #include <iostream>
26 
27 namespace GiNaC {
28 
30 unsigned next_print_context_id = 0;
31 
32 
43 
45  : s(std::cout), options(0) {}
46 print_context::print_context(std::ostream & os, unsigned opt)
47  : s(os), options(opt) {}
48 
50  : print_context(std::cout) {}
51 print_dflt::print_dflt(std::ostream & os, unsigned opt)
52  : print_context(os, opt) {}
53 
55  : print_context(std::cout) {}
56 print_latex::print_latex(std::ostream & os, unsigned opt)
57  : print_context(os, opt) {}
58 
60  : print_context(std::cout) {}
61 print_python::print_python(std::ostream & os, unsigned opt)
62  : print_context(os, opt) {}
63 
65  : print_context(std::cout) {}
66 print_python_repr::print_python_repr(std::ostream & os, unsigned opt)
67  : print_context(os, opt) {}
68 
70  : print_context(std::cout), delta_indent(4) {}
72  : print_context(std::cout), delta_indent(d) {}
73 print_tree::print_tree(std::ostream & os, unsigned opt, unsigned d)
74  : print_context(os, opt), delta_indent(d) {}
75 
77  : print_context(std::cout) {}
78 print_csrc::print_csrc(std::ostream & os, unsigned opt)
79  : print_context(os, opt) {}
80 
82  : print_csrc(std::cout) {}
83 print_csrc_float::print_csrc_float(std::ostream & os, unsigned opt)
84  : print_csrc(os, opt) {}
85 
87  : print_csrc(std::cout) {}
88 print_csrc_double::print_csrc_double(std::ostream & os, unsigned opt)
89  : print_csrc(os, opt) {}
90 
92  : print_csrc(std::cout) {}
93 print_csrc_cl_N::print_csrc_cl_N(std::ostream & os, unsigned opt)
94  : print_csrc(os, opt) {}
95 
96 } // namespace GiNaC
GiNaC::print_dflt
Context for default (ginsh-parsable) output.
Definition: print.h:115
GiNaC::print_python_repr
Context for python-parsable output.
Definition: print.h:139
GiNaC::print_context::print_context
print_context(std::ostream &, unsigned options=0)
Definition: print.cpp:44
GiNaC::print_csrc_cl_N::print_csrc_cl_N
print_csrc_cl_N(std::ostream &, unsigned options=0)
Definition: print.cpp:91
GiNaC::print_csrc_float
Context for C source output using float precision.
Definition: print.h:166
GiNaC::print_tree::print_tree
print_tree(unsigned d)
Definition: print.cpp:71
GiNaC::print_context
Base class for print_contexts.
Definition: print.h:103
GiNaC::print_csrc
Base context for C source output.
Definition: print.h:158
GiNaC::print_dflt::print_dflt
print_dflt(std::ostream &, unsigned options=0)
Definition: print.cpp:49
options
unsigned options
Definition: factor.cpp:2480
GiNaC
Definition: add.cpp:38
GiNaC::print_csrc_double::print_csrc_double
print_csrc_double(std::ostream &, unsigned options=0)
Definition: print.cpp:86
GiNaC::print_python
Context for python pretty-print output.
Definition: print.h:131
GiNaC::print_latex
Context for latex-parsable output.
Definition: print.h:123
print.h
Definition of helper classes for expression output.
GiNaC::next_print_context_id
unsigned next_print_context_id
Next free ID for print_context types.
Definition: print.cpp:30
GiNaC::print_csrc_double
Context for C source output using double precision.
Definition: print.h:174
GiNaC::print_tree
Context for tree-like output for debugging.
Definition: print.h:147
std
Definition: ex.h:972
GiNaC::print_csrc::print_csrc
print_csrc(std::ostream &, unsigned options=0)
Definition: print.cpp:76
GiNaC::print_latex::print_latex
print_latex(std::ostream &, unsigned options=0)
Definition: print.cpp:54
GINAC_IMPLEMENT_PRINT_CONTEXT
#define GINAC_IMPLEMENT_PRINT_CONTEXT(classname, supername)
Macro for inclusion in the implementation of each print_context class.
Definition: print.h:90
GiNaC::print_csrc_cl_N
Context for C source output using CLN numbers.
Definition: print.h:182
GiNaC::print_python::print_python
print_python(std::ostream &, unsigned options=0)
Definition: print.cpp:59
GiNaC::print_csrc_float::print_csrc_float
print_csrc_float(std::ostream &, unsigned options=0)
Definition: print.cpp:81
GiNaC::print_python_repr::print_python_repr
print_python_repr(std::ostream &, unsigned options=0)
Definition: print.cpp:64

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.