X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Frelational.cpp;h=55b705447d7ab254b6aea24ee28dc6e9e4b14036;hp=22890646cc93fcdb44697da4c1828704ec73fd02;hb=61434b009f39c40ea85ae7bb4ec14d8d203e2a85;hpb=2565309dd7c38635c191eacf2a4af9b23fc0d310 diff --git a/ginac/relational.cpp b/ginac/relational.cpp index 22890646..55b70544 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -28,9 +28,9 @@ #include "utils.h" #include "debugmsg.h" -#ifndef NO_GINAC_NAMESPACE +#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_GINAC_NAMESPACE +#endif // ndef NO_NAMESPACE_GINAC GINAC_IMPLEMENT_REGISTERED_CLASS(relational, basic) @@ -348,7 +348,17 @@ unsigned relational::return_type_tinfo(void) const // new virtual functions which can be overridden by derived classes ////////// -// none +/** Left hand side of relational. */ +ex relational::lhs(void) const +{ + return lh; +} + +/** Right hand side of relational. */ +ex relational::rhs(void) const +{ + return rh; +} ////////// // non-virtual functions in this class @@ -406,6 +416,6 @@ unsigned relational::precedence=20; const relational some_relational; const type_info & typeid_relational=typeid(some_relational); -#ifndef NO_GINAC_NAMESPACE +#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_GINAC_NAMESPACE +#endif // ndef NO_NAMESPACE_GINAC