/** @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
* $prepend=0
* $let_op=0
* $open_bracket=(
- * $close_bracket=) */
-
-/*
+ * $close_bracket=)
+ *
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include "exprseq.h"
#include "ex.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
#define RESERVE(s,size) (s).reserve(size)
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;
}
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
+