X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fisospin.cpp;h=2a2a254dcd827371a47f10fef4edb91af26445bb;hp=0eefc1210e0faf21213ddc8ec55bd4626a6f241a;hb=dad107ff48f68d45e72469a8716df375ae145cf3;hpb=9e2d60e206395fc9908e1f9025e50c76b3d7c182 diff --git a/ginac/isospin.cpp b/ginac/isospin.cpp index 0eefc121..2a2a254d 100644 --- a/ginac/isospin.cpp +++ b/ginac/isospin.cpp @@ -4,7 +4,7 @@ * No real implementation yet, to be done. */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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