/** @file structure.cpp
*
- * Implementation of 'abstract' class structure.
- *
- * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ * Implementation of 'abstract' class structure. */
+
+/*
+ * GiNaC Copyright (C) 1999-2000 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
#include <string>
-#include "ginac.h"
+#include "structure.h"
+#include "debugmsg.h"
+
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
//////////
// 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);
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE