My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
box Struct Reference

#include <interval.h>

Public Member Functions

 box ()
 
 box (box *)
 
 ~box ()
 
boxsetInterval (int, interval *)
 

Data Fields

interval ** intervals
 
ring R
 

Detailed Description

Definition at line 21 of file interval.h.

Constructor & Destructor Documentation

◆ box() [1/2]

box::box ( )

Definition at line 75 of file interval.cc.

76{
77 R = currRing;
78 int i, n = R->N;
79 intervals = (interval**) omAlloc0(n * sizeof(interval*));
80 if (intervals != NULL)
81 {
82 for (i = 0; i < n; i++)
83 {
84 intervals[i] = new interval();
85 }
86 }
88}
int i
Definition: cfEzgcd.cc:132
#define omAlloc0(size)
Definition: omAllocDecl.h:211
#define NULL
Definition: omList.c:12
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:13
static ring rIncRefCnt(ring r)
Definition: ring.h:837
ring R
Definition: interval.h:24
interval ** intervals
Definition: interval.h:23

◆ box() [2/2]

box::box ( box B)

Definition at line 90 of file interval.cc.

91{
92 R = rIncRefCnt(B->R);
93 int i, n = R->N;
94 intervals = (interval**) omAlloc0(n * sizeof(interval*));
95 if (intervals != NULL)
96 {
97 for (i = 0; i < n; i++)
98 {
99 intervals[i] = new interval(B->intervals[i]);
100 }
101 }
102}
b *CanonicalForm B
Definition: facBivar.cc:52

◆ ~box()

box::~box ( )

Definition at line 104 of file interval.cc.

105{
106 int i, n = R->N;
107 for (i = 0; i < n; i++)
108 {
109 delete intervals[i];
110 }
111 omFree((void**) intervals);
112 rDecRefCnt(R);
113}
#define omFree(addr)
Definition: omAllocDecl.h:261
static void rDecRefCnt(ring r)
Definition: ring.h:838

Member Function Documentation

◆ setInterval()

box & box::setInterval ( int  i,
interval I 
)

Definition at line 116 of file interval.cc.

117{
118 if (0 <= i && i < R->N)
119 {
120 delete intervals[i];
121 intervals[i] = I;
122 }
123 return *this;
124}
const CanonicalForm CFMap CFMap & N
Definition: cfEzgcd.cc:56

Field Documentation

◆ intervals

interval** box::intervals

Definition at line 23 of file interval.h.

◆ R

ring box::R

Definition at line 24 of file interval.h.


The documentation for this struct was generated from the following files: