]> www.ginac.de Git - ginac.git/blobdiff - ginac/expair.h
implemented operator-> for the iterators
[ginac.git] / ginac / expair.h
index 513dd5c96442b294f1d4a2a755196155a8459334..2610e8fa47e3e0ec3e4fa3525aeb46f6cf54084f 100644 (file)
@@ -3,7 +3,7 @@
  *  Definition of expression pairs (building blocks of expairseq). */
 
 /*
- *  GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2003 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
@@ -38,20 +38,7 @@ class expair
 {
 public:
        expair() : rest(0), coeff(1) { }
-       ~expair() { }
-       expair(const expair & other) : rest(other.rest), coeff(other.coeff)
-       {
-               GINAC_ASSERT(is_exactly_a<numeric>(coeff));
-       }
-       const expair & operator=(const expair & other)
-       {
-               if (this != &other) {
-                       rest = other.rest;
-                       coeff = other.coeff;
-               }
-               return *this;
-       }
-       
+
        /** Construct an expair from two ex. */
        expair(const ex & r, const ex & c) : rest(r), coeff(c)
        {
@@ -85,7 +72,7 @@ public:
        void print(std::ostream & os) const;
        
        /** True if this is of the form (numeric,ex(1)). */
-       bool is_canonical_numeric(void) const
+       bool is_canonical_numeric() const
        {
                GINAC_ASSERT(is_exactly_a<numeric>(coeff));
                return (is_exactly_a<numeric>(rest) && (coeff.is_equal(1)));