mystring.cpp (ginac-1.7.11.tar.bz2) | : | mystring.cpp (ginac-1.8.0.tar.bz2) | ||
---|---|---|---|---|
/** | /** | |||
* @file mystring.cpp Example of extending GiNaC: writing new classes | * @file mystring.cpp Example of extending GiNaC: writing new classes | |||
*/ | */ | |||
#include <iostream> | #include <iostream> | |||
#include <string> | #include <string> | |||
#include <stdexcept> | #include <stdexcept> | |||
#ifdef IN_GINAC | ||||
#include "ginac.h" | ||||
#else | ||||
#include <ginac/ginac.h> | #include <ginac/ginac.h> | |||
#endif | ||||
using namespace std; | using namespace std; | |||
using namespace GiNaC; | using namespace GiNaC; | |||
class mystring : public basic | class mystring : public basic | |||
{ | { | |||
GINAC_DECLARE_REGISTERED_CLASS(mystring, basic) | GINAC_DECLARE_REGISTERED_CLASS(mystring, basic) | |||
public: | public: | |||
mystring(const string &s); | mystring(const string &s); | |||
ex eval() const override; | ex eval() const override; | |||
private: | private: | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added |