/** @file exprseq.cpp
*
- * Implementation of GiNaC's exprseq.
+ * Implementation of GiNaC's exprseq. */
+
+/*
* This file was generated automatically by container.pl.
* Please do not modify it directly, edit the perl script instead!
* container.pl options: $CONTAINER=exprseq
#include <iostream>
#include <stdexcept>
-#include "ginac.h"
+#include "exprseq.h"
+#include "ex.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
#define RESERVE(s,size) (s).reserve(size)
// public
-exprseq::exprseq() : basic(TINFO_EXPRSEQ)
+exprseq::exprseq() : basic(TINFO_exprseq)
{
debugmsg("exprseq default constructor",LOGLEVEL_CONSTRUCT);
}
// public
-exprseq::exprseq(exvector const & s, bool discardable) : basic(TINFO_EXPRSEQ)
+exprseq::exprseq(exvector const & s, bool discardable) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from exvector",
LOGLEVEL_CONSTRUCT);
}
}
-exprseq::exprseq(exvector * vp) : basic(TINFO_EXPRSEQ)
+exprseq::exprseq(exvector * vp) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from exvector *",LOGLEVEL_CONSTRUCT);
- ASSERT(vp!=0);
+ GINAC_ASSERT(vp!=0);
seq.swap(*vp);
delete vp;
}
-exprseq::exprseq(ex const & e1) : basic(TINFO_EXPRSEQ)
+exprseq::exprseq(ex const & e1) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 1 ex",
LOGLEVEL_CONSTRUCT);
seq.push_back(e1);
}
-exprseq::exprseq(ex const & e1, ex const & e2) : basic(TINFO_EXPRSEQ)
+exprseq::exprseq(ex const & e1, ex const & e2) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 2 ex",
LOGLEVEL_CONSTRUCT);
}
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3)
- : basic(TINFO_EXPRSEQ)
+ : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 3 ex",
LOGLEVEL_CONSTRUCT);
}
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
- ex const & e4) : basic(TINFO_EXPRSEQ)
+ ex const & e4) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 4 ex",
LOGLEVEL_CONSTRUCT);
}
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
- ex const & e4, ex const & e5) : basic(TINFO_EXPRSEQ)
+ ex const & e4, ex const & e5) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 5 ex",
LOGLEVEL_CONSTRUCT);
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
ex const & e4, ex const & e5, ex const & e6)
- : basic(TINFO_EXPRSEQ)
+ : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 6 ex",
LOGLEVEL_CONSTRUCT);
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
ex const & e4, ex const & e5, ex const & e6,
- ex const & e7) : basic(TINFO_EXPRSEQ)
+ ex const & e7) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 7 ex",
LOGLEVEL_CONSTRUCT);
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
ex const & e4, ex const & e5, ex const & e6,
- ex const & e7, ex const & e8) : basic(TINFO_EXPRSEQ)
+ ex const & e7, ex const & e8) : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 8 ex",
LOGLEVEL_CONSTRUCT);
exprseq::exprseq(ex const & e1, ex const & e2, ex const & e3,
ex const & e4, ex const & e5, ex const & e6,
ex const & e7, ex const & e8, ex const & e9)
- : basic(TINFO_EXPRSEQ)
+ : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 9 ex",
LOGLEVEL_CONSTRUCT);
ex const & e4, ex const & e5, ex const & e6,
ex const & e7, ex const & e8, ex const & e9,
ex const &e10)
- : basic(TINFO_EXPRSEQ)
+ : basic(TINFO_exprseq)
{
debugmsg("exprseq constructor from 10 ex",
LOGLEVEL_CONSTRUCT);
bool exprseq::has(ex const & other) const
{
- ASSERT(other.bp!=0);
+ GINAC_ASSERT(other.bp!=0);
if (is_equal(*other.bp)) return true;
for (exvector::const_iterator it=seq.begin(); it!=seq.end(); ++it) {
if ((*it).has(other)) return true;
int exprseq::compare_same_type(basic const & other) const
{
- ASSERT(is_of_type(other,exprseq));
+ GINAC_ASSERT(is_of_type(other,exprseq));
exprseq const & o=static_cast<exprseq const &>
(const_cast<basic &>(other));
int cmpval;
bool exprseq::is_equal_same_type(basic const & other) const
{
- ASSERT(is_of_type(other,exprseq));
+ GINAC_ASSERT(is_of_type(other,exprseq));
exprseq const & o=static_cast<exprseq const &>
(const_cast<basic &>(other));
if (seq.size()!=o.seq.size()) return false;
const exprseq some_exprseq;
type_info const & typeid_exprseq=typeid(some_exprseq);
+} // namespace GiNaC
+