* Interface to GiNaC's ABC. */
/*
- * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2008 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
#include <cstddef> // for size_t
#include <vector>
+#include <set>
#include <map>
// CINT needs <algorithm> to work properly with <vector>
#include <algorithm>
class print_context;
typedef std::vector<ex> exvector;
+typedef std::set<ex, ex_is_less> exset;
typedef std::map<ex, ex, ex_is_less> exmap;
// Define this to enable some statistical output for comparisons and hashing
// pattern matching
virtual bool has(const ex & other, unsigned options = 0) const;
- virtual bool match(const ex & pattern, lst & repl_lst) const;
+ virtual bool match(const ex & pattern, exmap & repls) const;
protected:
virtual bool match_same_type(const basic & other) const;
public:
virtual unsigned return_type() const;
virtual tinfo_t return_type_tinfo() const;
- // complex conjugation
+ // functions for complex expressions
virtual ex conjugate() const;
+ virtual ex real_part() const;
+ virtual ex imag_part() const;
// functions that should be called from class ex only
protected: