X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fcolor.h;h=d595cb3e374b285d5b6804b6b4f6100bd21c7308;hb=22bf8270163ec9ec11f37c79957e18d6e6e163cd;hp=360223e20b56686fca9d60336ff069cf85807137;hpb=12fefbca9b424cb8e9ae05d83883b96e17c7b96e;p=ginac.git diff --git a/ginac/color.h b/ginac/color.h index 360223e2..d595cb3e 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -49,6 +49,8 @@ public: // internal constructors color(unsigned char rl, const exvector & v, bool discardable = false); color(unsigned char rl, std::auto_ptr vp); + void archive(archive_node& n) const; + void read_archive(const archive_node& n, lst& sym_lst); // functions overriding virtual functions from base classes protected: @@ -67,6 +69,7 @@ public: private: unsigned char representation_label; /**< Representation label to distinguish independent color matrices coming from separated fermion lines */ }; +GINAC_DECLARE_UNARCHIVER(color); /** This class represents the su(3) unity element. */ @@ -79,6 +82,7 @@ protected: void do_print(const print_context & c, unsigned level) const; void do_print_latex(const print_latex & c, unsigned level) const; }; +GINAC_DECLARE_UNARCHIVER(su3one); /** This class represents an su(3) generator. */ class su3t : public tensor @@ -94,6 +98,7 @@ protected: void do_print(const print_context & c, unsigned level) const; void do_print_latex(const print_latex & c, unsigned level) const; }; +GINAC_DECLARE_UNARCHIVER(su3t); /** This class represents the tensor of antisymmetric su(3) structure * constants. */ @@ -112,6 +117,7 @@ protected: void do_print(const print_context & c, unsigned level) const; void do_print_latex(const print_latex & c, unsigned level) const; }; +GINAC_DECLARE_UNARCHIVER(su3f); /** This class represents the tensor of symmetric su(3) structure constants. */ class su3d : public tensor @@ -129,6 +135,7 @@ protected: void do_print(const print_context & c, unsigned level) const; void do_print_latex(const print_latex & c, unsigned level) const; }; +GINAC_DECLARE_UNARCHIVER(su3d); // global functions