source: git/Singular/attrib.h @ 457d8d6

spielwiese
Last change on this file since 457d8d6 was c232af, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* omalloc stuff git-svn-id: file:///usr/local/Singular/svn/trunk@4524 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#ifndef ATTRIB_H
2#define ATTRIB_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: attrib.h,v 1.6 2000-08-14 12:55:54 obachman Exp $ */
7/*
8* ABSTRACT: attributes to leftv and idhdl
9*/
10#include <string.h>
11#include "structs.h"
12
13class sattr;
14typedef sattr * attr;
15class sattr
16{
17  public:
18    void Init() { memset(this,0,sizeof(*this)); }
19    char *  name;
20    void *  data;
21    attr    next;
22    int     atyp; /* the type of the attribut, describes the data field
23                  */
24
25    void Print();
26    attr Copy(); /* copy all arguments */
27    void * CopyA(); /* copy the data of this attribute */
28    attr set(char * s, void * data, int t);
29    attr get(char * s);
30    void kill();
31    void killAll();
32};
33
34void * atGet(idhdl root,char * name);
35void * atGet(leftv root,char * name);
36void atSet(idhdl root,char * name,void * data,int typ);
37void atSet(leftv root,char * name,void * data,int typ);
38void atKillAll(idhdl root);
39void atKill(idhdl root,char * name);
40
41BOOLEAN atATTRIB1(leftv res,leftv a);
42BOOLEAN atATTRIB2(leftv res,leftv a,leftv b);
43BOOLEAN atATTRIB3(leftv res,leftv a,leftv b,leftv c);
44BOOLEAN atKILLATTR1(leftv res,leftv a);
45BOOLEAN atKILLATTR2(leftv res,leftv a,leftv b);
46#endif
Note: See TracBrowser for help on using the repository browser.