#include "archive.h"
#include "debugmsg.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
GINAC_IMPLEMENT_REGISTERED_CLASS(structure, basic)
//////////
-// default constructor, destructor, copy constructor assignment operator and helpers
+// default ctor, dtor, copy ctor assignment operator and helpers
//////////
// public
structure::structure()
{
- debugmsg("structure default constructor",LOGLEVEL_CONSTRUCT);
+ debugmsg("structure default ctor",LOGLEVEL_CONSTRUCT);
tinfo_key = TINFO_structure;
}
}
//////////
-// other constructors
+// other ctors
//////////
// none
/** Construct object from archive_node. */
structure::structure(const archive_node &n, const lst &sym_lst) : inherited(n, sym_lst)
{
- debugmsg("structure constructor from archive_node", LOGLEVEL_CONSTRUCT);
+ debugmsg("structure ctor from archive_node", LOGLEVEL_CONSTRUCT);
}
/** Unarchive the object. */
// public
-basic * structure::duplicate() const
-{
- debugmsg("structure duplicate",LOGLEVEL_DUPLICATE);
- return new structure(*this);
-}
-
void structure::printraw(std::ostream & os) const
{
debugmsg("structure printraw",LOGLEVEL_PRINT);
- os << "structure(hash=" << hashvalue << ",flags=" << flags << ")";
+ os << class_name() << "(hash=" << hashvalue << ",flags=" << flags << ")";
}
void structure::print(std::ostream & os, unsigned upper_precedence) const
{
debugmsg("structure print",LOGLEVEL_PRINT);
- os << "structure()";
+ os << class_name() << "()";
}
void structure::printtree(std::ostream & os, unsigned indent) const
return registered_structures().size()-1;
}
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC