|
GiNaC
1.6.2
|
00001 00006 /* 00007 * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #ifndef GINAC_FAIL_H 00025 #define GINAC_FAIL_H 00026 00027 #include "basic.h" 00028 #include "archive.h" 00029 00030 namespace GiNaC { 00031 00032 class fail : public basic 00033 { 00034 GINAC_DECLARE_REGISTERED_CLASS(fail, basic) 00035 00036 // functions overriding virtual functions from base classes 00037 protected: 00038 unsigned return_type() const { return return_types::noncommutative_composite; }; 00039 00040 // non-virtual functions in this class 00041 protected: 00042 void do_print(const print_context & c, unsigned level) const; 00043 }; 00044 GINAC_DECLARE_UNARCHIVER(fail); 00045 00046 } // namespace GiNaC 00047 00048 #endif // ndef GINAC_FAIL_H