#include <iostream>
#include <stdexcept>
-#include "ginac.h"
+#include "color.h"
+#include "ex.h"
+#include "coloridx.h"
+#include "ncmul.h"
+#include "numeric.h"
+#include "relational.h"
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
color::color() : type(invalid), representation_label(0)
{
debugmsg("color default constructor",LOGLEVEL_CONSTRUCT);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
}
color::~color()
{
debugmsg("color constructor from color_types,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
{
debugmsg("color constructor from color_types,ex,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
{
debugmsg("color constructor from color_types,ex,ex,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
{
debugmsg("color constructor from color_types,ex,ex,ex,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
{
debugmsg("color constructor from color_types,exvector,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
{
debugmsg("color constructor from color_types,exvector *,unsigned",LOGLEVEL_CONSTRUCT);
ASSERT(representation_label<MAX_REPRESENTATION_LABELS);
- tinfo_key=TINFO_COLOR;
+ tinfo_key=TINFO_color;
ASSERT(all_of_type_coloridx());
}
int color::compare_same_type(basic const & other) const
{
- ASSERT(other.tinfo() == TINFO_COLOR);
+ ASSERT(other.tinfo() == TINFO_color);
const color *o = static_cast<const color *>(&other);
if (type==o->type) {
if (representation_label==o->representation_label) {
bool color::is_equal_same_type(basic const & other) const
{
- ASSERT(other.tinfo() == TINFO_COLOR);
+ ASSERT(other.tinfo() == TINFO_color);
const color *o = static_cast<const color *>(&other);
if (type!=o->type) return false;
if (representation_label!=o->representation_label) return false;