source: git/Singular/attrib.h @ aad2408

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