/** @file structure.cpp
*
- * Implementation of 'abstract' class structure.
- *
+ * Implementation of 'abstract' class structure. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <string>
-#include "ginac.h"
+#include "structure.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
structure::structure()
{
debugmsg("structure default constructor",LOGLEVEL_CONSTRUCT);
- tinfo_key = TINFO_STRUCTURE;
+ tinfo_key = TINFO_structure;
}
structure::~structure()
int structure::compare_same_type(basic const & other) const
{
- ASSERT(is_of_type(other, structure));
+ GINAC_ASSERT(is_of_type(other, structure));
return 0; // all structures are the same
}
bool structure::is_equal_same_type(basic const & other) const
{
- ASSERT(is_of_type(other, structure));
+ GINAC_ASSERT(is_of_type(other, structure));
return true; // all structures are the same
}
const structure some_structure;
type_info const & typeid_structure=typeid(some_structure);
+} // namespace GiNaC