* Implementation of GiNaC's symbolic objects. */
/*
- * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2003 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
namespace GiNaC {
-GINAC_IMPLEMENT_REGISTERED_CLASS_NO_CTORS(symbol, basic)
+GINAC_IMPLEMENT_REGISTERED_CLASS(symbol, basic)
//////////
// default ctor, dtor, copy ctor, assignment operator and helpers
TeX_name = other.TeX_name;
serial = other.serial;
asexinfop = other.asexinfop;
- ++asexinfop->refcount;
+ ++(asexinfop->refcount);
}
void symbol::destroy(bool call_parent)
// public
-symbol::symbol(const symbol & other)
-{
- copy(other);
-}
-
symbol::symbol(const std::string & initname) : inherited(TINFO_symbol)
{
name = initname;
// public
-basic *symbol::duplicate() const
-{
- return new symbol(*this);
-}
-
void symbol::print(const print_context & c, unsigned level) const
{
if (is_a<print_tree>(c)) {