Loading...
Searching...
No Matches
attrib.h
Go to the documentation of this file.
#ifndef ATTRIB_H
#define ATTRIB_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: attributes to leftv and idhdl
*/
#include "kernel/structs.h"
#include "omalloc/omalloc.h"
#ifdef HAVE_OMALLOC
#include "omalloc/omallocClass.h"
#endif
class sattr;
typedef sattr * attr;
class sattr
#ifdef HAVE_OMALLOC
: public omallocClass
#endif
{
public:
inline void Init() { memset(this,0,sizeof(*this)); }
char * name;
void * data;
attr next;
int atyp; /* the type of the attribute, describes the data field
*/
void Print();
attr Copy(); /* copy all arguments */
void * CopyA(); /* copy the data of this attribute */
attr set(char * s, void * data, int t); /* eats s, data */
attr get(const char * s);
void kill(const ring r);
void killAll(const ring r);
};
//void * atGet(idhdl root,const char * name);
//void * atGet(leftv root,const char * name);
void * atGet(idhdl root,const char * name, int t, void *defaultReturnValue = NULL);
void * atGet(leftv root,const char * name, int t);
void atSet(idhdl root,char * name,void * data,int typ);
void atSet(leftv root,char * name,void * data,int typ);
void at_KillAll(idhdl root,const ring r);
void at_KillAll(leftv root,const ring r);
#define atKillAll(H) at_KillAll(H,currRing)
void at_Kill(idhdl root,const char * name,const ring r);
#define atKill(H,A) at_Kill(H,A,currRing)
BOOLEAN atATTRIB1(leftv res,leftv a);
BOOLEAN atATTRIB2(leftv res,leftv a,leftv b);
BOOLEAN atATTRIB3(leftv res,leftv a,leftv b,leftv c);
BOOLEAN atKILLATTR1(leftv res,leftv a);
BOOLEAN atKILLATTR2(leftv res,leftv a,leftv b);
#endif
attr
sattr * attr
Definition attrib.h:16
atATTRIB2
BOOLEAN atATTRIB2(leftv res, leftv a, leftv b)
Definition attrib.cc:282
atKILLATTR2
BOOLEAN atKILLATTR2(leftv res, leftv a, leftv b)
Definition attrib.cc:493
atGet
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue=NULL)
Definition attrib.cc:132
at_KillAll
void at_KillAll(idhdl root, const ring r)
Definition attrib.cc:222
at_Kill
void at_Kill(idhdl root, const char *name, const ring r)
Definition attrib.cc:202
atSet
void atSet(idhdl root, char *name, void *data, int typ)
Definition attrib.cc:153
atATTRIB3
BOOLEAN atATTRIB3(leftv res, leftv a, leftv b, leftv c)
Definition attrib.cc:374
atATTRIB1
BOOLEAN atATTRIB1(leftv res, leftv a)
Definition attrib.cc:234
atKILLATTR1
BOOLEAN atKILLATTR1(leftv res, leftv a)
Definition attrib.cc:476
BOOLEAN
int BOOLEAN
Definition auxiliary.h:88
b
CanonicalForm b
Definition cfModGcd.cc:4111
omallocClass
Definition omallocClass.h:20
sattr
Definition attrib.h:21
sattr::data
void * data
Definition attrib.h:25
sattr::Copy
attr Copy()
Definition attrib.cc:33
sattr::Init
void Init()
Definition attrib.h:23
sattr::get
attr get(const char *s)
Definition attrib.cc:93
sattr::kill
void kill(const ring r)
Definition attrib.cc:183
sattr::killAll
void killAll(const ring r)
Definition attrib.cc:189
sattr::CopyA
void * CopyA()
Definition subexpr.cc:2192
sattr::set
attr set(char *s, void *data, int t)
Definition attrib.cc:70
sattr::atyp
int atyp
Definition attrib.h:27
sattr::Print
void Print()
Definition attrib.cc:26
sattr::name
char * name
Definition attrib.h:24
sattr::next
attr next
Definition attrib.h:26
s
const CanonicalForm int s
Definition facAbsFact.cc:51
res
CanonicalForm res
Definition facAbsFact.cc:60
name
char name(const Variable &v)
Definition factory.h:189
NULL
#define NULL
Definition omList.c:12
omallocClass.h
omalloc.h
idhdl
idrec * idhdl
Definition ring.h:22
structs.h
leftv
sleftv * leftv
Definition structs.h:53