spielwiese
Last change
on this file since 49abe32 was
49abe32,
checked in by Hans Schönemann <hannes@…>, 13 years ago
|
structs.h simplified
git-svn-id: file:///usr/local/Singular/svn/trunk@12749 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1011 bytes
|
Line | |
---|
1 | #ifndef IDREC_H |
---|
2 | #define IDREC_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id$ */ |
---|
7 | /* |
---|
8 | * ABSTRACT |
---|
9 | */ |
---|
10 | |
---|
11 | #include "structs.h" |
---|
12 | |
---|
13 | typedef union uutypes utypes; |
---|
14 | union uutypes |
---|
15 | { |
---|
16 | int i; |
---|
17 | ring uring; |
---|
18 | poly p; |
---|
19 | number n; |
---|
20 | ideal uideal; |
---|
21 | map umap; |
---|
22 | matrix umatrix; |
---|
23 | char * ustring; |
---|
24 | intvec * iv; |
---|
25 | lists l; |
---|
26 | si_link li; |
---|
27 | package pack; |
---|
28 | procinfo * pinf; |
---|
29 | }; |
---|
30 | |
---|
31 | class idrec |
---|
32 | { |
---|
33 | public: |
---|
34 | /* !! do not change the first 6 entries !! (see subexpr.h: sleftv) */ |
---|
35 | idhdl next; |
---|
36 | const char *id; |
---|
37 | utypes data; |
---|
38 | attr attribute; |
---|
39 | BITSET flag; |
---|
40 | int typ; |
---|
41 | |
---|
42 | short lev; |
---|
43 | short ref; |
---|
44 | int id_i; |
---|
45 | |
---|
46 | idrec() { memset(this,0,sizeof(*this)); } |
---|
47 | idhdl get(const char * s, int lev); |
---|
48 | idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE); |
---|
49 | char * String(); |
---|
50 | // ~idrec(); |
---|
51 | }; |
---|
52 | |
---|
53 | #endif |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.