From 4e3986a8583584945681ee2dc1560e0fc08e4978 Mon Sep 17 00:00:00 2001 From: Alexander Frink Date: Fri, 12 Nov 1999 21:36:04 +0000 Subject: [PATCH 1/1] added setname/getname to idx --- ginac/idx.h | 2 ++ ginac/symbol.cpp | 1 + 2 files changed, 3 insertions(+) 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 -- 2.44.0