/** @file function.cpp
*
- * Implementation of class function.
- *
+ * Implementation of class function. */
+
+/*
* This file was generated automatically by function.pl.
* Please do not modify it directly, edit the perl script instead!
- * function.pl options: $maxargs=10 */
+ * function.pl options: $maxargs=10
+ *
+ * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include <string>
#include <stdexcept>
-#include "ginac.h"
+#include "function.h"
+#include "ex.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
function::function() : serial(0)
{
debugmsg("function default constructor",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::~function()
function::function(unsigned ser) : serial(ser)
{
debugmsg("function constructor from unsigned",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
// the following lines have been generated for max. 10 parameters
: exprseq(param1), serial(ser)
{
debugmsg("function constructor from unsigned,1*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2)
: exprseq(param1, param2), serial(ser)
{
debugmsg("function constructor from unsigned,2*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3)
: exprseq(param1, param2, param3), serial(ser)
{
debugmsg("function constructor from unsigned,3*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4)
: exprseq(param1, param2, param3, param4), serial(ser)
{
debugmsg("function constructor from unsigned,4*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5)
: exprseq(param1, param2, param3, param4, param5), serial(ser)
{
debugmsg("function constructor from unsigned,5*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5, ex const & param6)
: exprseq(param1, param2, param3, param4, param5, param6), serial(ser)
{
debugmsg("function constructor from unsigned,6*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5, ex const & param6, ex const & param7)
: exprseq(param1, param2, param3, param4, param5, param6, param7), serial(ser)
{
debugmsg("function constructor from unsigned,7*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5, ex const & param6, ex const & param7, ex const & param8)
: exprseq(param1, param2, param3, param4, param5, param6, param7, param8), serial(ser)
{
debugmsg("function constructor from unsigned,8*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5, ex const & param6, ex const & param7, ex const & param8, ex const & param9)
: exprseq(param1, param2, param3, param4, param5, param6, param7, param8, param9), serial(ser)
{
debugmsg("function constructor from unsigned,9*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, ex const & param1, ex const & param2, ex const & param3, ex const & param4, ex const & param5, ex const & param6, ex const & param7, ex const & param8, ex const & param9, ex const & param10)
: exprseq(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10), serial(ser)
{
debugmsg("function constructor from unsigned,10*ex",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
// end of generated lines
function::function(unsigned ser, exprseq const & es) : exprseq(es), serial(ser)
{
debugmsg("function constructor from unsigned,exprseq",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, exvector const & v, bool discardable)
: exprseq(v,discardable), serial(ser)
{
debugmsg("function constructor from string,exvector,bool",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
function::function(unsigned ser, exvector * vp)
: exprseq(vp), serial(ser)
{
debugmsg("function constructor from unsigned,exvector *",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_FUNCTION;
+ tinfo_key = TINFO_function;
}
//////////
const function some_function;
type_info const & typeid_function=typeid(some_function);
+} // namespace GiNaC
+