X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fpolynomial%2Fupoly_io.cpp;h=0618bb3dd9bb77e28c5aa961ca8729dbad069297;hb=d5b86dd10dd9cba12175d07af0b6edfc9a215e36;hp=6bba48d9e44f03bcfc53ddebd9aba0e7820bb3c2;hpb=80b1c3e0ee0e465d56e5c76bef4e52ef2dbc5197;p=ginac.git diff --git a/ginac/polynomial/upoly_io.cpp b/ginac/polynomial/upoly_io.cpp index 6bba48d9..0618bb3d 100644 --- a/ginac/polynomial/upoly_io.cpp +++ b/ginac/polynomial/upoly_io.cpp @@ -1,11 +1,34 @@ -#include -#include +/** @file upoly_io.cpp + * + * Input/Output function for univariate polynomials. */ + +/* + * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #include "upoly.h" #include "upoly_io.h" + #include +#include +#include + +namespace GiNaC { -namespace GiNaC -{ using std::ostream; using std::string; @@ -34,15 +57,15 @@ print(const T& p, ostream& os, const string& varname = string("x")) } } -#define DEFINE_OPERATOR_OUT(type) \ -std::ostream& operator<<(std::ostream& os, const type& p) \ -{ \ - print(p, os); \ - return os; \ -} \ -void dbgprint(const type& p) \ -{ \ - print(p, std::cerr); \ +#define DEFINE_OPERATOR_OUT(type) \ +std::ostream& operator<<(std::ostream& os, const type& p) \ +{ \ + print(p, os); \ + return os; \ +} \ +void dbgprint(const type& p) \ +{ \ + print(p, std::cerr); \ } DEFINE_OPERATOR_OUT(upoly); @@ -50,4 +73,3 @@ DEFINE_OPERATOR_OUT(umodpoly); #undef DEFINE_OPERATOR_OUT } // namespace GiNaC -