]> www.ginac.de Git - ginac.git/blobdiff - ginac/isospin.cpp
* New funny timing added: compute an antipode in Yukawa theory.
[ginac.git] / ginac / isospin.cpp
index cd6d45cadd47d6b6abcb80880000bf10987e22a3..2a2a254dcd827371a47f10fef4edb91af26445bb 100644 (file)
@@ -31,9 +31,7 @@
 #include "utils.h"
 #include "debugmsg.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 GINAC_IMPLEMENT_REGISTERED_CLASS(isospin, indexed)
 
@@ -51,28 +49,6 @@ isospin::isospin()
        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)
@@ -143,12 +119,6 @@ void isospin::archive(archive_node &n) const
 
 // 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);
@@ -242,16 +212,7 @@ std::string & isospin::autoname_prefix(void)
 
 // 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