*
* Implementation of GiNaC's color indices. */
+/*
+ * GiNaC Copyright (C) 1999 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include <stdexcept>
-#include "ginac.h"
+#include "coloridx.h"
#include "utils.h"
//////////
debugmsg("coloridx default constructor",LOGLEVEL_CONSTRUCT);
// serial is incremented in idx::idx()
name="color"+ToString(serial);
- tinfo_key=TINFO_COLORIDX;
+ tinfo_key=TINFO_coloridx;
}
coloridx::~coloridx()
debugmsg("coloridx constructor from bool",LOGLEVEL_CONSTRUCT);
// serial is incremented in idx::idx(bool)
name="color"+ToString(serial);
- tinfo_key=TINFO_COLORIDX;
+ tinfo_key=TINFO_coloridx;
}
coloridx::coloridx(string const & n, bool cov) : idx(n,cov)
{
debugmsg("coloridx constructor from string,bool",LOGLEVEL_CONSTRUCT);
- tinfo_key=TINFO_COLORIDX;
+ tinfo_key=TINFO_coloridx;
}
coloridx::coloridx(char const * n, bool cov) : idx(n,cov)
{
debugmsg("coloridx constructor from char*,bool",LOGLEVEL_CONSTRUCT);
- tinfo_key=TINFO_COLORIDX;
+ tinfo_key=TINFO_coloridx;
}
coloridx::coloridx(unsigned const v, bool cov) : idx(v,cov)
{
debugmsg("coloridx constructor from unsigned,bool",LOGLEVEL_CONSTRUCT);
- tinfo_key=TINFO_COLORIDX;
+ tinfo_key=TINFO_coloridx;
}
//////////