]> www.ginac.de Git - ginac.git/blob - ginac/exprseq_suppl.cpp
* expairseq::combine_same_terms_sorted_seq() (expairseq.cpp): make this
[ginac.git] / ginac / exprseq_suppl.cpp
1 /** @file exprseq_suppl.cpp
2  *
3  *  Supplement to exprseq.cpp, contains the parts which were not automatically
4  *  generated. */
5
6 /*
7  *  GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, write to the Free Software
21  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23
24 #include "exprseq.h"
25 #include "ex.h"
26
27 namespace GiNaC {
28
29 bool exprseq::info(unsigned inf) const
30 {
31         if (inf==info_flags::exprseq)
32                 return 1;
33         return basic::info(inf);
34 }
35
36 ex & exprseq::let_op(int i)
37 {
38         GINAC_ASSERT(i>=0);
39         GINAC_ASSERT(i<nops());
40         
41         return seq[i];
42 }
43
44 } // namespace GiNaC