]> www.ginac.de Git - ginac.git/blobdiff - ginac/function.pl
Removed debugging code.
[ginac.git] / ginac / function.pl
index 7e5d0dac0307ca6db6dbe4427a0461bc9bfb5871..102e324e51ed567d7e41ce419f09a1bb3a31adff 100755 (executable)
@@ -1,4 +1,4 @@
-$maxargs=13;
+$maxargs=14;
 
 sub generate_seq {
        my ($seq_template,$n)=@_;
@@ -257,6 +257,8 @@ public:
        function_options(std::string const & n, std::string const & tn=std::string());
        ~function_options();
        void initialize();
+
+       function_options & dummy() { return *this; }
        function_options & set_name(std::string const & n, std::string const & tn=std::string());
        function_options & latex_name(std::string const & tn);
 // the following lines have been generated for max. ${maxargs} parameters
@@ -357,7 +359,7 @@ $constructors_interface
        // end of generated lines
        function(unsigned ser, const exprseq & es);
        function(unsigned ser, const exvector & v, bool discardable = false);
-       function(unsigned ser, exvector * vp); // vp will be deleted
+       function(unsigned ser, std::auto_ptr<exvector> vp);
 
        // functions overriding virtual functions from base classes
 public:
@@ -369,7 +371,7 @@ public:
        unsigned calchash() const;
        ex series(const relational & r, int order, unsigned options = 0) const;
        ex thiscontainer(const exvector & v) const;
-       ex thiscontainer(exvector * vp) const;
+       ex thiscontainer(std::auto_ptr<exvector> vp) const;
 protected:
        ex derivative(const symbol & s) const;
        bool is_equal_same_type(const basic & other) const;
@@ -482,7 +484,7 @@ function_options::function_options()
 function_options::function_options(std::string const & n, std::string const & tn)
 {
        initialize();
-       set_name(n,tn);
+       set_name(n, tn);
 }
 
 function_options::~function_options()
@@ -492,7 +494,7 @@ function_options::~function_options()
 
 void function_options::initialize()
 {
-       set_name("unnamed_function","\\\\mbox{unnamed}");
+       set_name("unnamed_function", "\\\\mbox{unnamed}");
        nparams = 0;
        eval_f = evalf_f = derivative_f = series_f = 0;
        evalf_params_first = true;
@@ -661,7 +663,7 @@ function::function(unsigned ser, const exvector & v, bool discardable)
        tinfo_key = TINFO_function;
 }
 
-function::function(unsigned ser, exvector * vp) 
+function::function(unsigned ser, std::auto_ptr<exvector> vp) 
   : exprseq(vp), serial(ser)
 {
        tinfo_key = TINFO_function;
@@ -888,12 +890,12 @@ unsigned function::calchash() const
 
 ex function::thiscontainer(const exvector & v) const
 {
-       return function(serial,v);
+       return function(serial, v);
 }
 
-ex function::thiscontainer(exvector * vp) const
+ex function::thiscontainer(std::auto_ptr<exvector> vp) const
 {
-       return function(serial,vp);
+       return function(serial, vp);
 }
 
 /** Implementation of ex::series for functions.