/** @file lst.cpp
*
- * Implementation of GiNaC's lst.
+ * Implementation of GiNaC's lst. */
+
+/*
* This file was generated automatically by container.pl.
* Please do not modify it directly, edit the perl script instead!
* container.pl options: $CONTAINER=lst
#include "lst.h"
#include "ex.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
#define RESERVE(s,size) // no reserve needed for list
lst::lst(exlist * vp) : basic(TINFO_lst)
{
debugmsg("lst constructor from exlist *",LOGLEVEL_CONSTRUCT);
- ASSERT(vp!=0);
+ GINAC_ASSERT(vp!=0);
seq.swap(*vp);
delete vp;
}
ex & lst::let_op(int const i)
{
- ASSERT(i>=0);
- ASSERT(i<nops());
+ GINAC_ASSERT(i>=0);
+ GINAC_ASSERT(i<nops());
exlist::iterator it=seq.begin();
for (int j=0; j<i; j++) {
bool lst::has(ex const & other) const
{
- ASSERT(other.bp!=0);
+ GINAC_ASSERT(other.bp!=0);
if (is_equal(*other.bp)) return true;
for (exlist::const_iterator it=seq.begin(); it!=seq.end(); ++it) {
if ((*it).has(other)) return true;
int lst::compare_same_type(basic const & other) const
{
- ASSERT(is_of_type(other,lst));
+ GINAC_ASSERT(is_of_type(other,lst));
lst const & o=static_cast<lst const &>
(const_cast<basic &>(other));
int cmpval;
bool lst::is_equal_same_type(basic const & other) const
{
- ASSERT(is_of_type(other,lst));
+ GINAC_ASSERT(is_of_type(other,lst));
lst const & o=static_cast<lst const &>
(const_cast<basic &>(other));
if (seq.size()!=o.seq.size()) return false;
const lst some_lst;
type_info const & typeid_lst=typeid(some_lst);
+} // namespace GiNaC
+