GiNaC  1.8.0
fail.cpp
Go to the documentation of this file.
1 
6 /*
7  * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  */
23 
24 #include "fail.h"
25 #include "archive.h"
26 #include "utils.h"
27 
28 #include <iostream>
29 
30 namespace GiNaC {
31 
34  print_func<print_tree>(&fail::do_print_tree))
35 
36 // default constructor
39 
40 DEFAULT_CTOR(fail)
41 
42 // archiving
45 
47 // functions overriding virtual functions from base classes
49 
50 DEFAULT_COMPARE(fail)
51 DEFAULT_PRINT(fail, "FAIL")
53 
54 } // namespace GiNaC
#define DEFAULT_PRINT(classname, text)
Definition: utils.h:616
Definition: add.cpp:38
Archiving of GiNaC expressions.
Interface to several small and furry utilities needed within GiNaC but not of any interest to the use...
void do_print(const print_context &c, unsigned level) const
print_func< print_context >(&varidx::do_print). print_func< print_latex >(&varidx
Definition: idx.cpp:45
Interface to class signaling failure of operation.
GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(add, expairseq, print_func< print_context >(&add::do_print). print_func< print_latex >(&add::do_print_latex). print_func< print_csrc >(&add::do_print_csrc). print_func< print_tree >(&add::do_print_tree). print_func< print_python_repr >(&add::do_print_python_repr)) add
Definition: add.cpp:40
void do_print_tree(const print_tree &c, unsigned level) const
Tree output to stream.
Definition: basic.cpp:175
#define DEFAULT_COMPARE(classname)
Definition: utils.h:609
#define DEFAULT_CTOR(classname)
Definition: utils.h:606
GINAC_BIND_UNARCHIVER(add)

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