X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.cpp;h=a91775cdf5cbefaa4ee84987eb9f915f7a318ff9;hp=30c38d9fff2656b224dd1e99253c0006a8a235d2;hb=cca88b51436e4b654d16a4d60cd0d1c66fcf5dd6;hpb=def26469ff96228c66e877bb5594e7d9a24b638f diff --git a/ginac/color.cpp b/ginac/color.cpp index 30c38d9f..a91775cd 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's color (SU(3) Lie algebra) objects. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2014 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 @@ -20,9 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include - #include "color.h" #include "idx.h" #include "ncmul.h" @@ -35,6 +32,9 @@ #include "archive.h" #include "utils.h" +#include +#include + namespace GiNaC { GINAC_IMPLEMENT_REGISTERED_CLASS(color, indexed) @@ -103,8 +103,9 @@ return_type_t color::return_type_tinfo() const // archiving ////////// -color::color(const archive_node &n, lst &sym_lst) : inherited(n, sym_lst) +void color::read_archive(const archive_node& n, lst& sym_lst) { + inherited::read_archive(n, sym_lst); unsigned rl; n.find_unsigned("label", rl); representation_label = rl; @@ -116,11 +117,11 @@ void color::archive(archive_node &n) const n.add_unsigned("label", representation_label); } -DEFAULT_UNARCHIVE(color) -DEFAULT_ARCHIVING(su3one) -DEFAULT_ARCHIVING(su3t) -DEFAULT_ARCHIVING(su3f) -DEFAULT_ARCHIVING(su3d) +GINAC_BIND_UNARCHIVER(color); +GINAC_BIND_UNARCHIVER(su3one); +GINAC_BIND_UNARCHIVER(su3t); +GINAC_BIND_UNARCHIVER(su3f); +GINAC_BIND_UNARCHIVER(su3d); ////////// // functions overriding virtual functions from base classes