MCPcopy Create free account
hub / github.com/Gecode/gecode / init

Method init

gecode/int/int-set.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 void
127 IntSet::init(const int r[], int n) {
128 assert(n > 0);
129 Region reg;
130 Range* dr = reg.alloc<Range>(n);
131 for (int i=0; i<n; i++) {
132 dr[i].min=r[i]; dr[i].max=r[i];
133 }
134 normalize(&dr[0],n);
135 }
136
137 void
138 IntSet::init(const int r[][2], int n) {

Callers 4

unaryFunction · 0.45
channelFunction · 0.45
cumulativeFunction · 0.45
countFunction · 0.45

Calls 1

normalizeFunction · 0.50

Tested by

no test coverage detected