source: git/Singular/idrec.h @ 7fee876

spielwiese
Last change on this file since 7fee876 was 81c5cb, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
temporary fix for local objects while setting minpoly FIX: kill local objects (run debug version for details) TODO: map local objects properly...
  • Property mode set to 100644
File size: 1.1 KB
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 <Singular/lists.h>
12#include <Singular/attrib.h>
13#include <Singular/silink.h>
14
15typedef union uutypes      utypes;
16union 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;
27  lists         l;
28  si_link       li;
29  package       pack;
30  procinfo *    pinf;
31};
32
33class idrec
34{
35  public:
36  /* !! do not change the first 6 entries !! (see subexpr.h: sleftv) */
37  idhdl      next;
38  const char *id;
39  utypes     data;
40  attr       attribute;
41  BITSET     flag;
42  int        typ;
43
44  short      lev;
45  short      ref;
46  int        id_i;
47
48  idrec() { memset(this,0,sizeof(*this)); }
49  idhdl get(const char * s, int lev);
50  idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE);
51  char * String(BOOLEAN typed = FALSE);
52//  ~idrec();
53};
54
55#endif
56
Note: See TracBrowser for help on using the repository browser.