* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <iostream>
#include <string>
#include "structure.h"
#include "archive.h"
-#include "debugmsg.h"
#include "utils.h"
#include "print.h"
GINAC_IMPLEMENT_REGISTERED_CLASS(structure, basic)
//////////
-// default ctor, dtor, copy ctor assignment operator and helpers
+// default ctor, dtor, copy ctor, assignment operator and helpers
//////////
DEFAULT_CTORS(structure)
DEFAULT_ARCHIVING(structure)
//////////
-// functions overriding virtual functions from bases classes
+// functions overriding virtual functions from base classes
//////////
void structure::print(const print_context & c, unsigned level) const
{
- debugmsg("structure print",LOGLEVEL_PRINT);
-
- if (is_of_type(c, print_tree)) {
+ if (is_a<print_tree>(c)) {
c.s << std::string(level, ' ') << class_name()
<< std::hex << ", hash=0x" << hashvalue << ", flags=0x" << flags << std::dec
bool structure::is_equal_same_type(const basic & other) const
{
- GINAC_ASSERT(is_of_type(other, structure));
+ GINAC_ASSERT(is_a<structure>(other));
return true; // all structures are the same
}