#include "utils.h"
#include "debugmsg.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
GINAC_IMPLEMENT_REGISTERED_CLASS(isospin, indexed)
tinfo_key=TINFO_isospin;
}
-isospin::~isospin()
-{
- debugmsg("isospin destructor",LOGLEVEL_DESTRUCT);
- destroy(false);
-}
-
-isospin::isospin(const isospin & other)
-{
- debugmsg("isospin copy constructor",LOGLEVEL_CONSTRUCT);
- copy (other);
-}
-
-const isospin & isospin::operator=(const isospin & other)
-{
- debugmsg("isospin operator=",LOGLEVEL_ASSIGNMENT);
- if (this != &other) {
- destroy(true);
- copy(other);
- }
- return *this;
-}
-
// protected
void isospin::copy(const isospin & other)
// public
-basic * isospin::duplicate() const
-{
- debugmsg("isospin duplicate",LOGLEVEL_DUPLICATE);
- return new isospin(*this);
-}
-
void isospin::printraw(std::ostream & os) const
{
debugmsg("isospin printraw",LOGLEVEL_PRINT);
// private
-unsigned isospin::next_serial=0;
-
-//////////
-// global constants
-//////////
-
-const isospin some_isospin;
-const std::type_info & typeid_isospin = typeid(some_isospin);
+unsigned isospin::next_serial = 0;
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC