GiNaC 1.8.10
print.cpp
Go to the documentation of this file.
1
5/*
6 * GiNaC Copyright (C) 1999-2026 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, see <https://www.gnu.org/licenses/>.
20 */
21
22#include "print.h"
23
24#include <iostream>
25
26namespace GiNaC {
27
30
31
42
44 : s(std::cout), options(0) {}
45print_context::print_context(std::ostream & os, unsigned opt)
46 : s(os), options(opt) {}
47
50print_dflt::print_dflt(std::ostream & os, unsigned opt)
51 : print_context(os, opt) {}
52
55print_latex::print_latex(std::ostream & os, unsigned opt)
56 : print_context(os, opt) {}
57
60print_python::print_python(std::ostream & os, unsigned opt)
61 : print_context(os, opt) {}
62
65print_python_repr::print_python_repr(std::ostream & os, unsigned opt)
66 : print_context(os, opt) {}
67
69 : print_context(std::cout), delta_indent(4) {}
71 : print_context(std::cout), delta_indent(d) {}
72print_tree::print_tree(std::ostream & os, unsigned opt, unsigned d)
73 : print_context(os, opt), delta_indent(d) {}
74
77print_csrc::print_csrc(std::ostream & os, unsigned opt)
78 : print_context(os, opt) {}
79
82print_csrc_float::print_csrc_float(std::ostream & os, unsigned opt)
83 : print_csrc(os, opt) {}
84
87print_csrc_double::print_csrc_double(std::ostream & os, unsigned opt)
88 : print_csrc(os, opt) {}
89
92print_csrc_cl_N::print_csrc_cl_N(std::ostream & os, unsigned opt)
93 : print_csrc(os, opt) {}
94
95} // namespace GiNaC
Base class for print_contexts.
Definition print.h:101
print_context(std::ostream &, unsigned options=0)
Definition print.cpp:43
Context for C source output using CLN numbers.
Definition print.h:180
print_csrc_cl_N(std::ostream &, unsigned options=0)
Definition print.cpp:90
Context for C source output using double precision.
Definition print.h:172
print_csrc_double(std::ostream &, unsigned options=0)
Definition print.cpp:85
Context for C source output using float precision.
Definition print.h:164
print_csrc_float(std::ostream &, unsigned options=0)
Definition print.cpp:80
Base context for C source output.
Definition print.h:156
print_csrc(std::ostream &, unsigned options=0)
Definition print.cpp:75
Context for default (ginsh-parsable) output.
Definition print.h:113
print_dflt(std::ostream &, unsigned options=0)
Definition print.cpp:48
Context for latex-parsable output.
Definition print.h:121
print_latex(std::ostream &, unsigned options=0)
Definition print.cpp:53
Context for python-parsable output.
Definition print.h:137
print_python_repr(std::ostream &, unsigned options=0)
Definition print.cpp:63
Context for python pretty-print output.
Definition print.h:129
print_python(std::ostream &, unsigned options=0)
Definition print.cpp:58
Context for tree-like output for debugging.
Definition print.h:145
print_tree(unsigned d)
Definition print.cpp:70
unsigned options
Definition factor.cpp:2473
Definition add.cpp:35
unsigned next_print_context_id
Next free ID for print_context types.
Definition print.cpp:29
Definition ex.h:987
Definition of helper classes for expression output.
#define GINAC_IMPLEMENT_PRINT_CONTEXT(classname, supername)
Macro for inclusion in the implementation of each print_context class.
Definition print.h:88

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