]> www.ginac.de Git - ginac.git/blobdiff - ginac/lst.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / lst.h
index e96f950e6e6aec297436036d4ba58708722cf6b6..901638e5b8c72411b8d26078c7dcaf903b002392 100644 (file)
@@ -1,6 +1,8 @@
 /** @file lst.h
  *
- *  Definition of GiNaC's lst. 
+ *  Definition 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
@@ -33,6 +35,9 @@
 
 #include <list>
 #include <ginac/basic.h>
+#include <ginac/ex.h>
+
+namespace GiNaC {
 
 typedef list<ex> exlist;
 
@@ -124,9 +129,13 @@ protected:
 extern const lst some_lst;
 extern type_info const & typeid_lst;
 
-// macros
+// utility functions
+inline const lst &ex_to_lst(const ex &e)
+{
+    return static_cast<const lst &>(*e.bp);
+}
 
-#define ex_to_lst(X) (static_cast<lst const &>(*(X).bp))
+} // namespace GiNaC
 
 #endif // ndef __GINAC_LST_H__