/[GiNaC]/ginac/clifford.h
ViewVC logotype

Diff of /ginac/clifford.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by cbauer, Tue Nov 16 16:35:24 1999 UTC revision 1.5 by cbauer, Wed Nov 17 16:57:58 1999 UTC
# Line 25  Line 25 
25    
26  #include <string>  #include <string>
27  #include <ginac/indexed.h>  #include <ginac/indexed.h>
28    #include <ginac/ex.h>
29    
30    namespace GiNaC {
31    
32  /** Base class for clifford object */  /** Base class for clifford object */
33  class clifford : public indexed  class clifford : public indexed
# Line 81  private: Line 84  private:
84  extern const clifford some_clifford;  extern const clifford some_clifford;
85  extern type_info const & typeid_clifford;  extern type_info const & typeid_clifford;
86    
87  // macros  // utility functions
88    inline const clifford &ex_to_clifford(const ex &e)
89    {
90            return static_cast<const clifford &>(*e.bp);
91    }
92    
93  #define ex_to_clifford(X) static_cast<clifford const &>(*(X).bp)  } // namespace GiNaC
94    
95  #endif // ndef __GINAC_CLIFFORD_H__  #endif // ndef __GINAC_CLIFFORD_H__
   
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15