fieker-DuValspielwiese
Last change
on this file since 7b8818 was
44ca2f,
checked in by Oleksandr Motsak <motsak@…>, 11 years ago
|
Update due to links separation
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[724944] | 1 | #ifndef IDREC_H |
---|
| 2 | #define IDREC_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
| 6 | /* |
---|
[9127cc] | 7 | * ABSTRACT interpreter type for variables |
---|
[724944] | 8 | */ |
---|
| 9 | |
---|
[79ea48] | 10 | #include <Singular/lists.h> |
---|
| 11 | #include <Singular/attrib.h> |
---|
[44ca2f] | 12 | #include <Singular/links/silink.h> |
---|
[724944] | 13 | |
---|
[84fc1f] | 14 | class bigintmat; |
---|
[49abe32] | 15 | typedef union uutypes utypes; |
---|
| 16 | union uutypes |
---|
| 17 | { |
---|
| 18 | int i; |
---|
| 19 | ring uring; |
---|
| 20 | poly p; |
---|
| 21 | number n; |
---|
| 22 | ideal uideal; |
---|
| 23 | map umap; |
---|
| 24 | matrix umatrix; |
---|
| 25 | char * ustring; |
---|
| 26 | intvec * iv; |
---|
[9127cc] | 27 | bigintmat * bim; |
---|
[49abe32] | 28 | lists l; |
---|
| 29 | si_link li; |
---|
| 30 | package pack; |
---|
| 31 | procinfo * pinf; |
---|
| 32 | }; |
---|
| 33 | |
---|
[724944] | 34 | class idrec |
---|
| 35 | { |
---|
| 36 | public: |
---|
| 37 | /* !! do not change the first 6 entries !! (see subexpr.h: sleftv) */ |
---|
| 38 | idhdl next; |
---|
| 39 | const char *id; |
---|
| 40 | utypes data; |
---|
| 41 | attr attribute; |
---|
| 42 | BITSET flag; |
---|
| 43 | int typ; |
---|
| 44 | |
---|
| 45 | short lev; |
---|
| 46 | short ref; |
---|
| 47 | int id_i; |
---|
| 48 | |
---|
| 49 | idrec() { memset(this,0,sizeof(*this)); } |
---|
| 50 | idhdl get(const char * s, int lev); |
---|
| 51 | idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE); |
---|
[81c5cb] | 52 | char * String(BOOLEAN typed = FALSE); |
---|
[724944] | 53 | // ~idrec(); |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | #endif |
---|
| 57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.