From: Christian Bauer Date: Sat, 7 Apr 2001 20:58:09 +0000 (+0000) Subject: added function::get_name() to return a function's print name X-Git-Tag: release_0-8-1~20 X-Git-Url: https://ginac.de/ginac.git/tutorial/ginac.git?a=commitdiff_plain;h=ef6c54747cb281fc0c390e8345641b3624efdaf9;p=ginac.git added function::get_name() to return a function's print name --- diff --git a/ginac/function.pl b/ginac/function.pl index 947830c4..b6c15814 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -363,6 +363,7 @@ public: static unsigned register_new(function_options const & opt); static unsigned find_function(const std::string &name, unsigned nparams); unsigned getserial(void) const {return serial;} + std::string get_name(void) const; // member variables @@ -957,6 +958,13 @@ unsigned function::find_function(const std::string &name, unsigned nparams) throw (std::runtime_error("no function '" + name + "' with " + ToString(nparams) + " parameters defined")); } +/** Return the print name of the function. */ +std::string function::get_name(void) const +{ + GINAC_ASSERT(serial