source: git/Singular/attrib.h @ c4dab4

Last change on this file since c4dab4 was c4dab4, checked in by Hans Schoenemann <hannes@…>, 13 years ago
copy/deleting attributes of all types git-svn-id: file:///usr/local/Singular/svn/trunk@13972 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.5 KB
[0e1846]1#ifndef ATTRIB_H
2#define ATTRIB_H
4*  Computer Algebra System SINGULAR     *
[341696]6/* $Id$ */
[6ae4f5]8* ABSTRACT: attributes to leftv and idhdl
10#include <string.h>
[599326]11#include <kernel/structs.h>
13class sattr;
14typedef sattr * attr;
15class sattr
17  public:
[c4dab4]18    inline void Init() { memset(this,0,sizeof(*this)); }
[85e68dd]19    const char *  name;
[0e1846]20    void *  data;
21    attr    next;
22    int     atyp; /* the type of the attribut, describes the data field
23                  */
25    void Print();
26    attr Copy(); /* copy all arguments */
27    void * CopyA(); /* copy the data of this attribute */
[85e68dd]28    attr set(const char * s, void * data, int t);
29    attr get(const char * s);
[2dbaba4]30    void kill(const ring r);
31    void killAll(const ring r);
[85e68dd]34void * atGet(idhdl root,const char * name);
35void * atGet(leftv root,const char * name);
36void * atGet(idhdl root,const char * name, int t);
37void * atGet(leftv root,const char * name, int t);
38void atSet(idhdl root,const char * name,void * data,int typ);
39void atSet(leftv root,const char * name,void * data,int typ);
[2dbaba4]40void at_KillAll(idhdl root,const ring r);
41#define atKillAll(H) at_KillAll(H,currRing)
42void at_Kill(idhdl root,const char * name,const ring r);
43#define atKill(H,A) at_Kill(H,A,currRing)
45BOOLEAN atATTRIB1(leftv res,leftv a);
46BOOLEAN atATTRIB2(leftv res,leftv a,leftv b);
47BOOLEAN atATTRIB3(leftv res,leftv a,leftv b,leftv c);
48BOOLEAN atKILLATTR1(leftv res,leftv a);
49BOOLEAN atKILLATTR2(leftv res,leftv a,leftv b);
Note: See TracBrowser for help on using the repository browser.