source: git/kernel/idrec.h @ 1d9b39

spielwiese
Last change on this file since 1d9b39 was 599326, checked in by Kai Krüger <krueger@…>, 14 years ago
Anne, Kai, Frank: - changes to #include "..." statements to allow cleaner build structure - affected directories: omalloc, kernel, Singular - not yet done: IntergerProgramming git-svn-id: file:///usr/local/Singular/svn/trunk@13032 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1018 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 <kernel/structs.h>
12
13typedef union uutypes      utypes;
14union 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
31class 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.