My Project
Loading...
Searching...
No Matches
idrec.h
Go to the documentation of this file.
1#ifndef IDREC_H
2#define IDREC_H
3/****************************************
4* Computer Algebra System SINGULAR *
5****************************************/
6/*
7* ABSTRACT interpreter type for variables
8*/
9
10#include "Singular/lists.h"
11#include "Singular/attrib.h"
13
14class bigintmat;
15typedef union uutypes utypes;
17{
18 int i;
19 ring uring;
20 poly p;
21 number n;
22 ideal uideal;
25 char * ustring;
30 package pack;
32};
33
34class idrec
35{
36 public:
37 /* !! do not change the first 6 entries !! (see subexpr.h: sleftv) */
39 const char *id;
40 utypes data;
43 int typ;
44
45 short lev;
46 short ref;
47 unsigned long id_i;
48
49 idrec() { memset(this,0,sizeof(*this)); }
50 inline void Init() { memset(this,0,sizeof(*this)); }
51 idhdl get(const char * s, int lev);
52 idhdl get_level(const char * s, int lev);
53 idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE);
54 char * String(BOOLEAN typed = FALSE);
55// ~idrec();
56};
57
58#endif
59
int BOOLEAN
Definition: auxiliary.h:87
#define TRUE
Definition: auxiliary.h:100
#define FALSE
Definition: auxiliary.h:96
CanonicalForm map(const CanonicalForm &primElem, const Variable &alpha, const CanonicalForm &F, const Variable &beta)
map from to such that is mapped onto
Definition: cf_map_ext.cc:504
Matrices of numbers.
Definition: bigintmat.h:51
Definition: idrec.h:35
utypes data
Definition: idrec.h:40
BITSET flag
Definition: idrec.h:42
void Init()
Definition: idrec.h:50
short lev
Definition: idrec.h:45
int typ
Definition: idrec.h:43
unsigned long id_i
Definition: idrec.h:47
idhdl next
Definition: idrec.h:38
short ref
Definition: idrec.h:46
attr attribute
Definition: idrec.h:41
const char * id
Definition: idrec.h:39
idrec()
Definition: idrec.h:49
Definition: intvec.h:23
Definition: attrib.h:21
Definition: lists.h:24
const CanonicalForm int s
Definition: facAbsFact.cc:51
ideal uideal
Definition: idrec.h:22
intvec * iv
Definition: idrec.h:26
procinfo * pinf
Definition: idrec.h:31
ring uring
Definition: idrec.h:19
matrix umatrix
Definition: idrec.h:24
char * ustring
Definition: idrec.h:25
si_link li
Definition: idrec.h:29
map umap
Definition: idrec.h:23
bigintmat * bim
Definition: idrec.h:27
poly p
Definition: idrec.h:20
lists l
Definition: idrec.h:28
number n
Definition: idrec.h:21
int i
Definition: idrec.h:18
Definition: idrec.h:17
#define BITSET
Definition: structs.h:16