From: Alexander Frink Date: Fri, 12 Nov 1999 21:36:04 +0000 (+0000) Subject: added setname/getname to idx X-Git-Tag: release_0-5-0~171 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=4e3986a8583584945681ee2dc1560e0fc08e4978 added setname/getname to idx --- diff --git a/ginac/idx.h b/ginac/idx.h index f32722f7..c742db6b 100644 --- a/ginac/idx.h +++ b/ginac/idx.h @@ -70,6 +70,8 @@ public: bool is_symbolic(void) const; unsigned get_value(void) const; bool is_covariant(void) const; + void setname(string const & n) {name=n;} + string getname(void) const {return name;} // member variables protected: diff --git a/ginac/symbol.cpp b/ginac/symbol.cpp index 839a105a..b32418f1 100644 --- a/ginac/symbol.cpp +++ b/ginac/symbol.cpp @@ -25,6 +25,7 @@ #include "symbol.h" #include "lst.h" #include "utils.h" +#include "idx.h" ////////// // default constructor, destructor, copy constructor assignment operator and helpers