]> www.ginac.de Git - ginac.git/blobdiff - ginac/tinfos.h
lortensor class
[ginac.git] / ginac / tinfos.h
index 1d0f1dc3b242fc036f1129c2c5e967682efd061f..90c34f9ef43ed05ec6ea6d8302d6ac8ae8a7ed71 100644 (file)
@@ -1,7 +1,8 @@
 /** @file tinfos.h
  *
- *  Values for a do-it-yourself typeinfo scheme.
- *
+ *  Values for a do-it-yourself typeinfo scheme. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 #ifndef __GINAC_TINFOS_H__
 #define __GINAC_TINFOS_H__
 
-#define TINFO_BASIC        0x00000001U
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
 
-#define TINFO_EXPAIRSEQ    0x00010001U
-#define TINFO_ADD          0x00011001U
-#define TINFO_MUL          0x00011002U
+const unsigned TINFO_basic        = 0x00000001U;
 
-#define TINFO_SYMBOL       0x00020001U
-#define TINFO_CONSTANT     0x00021001U
+const unsigned TINFO_expairseq    = 0x00010001U;
+const unsigned TINFO_add          = 0x00011001U;
+const unsigned TINFO_mul          = 0x00011002U;
 
-#define TINFO_EXPRSEQ      0x00030001U
-#define TINFO_FUNCTION     0x00031001U
-#define TINFO_NCMUL        0x00031002U
-// #define TINFO_NFUNCTION     0x00031003U
+const unsigned TINFO_symbol       = 0x00020001U;
+const unsigned TINFO_constant     = 0x00021001U;
 
-#define TINFO_LST          0x00040001U
+const unsigned TINFO_exprseq      = 0x00030001U;
+const unsigned TINFO_function     = 0x00031001U;
+const unsigned TINFO_ncmul        = 0x00031002U;
 
-#define TINFO_MATRIX       0x00050001U
+const unsigned TINFO_lst          = 0x00040001U;
 
-#define TINFO_POWER        0x00060001U
+const unsigned TINFO_matrix       = 0x00050001U;
 
-#define TINFO_RELATIONAL   0x00070001U
+const unsigned TINFO_power        = 0x00060001U;
 
-#define TINFO_FAIL         0x00080001U
+const unsigned TINFO_relational   = 0x00070001U;
 
-#define TINFO_NUMERIC      0x00090001U
+const unsigned TINFO_fail         = 0x00080001U;
 
-#define TINFO_SERIES       0x000a0001U
+const unsigned TINFO_numeric      = 0x00090001U;
 
-#define TINFO_INDEXED      0x000b0001U
-#define TINFO_ALGEBRA      0x000b1001U
-#define TINFO_CLIFFORD     0x000b1101U
-#define TINFO_COLOR        0x000b1201U
-#define TINFO_ISOSPIN      0x000b1301U
-#define TINFO_SIMP_LOR     0x000b1401U
+const unsigned TINFO_series       = 0x000a0001U;
 
-#define TINFO_STRUCTURE    0x000c0001U
-// reserved up to          0x000cffffU
+const unsigned TINFO_indexed      = 0x000b0001U;
+const unsigned TINFO_algebra      = 0x000b1001U;
+const unsigned TINFO_clifford     = 0x000b1101U;
+const unsigned TINFO_color        = 0x000b1201U;
+const unsigned TINFO_isospin      = 0x000b1301U;
+const unsigned TINFO_simp_lor     = 0x000b1401U;
+const unsigned TINFO_lortensor    = 0x000b1501U;
+
+const unsigned TINFO_structure    = 0x000c0001U;
+// reserved up to                   0x000cffffU
 // for user defined structures
 
-#define TINFO_IDX          0x000d0001U
-#define TINFO_COLORIDX     0x000d1001U
-#define TINFO_LORENTZIDX   0x000d1002U
+const unsigned TINFO_idx          = 0x000d0001U;
+const unsigned TINFO_coloridx     = 0x000d1001U;
+const unsigned TINFO_lorentzidx   = 0x000d1002U;
+
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
 
 #endif // ndef __GINAC_TINFOS_H__