|
GiNaC
1.6.2
|
00001 00005 /* 00006 * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 #include "lst.h" 00024 #include "archive.h" 00025 00026 namespace GiNaC { 00027 00028 template <> GINAC_IMPLEMENT_REGISTERED_CLASS_OPT_T(lst, basic, 00029 print_func<print_context>(&lst::do_print). 00030 print_func<print_tree>(&lst::do_print_tree)) 00031 00032 00033 template <> bool lst::info(unsigned inf) const 00034 { 00035 if (inf == info_flags::list) 00036 return true; 00037 else 00038 return inherited::info(inf); 00039 } 00040 00041 GINAC_BIND_UNARCHIVER(lst); 00042 00043 } // namespace GiNaC