X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Frelational.cpp;h=9511319cc4f7965b7b403b4e7404a60d1cc998c6;hp=d854e47d13f5960db0eb838772d764d89dba22ee;hb=7a473d58cbf2ec744ef230e0503a071f9ab7aeec;hpb=0a1b35cf1e59c9e3aae33de8febaa1c8f4bbe630 diff --git a/ginac/relational.cpp b/ginac/relational.cpp index d854e47d..9511319c 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) @@ -51,13 +51,13 @@ relational::~relational() destroy(0); } -relational::relational(relational const & other) +relational::relational(const relational & other) { debugmsg("relational copy constructor",LOGLEVEL_CONSTRUCT); copy(other); } -relational const & relational::operator=(relational const & other) +const relational & relational::operator=(const relational & other) { debugmsg("relational operator=",LOGLEVEL_ASSIGNMENT); if (this != &other) { @@ -69,7 +69,7 @@ relational const & relational::operator=(relational const & other) // protected -void relational::copy(relational const & other) +void relational::copy(const relational & other) { basic::copy(other); lh=other.lh; @@ -88,7 +88,7 @@ void relational::destroy(bool call_parent) // public -relational::relational(ex const & lhs, ex const & rhs, operators oper) : basic(TINFO_relational) +relational::relational(const ex & lhs, const ex & rhs, operators oper) : basic(TINFO_relational) { debugmsg("relational constructor ex,ex,operator",LOGLEVEL_CONSTRUCT); lh=lhs; @@ -270,7 +270,7 @@ unsigned relational::nops() const return 2; } -ex & relational::let_op(int const i) +ex & relational::let_op(int i) { GINAC_ASSERT(i>=0); GINAC_ASSERT(i<2); @@ -303,17 +303,17 @@ ex relational::evalf(int level) const setflag(status_flags::dynallocated); } -ex relational::simplify_ncmul(exvector const & v) const +ex relational::simplify_ncmul(const exvector & v) const { return lh.simplify_ncmul(v); } // protected -int relational::compare_same_type(basic const & other) const +int relational::compare_same_type(const basic & other) const { GINAC_ASSERT(is_exactly_of_type(other, relational)); - relational const & oth=static_cast(const_cast(other)); + const relational & oth=static_cast(const_cast(other)); int cmpval; @@ -404,8 +404,8 @@ unsigned relational::precedence=20; ////////// const relational some_relational; -type_info const & typeid_relational=typeid(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