]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.h
- Removed obsolete (even for Cint!) malloc_alloc template arguments.
[ginac.git] / ginac / symbol.h
index cda3e736fb647fa9e1367e445afbd0c6573ad9e4..aec27aee7d99af180a23fec62757341b6f7f00bb 100644 (file)
@@ -68,6 +68,7 @@ protected:
        // other ctors
 public:
        explicit symbol(const std::string & initname);
+       explicit symbol(const std::string & initname, const std::string & texname);
        
        // functions overriding virtual functions from base classes
 public:
@@ -95,17 +96,19 @@ protected:
 public:
        void assign(const ex & value);
        void unassign(void);
-       void setname(const std::string & n) { name = n; }
-       std::string getname(void) const { return name; }
+       void set_name(const std::string & n) { name = n; }
+       std::string get_name(void) const { return name; }
 private:
        std::string & autoname_prefix(void);
+       std::string default_TeX_name(void) const;
 
 // member variables
 
 protected:
        assigned_ex_info * asexinfop;   ///< ptr to assigned expression, deprecated
-       unsigned serial;    ///< unique serial number for comparison
-       std::string name;   ///< printname of this symbol
+       unsigned serial;       ///< unique serial number for comparison
+       std::string name;      ///< printname of this symbol
+       std::string TeX_name;  ///< LaTeX name of this symbol
 private:
        static unsigned next_serial;
 };