- basic * duplicate() const;
- void printraw(ostream & os) const;
- void printtree(ostream & os, unsigned indent) const;
- void print(ostream & os, unsigned upper_precedence=0) const;
- void printcsrc(ostream & os, unsigned type, unsigned upper_precedence=0) const;
- bool info(unsigned inf) const;
-protected:
- int compare_same_type(basic const & other) const;
- ex simplify_ncmul(exvector const & v) const;
- unsigned calchash(void) const;
-
- // new virtual functions which can be overridden by derived classes
- // none
-
- // non-virtual functions in this class
+ void print(const print_context & c, unsigned level = 0) const;
+};
+
+
+/** This class represents the Dirac gamma Lorentz vector. */
+class diracgamma : public tensor
+{
+ GINAC_DECLARE_REGISTERED_CLASS(diracgamma, tensor)
+
+ // functions overriding virtual functions from bases classes