X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fexpairseq.h;h=13e0d161312d89fa38e98a3418f597b6e6124caf;hp=1b5e211ab2c2620640e717f16f12abe09e848987;hb=dc9588b89a3f53b0d63b0a80ee7d67a98580c067;hpb=ed21ddd5e2bc0af018c10934342f526d0ae4b7a7 diff --git a/ginac/expairseq.h b/ginac/expairseq.h index 1b5e211a..13e0d161 100644 --- a/ginac/expairseq.h +++ b/ginac/expairseq.h @@ -3,7 +3,7 @@ * Interface to sequences of expression pairs. */ /* - * GiNaC Copyright (C) 1999-2001 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 @@ -63,7 +63,7 @@ class expairseq : public basic // member functions - // default ctor, dtor, copy ctor assignment operator and helpers + // default ctor, dtor, copy ctor, assignment operator and helpers public: expairseq() : basic(TINFO_expairseq) #if EXPAIRSEQ_USE_HASHTAB @@ -83,7 +83,7 @@ public: expairseq(const epvector & v, const ex & oc); expairseq(epvector * vp, const ex & oc); // vp will be deleted - // functions overriding virtual functions from bases classes + // functions overriding virtual functions from base classes public: basic * duplicate() const; void print(const print_context & c, unsigned level = 0) const; @@ -147,7 +147,7 @@ protected: void remove_hashtab_entry(epvector::const_iterator element); void move_hashtab_entry(epvector::const_iterator oldpos, epvector::iterator newpos); - void sorted_insert(epplist & eppl, epp elem); + void sorted_insert(epplist & eppl, epvector::const_iterator elem); void build_hashtab_and_combine(epvector::iterator & first_numeric, epvector::iterator & last_non_zero, vector & touched, @@ -182,13 +182,6 @@ protected: // utility functions -/** Return the expairseq object handled by an ex. Deprecated: use ex_to(). - * This is unsafe: you need to check the type first. */ -inline const expairseq &ex_to_expairseq(const ex &e) -{ - return static_cast(*e.bp); -} - /** Specialization of is_exactly_a(obj) for expairseq objects. */ template<> inline bool is_exactly_a(const basic & obj) {