Go to the source code of this file.
|
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) |
|
void | at_Kill (idhdl root, const char *name, const ring r) |
|
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) |
|
◆ atKill
◆ atKillAll
◆ attr
◆ at_Kill()
Definition at line 199 of file attrib.cc.
212 while (temp1->
next!=temp) temp1 = temp1->
next;
const CanonicalForm CFMap CFMap & N
char name(const Variable &v)
◆ at_KillAll() [1/2]
Definition at line 219 of file attrib.cc.
void killAll(const ring r)
◆ at_KillAll() [2/2]
◆ atATTRIB1()
Definition at line 231 of file attrib.cc.
233 attr *aa=(
v->Attribute());
236 WerrorS(
"this object cannot have attributes");
245 PrintS(
"attr:isSB, type int\n");
246 haveNoAttribute=
FALSE;
250 PrintS(
"attr:qringNF, type int\n");
251 haveNoAttribute=
FALSE;
255 PrintS(
"attr:cf_class, type int\n");
256 PrintS(
"attr:global, type int\n");
257 PrintS(
"attr:maxExp, type int\n");
258 PrintS(
"attr:ring_cf, type int\n");
260 PrintS(
"attr:isLetterplaceRing, type int\n");
263 haveNoAttribute=
FALSE;
272 else if(haveNoAttribute)
PrintS(
"no attributes\n");
BOOLEAN atATTRIB1(leftv res, leftv v)
Class used for (list of) interpreter objects.
const Variable & v
< [in] a sqrfree bivariate poly
void WerrorS(const char *s)
void PrintS(const char *s)
◆ atATTRIB2()
Definition at line 275 of file attrib.cc.
277 char *
name=(
char *)
b->Data();
282 if (strcmp(
name,
"isSB")==0)
291 res->data=(
void *)(((ideal)
v->Data())->rank);
293 else if ((strcmp(
name,
"global")==0)
297 res->data=(
void *)(((ring)
v->Data())->OrdSgn==1);
299 else if ((strcmp(
name,
"maxExp")==0)
303 res->data=(
void *)(
long)(((ring)
v->Data())->bitmask/2);
305 else if ((strcmp(
name,
"ring_cf")==0)
311 else if ((strcmp(
name,
"cf_class")==0)
318 res->data=(
void *)(
long)(
cf->type);
320 else if (strcmp(
name,
"qringNF")==0)
327 else if ((strcmp(
name,
"isLetterplaceRing")==0)
331 res->data=(
void *)(
long)(((ring)
v->Data())->isLPring);
336 attr *aa=
v->Attribute();
339 WerrorS(
"this object cannot have attributes");
The main handler for Singular numbers which are suitable for Singular polynomials.
static BOOLEAN rField_is_Ring(const ring r)
◆ atATTRIB3()
Definition at line 357 of file attrib.cc.
369 char *
name=(
char *)
b->Data();
370 if (strcmp(
name,
"isSB")==0)
374 WerrorS(
"attribute isSB must be int");
377 if (((
long)c->
Data())!=0L)
388 else if (strcmp(
name,
"qringNF")==0)
392 WerrorS(
"attribute qringNF must be int");
395 if (((
long)c->
Data())!=0L)
410 WerrorS(
"attribute `rank` must be int");
413 ideal I=(ideal)
v->Data();
417 else if (((strcmp(
name,
"global")==0)
418 || (strcmp(
name,
"cf_class")==0)
419 || (strcmp(
name,
"ring_cf")==0)
420 || (strcmp(
name,
"maxExp")==0))
427 else if ((strcmp(
name,
"isLetterplaceRing")==0)
431 ((ring)
v->Data())->isLPring=(
int)(long)c->
Data();
434 WerrorS(
"attribute `isLetterplaceRing` must be int");
void atSet(idhdl root, char *name, void *data, int typ)
static int si_max(const int a, const int b)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
void Werror(const char *fmt,...)
long id_RankFreeModule(ideal s, ring lmRing, ring tailRing)
return the maximal component number found in any polynomial in s
◆ atGet() [1/2]
void* atGet |
( |
idhdl |
root, |
|
|
const char * |
name, |
|
|
int |
t, |
|
|
void * |
defaultReturnValue = NULL |
|
) |
| |
Definition at line 129 of file attrib.cc.
132 if ((temp!=
NULL) && (temp->
atyp==t))
135 return defaultReturnValue;
◆ atGet() [2/2]
void* atGet |
( |
leftv |
root, |
|
|
const char * |
name, |
|
|
int |
t |
|
) |
| |
◆ atKILLATTR1()
◆ atKILLATTR2()
Definition at line 465 of file attrib.cc.
469 WerrorS(
"object must have a name");
472 char *
name=(
char *)
b->Data();
473 if (strcmp(
name,
"isSB")==0)
478 else if (strcmp(
name,
"global")==0)
480 WerrorS(
"can not set attribut `global`");
◆ atSet() [1/2]
void atSet |
( |
idhdl |
root, |
|
|
char * |
name, |
|
|
void * |
data, |
|
|
int |
typ |
|
) |
| |
Definition at line 150 of file attrib.cc.
156 WerrorS(
"cannot set ring-dependend objects at this type");
attr set(char *s, void *data, int t)
◆ atSet() [2/2]
void atSet |
( |
leftv |
root, |
|
|
char * |
name, |
|
|
void * |
data, |
|
|
int |
typ |
|
) |
| |
Definition at line 162 of file attrib.cc.
169 WerrorS(
"cannot set attributes of this object");
172 WerrorS(
"cannot set ring-dependend objects at this type");