added setname/getname to idx
authorAlexander Frink <Alexander.Frink@uni-mainz.de>
Fri, 12 Nov 1999 21:36:04 +0000 (21:36 +0000)
committerAlexander Frink <Alexander.Frink@uni-mainz.de>
Fri, 12 Nov 1999 21:36:04 +0000 (21:36 +0000)
ginac/idx.h
ginac/symbol.cpp

index f32722f784e1fc6a4a1c56102a4f92b4fac6c9c3..c742db6bce9c38b6dd3dd094f3019cc69003eea8 100644 (file)
@@ -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:
index 839a105a383c515fa9f8ff7ded9dbb3c7e1317fd..b32418f1aa50e70ff1029dc52308568f30a3b2e4 100644 (file)
@@ -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