#include "idx.h"
#include "debugmsg.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
GINAC_IMPLEMENT_REGISTERED_CLASS(indexed, exprseq)
tinfo_key=TINFO_indexed;
}
-indexed::~indexed()
-{
- debugmsg("indexed destructor",LOGLEVEL_DESTRUCT);
- destroy(false);
-}
-
-indexed::indexed(const indexed & other)
-{
- debugmsg("indexed copy constructor",LOGLEVEL_CONSTRUCT);
- copy (other);
-}
-
-const indexed & indexed::operator=(const indexed & other)
-{
- debugmsg("indexed operator=",LOGLEVEL_ASSIGNMENT);
- if (this != &other) {
- destroy(true);
- copy(other);
- }
- return *this;
-}
-
// protected
void indexed::copy(const indexed & other)
// public
-basic * indexed::duplicate() const
-{
- debugmsg("indexed duplicate",LOGLEVEL_DUPLICATE);
- return new indexed(*this);
-}
-
void indexed::printraw(std::ostream & os) const
{
debugmsg("indexed printraw",LOGLEVEL_PRINT);
return true;
}
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC