#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)
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) {
// protected
-void relational::copy(relational const & other)
+void relational::copy(const relational & other)
{
basic::copy(other);
lh=other.lh;
// 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;
return 2;
}
-ex & relational::let_op(int const i)
+ex & relational::let_op(int i)
{
GINAC_ASSERT(i>=0);
GINAC_ASSERT(i<2);
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<relational const &>(const_cast<basic &>(other));
+ const relational & oth=static_cast<const relational &>(const_cast<basic &>(other));
int cmpval;
//////////
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