Annotation of python/pyGiNaC/wrappers2/pyfunc.hpp, revision 1.1

1.1     ! pearu       1: 
        !             2: #include <ginac/ginac.h>
        !             3: 
        !             4: //#define PYGINAC_pyfunc
        !             5: 
        !             6: namespace GiNaC {
        !             7:   const unsigned TINFO_pyfunc = 0x000c1234U;
        !             8:   
        !             9:   class pyfunc : public basic {
        !            10:     GINAC_DECLARE_REGISTERED_CLASS(pyfunc, basic);
        !            11:   public:
        !            12:     pyfunc(unsigned ser) : inherited(TINFO_pyfunc) { this->serial = ser; }
        !            13:     unsigned get_serial(void) const { return this->serial; }
        !            14:     ex derivative(const symbol & s) const { return _ex0(); }
        !            15:   private:
        !            16:     unsigned serial;
        !            17:   }; 
        !            18: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>