]> www.ginac.de Git - ginac.git/blobdiff - ginac/indexed.h
* zeta(n,x) is now zetaderiv(n,s)
[ginac.git] / ginac / indexed.h
index 21947ff03728994518d4d0189b44e9b793805b63..30c29e8e167e3fa788ceead1e9c446b596e232a4 100644 (file)
@@ -140,11 +140,10 @@ public:
        // internal constructors
        indexed(const symmetry & symm, const exprseq & es);
        indexed(const symmetry & symm, const exvector & v, bool discardable = false);
-       indexed(const symmetry & symm, exvector * vp); // vp will be deleted
+       indexed(const symmetry & symm, std::auto_ptr<exvector> vp);
 
        // functions overriding virtual functions from base classes
 public:
-       void print(const print_context & c, unsigned level = 0) const;
        unsigned precedence() const {return 55;}
        bool info(unsigned inf) const;
        ex eval(int level = 0) const;
@@ -153,7 +152,7 @@ public:
 protected:
        ex derivative(const symbol & s) const;
        ex thiscontainer(const exvector & v) const;
-       ex thiscontainer(exvector * vp) const;
+       ex thiscontainer(std::auto_ptr<exvector> vp) const;
        unsigned return_type() const { return return_types::commutative; }
        ex expand(unsigned options = 0) const;
 
@@ -185,6 +184,10 @@ public:
 
 protected:
        void printindices(const print_context & c, unsigned level) const;
+       void print_indexed(const print_context & c, const char *openbrace, const char *closebrace, unsigned level) const;
+       void do_print(const print_context & c, unsigned level) const;
+       void do_print_latex(const print_latex & c, unsigned level) const;
+       void do_print_tree(const print_tree & c, unsigned level) const;
        void validate() const;
 
        // member variables