Loading...
Searching...
No Matches
idrec.h
Go to the documentation of this file.
#ifndef IDREC_H
#define IDREC_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT interpreter type for variables
*/
#include "Singular/lists.h"
#include "Singular/attrib.h"
#include "Singular/links/silink.h"
class bigintmat;
typedef union uutypes utypes;
union uutypes
{
int i;
ring uring;
poly p;
number n;
ideal uideal;
map umap;
matrix umatrix;
char * ustring;
intvec * iv;
bigintmat * bim;
lists l;
si_link li;
package pack;
procinfo * pinf;
};
class idrec
{
public:
/* !! do not change the first 6 entries !! (see subexpr.h: sleftv) */
idhdl next;
const char *id;
utypes data;
attr attribute;
BITSET flag;
int typ;
short lev;
short ref;
unsigned long id_i;
idrec() { memset(this,0,sizeof(*this)); }
inline void Init() { memset(this,0,sizeof(*this)); }
idhdl get(const char * s, int lev);
idhdl get_level(const char * s, int lev);
idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE);
char * String(BOOLEAN typed = FALSE);
// ~idrec();
};
#endif
attrib.h
attr
sattr * attr
Definition attrib.h:16
BITSET
#define BITSET
Definition auxiliary.h:85
BOOLEAN
int BOOLEAN
Definition auxiliary.h:88
TRUE
#define TRUE
Definition auxiliary.h:101
FALSE
#define FALSE
Definition auxiliary.h:97
map
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:505
bigintmat
Matrices of numbers.
Definition bigintmat.h:51
idrec::data
utypes data
Definition idrec.h:40
idrec::flag
BITSET flag
Definition idrec.h:42
idrec::Init
void Init()
Definition idrec.h:50
idrec::lev
short lev
Definition idrec.h:45
idrec::typ
int typ
Definition idrec.h:43
idrec::id_i
unsigned long id_i
Definition idrec.h:47
idrec::next
idhdl next
Definition idrec.h:38
idrec::ref
short ref
Definition idrec.h:46
idrec::attribute
attr attribute
Definition idrec.h:41
idrec::id
const char * id
Definition idrec.h:39
idrec::idrec
idrec()
Definition idrec.h:49
intvec
Definition intvec.h:24
s
const CanonicalForm int s
Definition facAbsFact.cc:51
uutypes::uideal
ideal uideal
Definition idrec.h:22
uutypes::iv
intvec * iv
Definition idrec.h:26
uutypes::pinf
procinfo * pinf
Definition idrec.h:31
uutypes::uring
ring uring
Definition idrec.h:19
uutypes::umatrix
matrix umatrix
Definition idrec.h:24
uutypes::ustring
char * ustring
Definition idrec.h:25
uutypes::li
si_link li
Definition idrec.h:29
uutypes::umap
map umap
Definition idrec.h:23
uutypes::bim
bigintmat * bim
Definition idrec.h:27
uutypes::p
poly p
Definition idrec.h:20
uutypes::l
lists l
Definition idrec.h:28
uutypes::n
number n
Definition idrec.h:21
uutypes::i
int i
Definition idrec.h:18
uutypes
Definition idrec.h:17
lists.h
matrix
ip_smatrix * matrix
Definition matpol.h:43
lists
slists * lists
Definition mpr_numeric.h:146
idhdl
idrec * idhdl
Definition ring.h:22
silink.h
si_link
ip_link * si_link
Definition silink.h:20
procinfo
Definition subexpr.h:54