#include "utils.h"
#include "debugmsg.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
GINAC_IMPLEMENT_REGISTERED_CLASS(clifford, lortensor)
tinfo_key = TINFO_clifford;
}
-clifford::~clifford()
-{
- debugmsg("clifford destructor",LOGLEVEL_DESTRUCT);
- destroy(false);
-}
-
-clifford::clifford(const clifford & other)
-{
- debugmsg("clifford copy constructor",LOGLEVEL_CONSTRUCT);
- copy(other);
-}
-
-const clifford & clifford::operator=(const clifford & other)
-{
- debugmsg("clifford operator=",LOGLEVEL_ASSIGNMENT);
- if (this != &other) {
- destroy(true);
- copy(other);
- }
- return *this;
-}
-
// protected
void clifford::copy(const clifford & other)
// public
-basic * clifford::duplicate() const
-{
- debugmsg("clifford duplicate",LOGLEVEL_DUPLICATE);
- return new clifford(*this);
-}
-
void clifford::printraw(std::ostream & os) const
{
debugmsg("clifford printraw",LOGLEVEL_PRINT);
return simplified_ncmul(v);
}
-//////////
-// virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-// none
-
-//////////
-// static member variables
-//////////
-
-// none
-
//////////
// friend functions
//////////
return clifford("gamma", mu);
}
-//////////
-// global constants
-//////////
-
-const clifford some_clifford;
-const std::type_info & typeid_clifford = typeid(some_clifford);
-
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC