-/** @file exprseq_suppl.cpp
+/** @file exprseq.cpp
*
- * Supplement to exprseq.cpp, contains the parts which were not automatically
- * generated. */
+ * Implementation of GiNaC's exprseq. */
/*
* GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
*/
#include "exprseq.h"
-#include "ex.h"
namespace GiNaC {
-bool exprseq::info(unsigned inf) const
-{
- if (inf==info_flags::exprseq)
- return 1;
- return basic::info(inf);
-}
+GINAC_IMPLEMENT_REGISTERED_CLASS(exprseq, basic)
-ex & exprseq::let_op(int i)
+/** Specialization of container::info() for exprseq. */
+bool exprseq::info(unsigned inf) const
{
- GINAC_ASSERT(i>=0);
- GINAC_ASSERT(i<nops());
-
- return seq[i];
+ if (inf == info_flags::exprseq)
+ return true;
+ else
+ return inherited::info(inf);
}
} // namespace GiNaC