My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
slists Class Reference

#include <lists.h>

Public Member Functions

void Clean (ring r=currRing)
 
INLINE_THIS void Init (int l=0)
 

Data Fields

int nr
 
sleftvm
 

Detailed Description

Definition at line 23 of file lists.h.

Member Function Documentation

◆ Clean()

void slists::Clean ( ring  r = currRing)
inline

Definition at line 26 of file lists.h.

27 {
28 assume (this!=NULL);
29
30 if (nr>=0)
31 {
32 int i;
33 for(i=nr;i>=0;i--)
34 {
35 if (m[i].rtyp!=DEF_CMD) m[i].CleanUp(r);
36 }
37 omFreeSize((ADDRESS)m, (nr+1)*sizeof(sleftv));
38 nr=-1;
39 }
40 //omFreeSize((ADDRESS)this, sizeof(slists));
42 }
void * ADDRESS
Definition: auxiliary.h:119
int i
Definition: cfEzgcd.cc:132
Class used for (list of) interpreter objects.
Definition: subexpr.h:83
void CleanUp(ring r=currRing)
Definition: subexpr.cc:348
sleftv * m
Definition: lists.h:46
int nr
Definition: lists.h:44
EXTERN_VAR omBin slists_bin
Definition: lists.h:22
#define assume(x)
Definition: mod2.h:389
#define omFreeSize(addr, size)
Definition: omAllocDecl.h:260
#define omFreeBin(addr, bin)
Definition: omAllocDecl.h:259
#define NULL
Definition: omList.c:12
@ DEF_CMD
Definition: tok.h:58

◆ Init()

INLINE_THIS void slists::Init ( int  l = 0)

Field Documentation

◆ m

sleftv* slists::m

Definition at line 46 of file lists.h.

◆ nr

int slists::nr

Definition at line 44 of file lists.h.


The documentation for this class was generated from the following file: