My Project
Toggle main menu visibility
Loading...
Searching...
No Matches
Singular
attrib.h
Go to the documentation of this file.
1
#ifndef ATTRIB_H
2
#define ATTRIB_H
3
/****************************************
4
* Computer Algebra System SINGULAR *
5
****************************************/
6
/*
7
* ABSTRACT: attributes to leftv and idhdl
8
*/
9
#include "
kernel/structs.h
"
10
#include "
omalloc/omalloc.h
"
11
#ifdef HAVE_OMALLOC
12
#include "
omalloc/omallocClass.h
"
13
#endif
14
15
class
sattr
;
16
typedef
sattr
*
attr
;
17
class
sattr
18
#ifdef HAVE_OMALLOC
19
:
public
omallocClass
20
#endif
21
{
22
public
:
23
inline
void
Init
() { memset(
this
,0,
sizeof
(*
this
)); }
24
char
*
name
;
25
void
*
data
;
26
attr
next
;
27
int
atyp
;
/* the type of the attribute, describes the data field
28
*/
29
30
void
Print
();
31
attr
Copy
();
/* copy all arguments */
32
void
*
CopyA
();
/* copy the data of this attribute */
33
attr
set
(
char
*
s
,
void
*
data
,
int
t);
/* eats s, data */
34
attr
get
(
const
char
*
s
);
35
void
kill
(
const
ring r);
36
void
killAll
(
const
ring r);
37
};
38
39
//void * atGet(idhdl root,const char * name);
40
//void * atGet(leftv root,const char * name);
41
void
*
atGet
(
idhdl
root,
const
char
*
name
,
int
t,
void
*defaultReturnValue =
NULL
);
42
void
*
atGet
(
leftv
root,
const
char
*
name
,
int
t);
43
void
atSet
(
idhdl
root,
char
*
name
,
void
* data,
int
typ);
44
void
atSet
(
leftv
root,
char
*
name
,
void
* data,
int
typ);
45
void
at_KillAll
(
idhdl
root,
const
ring r);
46
void
at_KillAll
(
leftv
root,
const
ring r);
47
#define atKillAll(H) at_KillAll(H,currRing)
48
void
at_Kill
(
idhdl
root,
const
char
*
name
,
const
ring r);
49
#define atKill(H,A) at_Kill(H,A,currRing)
50
51
BOOLEAN
atATTRIB1
(
leftv
res
,
leftv
a);
52
BOOLEAN
atATTRIB2
(
leftv
res
,
leftv
a,
leftv
b
);
53
BOOLEAN
atATTRIB3
(
leftv
res
,
leftv
a,
leftv
b
,
leftv
c);
54
BOOLEAN
atKILLATTR1
(
leftv
res
,
leftv
a);
55
BOOLEAN
atKILLATTR2
(
leftv
res
,
leftv
a,
leftv
b
);
56
#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
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
name
int name
New type name for int.
Definition
templateForC.h:21
Generated on
for My Project by
doxygen 1.17.0
for
Singular