GiNaC 1.8.8
print.cpp
Go to the documentation of this file.
1
5/*
6 * GiNaC Copyright (C) 1999-2025 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
27namespace GiNaC {
28
31
32
43
45 : s(std::cout), options(0) {}
46print_context::print_context(std::ostream & os, unsigned opt)
47 : s(os), options(opt) {}
48
51print_dflt::print_dflt(std::ostream & os, unsigned opt)
52 : print_context(os, opt) {}
53
56print_latex::print_latex(std::ostream & os, unsigned opt)
57 : print_context(os, opt) {}
58
61print_python::print_python(std::ostream & os, unsigned opt)
62 : print_context(os, opt) {}
63
66print_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) {}
73print_tree::print_tree(std::ostream & os, unsigned opt, unsigned d)
74 : print_context(os, opt), delta_indent(d) {}
75
78print_csrc::print_csrc(std::ostream & os, unsigned opt)
79 : print_context(os, opt) {}
80
83print_csrc_float::print_csrc_float(std::ostream & os, unsigned opt)
84 : print_csrc(os, opt) {}
85
88print_csrc_double::print_csrc_double(std::ostream & os, unsigned opt)
89 : print_csrc(os, opt) {}
90
93print_csrc_cl_N::print_csrc_cl_N(std::ostream & os, unsigned opt)
94 : print_csrc(os, opt) {}
95
96} // namespace GiNaC
Base class for print_contexts.
Definition print.h:102
print_context(std::ostream &, unsigned options=0)
Definition print.cpp:44
Context for C source output using CLN numbers.
Definition print.h:181
print_csrc_cl_N(std::ostream &, unsigned options=0)
Definition print.cpp:91
Context for C source output using double precision.
Definition print.h:173
print_csrc_double(std::ostream &, unsigned options=0)
Definition print.cpp:86
Context for C source output using float precision.
Definition print.h:165
print_csrc_float(std::ostream &, unsigned options=0)
Definition print.cpp:81
Base context for C source output.
Definition print.h:157
print_csrc(std::ostream &, unsigned options=0)
Definition print.cpp:76
Context for default (ginsh-parsable) output.
Definition print.h:114
print_dflt(std::ostream &, unsigned options=0)
Definition print.cpp:49
Context for latex-parsable output.
Definition print.h:122
print_latex(std::ostream &, unsigned options=0)
Definition print.cpp:54
Context for python-parsable output.
Definition print.h:138
print_python_repr(std::ostream &, unsigned options=0)
Definition print.cpp:64
Context for python pretty-print output.
Definition print.h:130
print_python(std::ostream &, unsigned options=0)
Definition print.cpp:59
Context for tree-like output for debugging.
Definition print.h:146
print_tree(unsigned d)
Definition print.cpp:71
unsigned options
Definition factor.cpp:2474
Definition add.cpp:36
unsigned next_print_context_id
Next free ID for print_context types.
Definition print.cpp:30
Definition ex.h:988
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:89

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