X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fexprseq.h;h=59f6821f2a1b6f0c93521774e9b3956f88c7c67a;hp=179cfbde767e83d6357838eb7c5a151a73ab3766;hb=9eab44408b9213d8909b7a9e525f404ad06064dd;hpb=487e5659efe401683eee0381b0d23f967ffffc3c;ds=sidebyside diff --git a/ginac/exprseq.h b/ginac/exprseq.h index 179cfbde..59f6821f 100644 --- a/ginac/exprseq.h +++ b/ginac/exprseq.h @@ -1,6 +1,8 @@ /** @file exprseq.h * - * Definition of GiNaC's exprseq. + * Definition 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 @@ -9,9 +11,8 @@ * $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 @@ -34,6 +35,9 @@ #include #include +#include + +namespace GiNaC { typedef vector exvector; @@ -124,9 +128,13 @@ protected: extern const exprseq some_exprseq; extern type_info const & typeid_exprseq; -// macros +// utility functions +inline const exprseq &ex_to_exprseq(const ex &e) +{ + return static_cast(*e.bp); +} -#define ex_to_exprseq(X) (static_cast(*(X).bp)) +} // namespace GiNaC #endif // ndef __GINAC_EXPRSEQ_H__