* Implementation of GiNaC's symbolic objects. */
/*
- * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "symbol.h"
#include "lst.h"
#include "archive.h"
-#include "tostring.h"
#include "utils.h"
#include "hash_seed.h"
#include "inifcns.h"
std::string symbol::get_name() const
{
if (name.empty()) {
- std::ostringstream s;
- s << "symbol" << serial;
- name = s.str();
+ name = "symbol" + std::to_string(serial);
}
return name;
}
+std::string symbol::get_TeX_name() const
+{
+ if (TeX_name.empty()) {
+ return get_default_TeX_name(get_name());
+ }
+ return TeX_name;
+}
+
// protected
void symbol::do_print(const print_context & c, unsigned level) const