本文整理汇总了C++中Home::notice方法的典型用法代码示例。如果您正苦于以下问题:C++ Home::notice方法的具体用法?C++ Home::notice怎么用?C++ Home::notice使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Home
的用法示例。
在下文中一共展示了Home::notice方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Propagator
forceinline
ViewBase<VX,VY,VZ>::ViewBase(Home home,
ViewArray<VX>& x0, VY y0, VZ z0, int c0)
: Propagator(home), x(x0), y(y0), z(z0), c(c0) {
if (vtd(y) == VTD_INTSET)
home.notice(*this,AP_DISPOSE);
x.subscribe(home,*this,PC_INT_DOM);
subscribe(home,*this,y);
z.subscribe(home,*this,PC_INT_BND);
}
示例2: Propagator
forceinline
IntBase<VX,VY>::IntBase(Home home,
ViewArray<VX>& x0, int n_s0, VY y0, int c0)
: Propagator(home), x(x0), n_s(n_s0), y(y0), c(c0) {
if (vtd(y) == VTD_INTSET)
home.notice(*this,AP_DISPOSE);
for (int i=n_s; i--; )
x[i].subscribe(home,*this,PC_INT_DOM);
subscribe(home,*this,y);
}
示例3: ElementUnion
forceinline
ElementUnion<SView,RView>::
ElementUnion(Home home, SView y0,
IdxViewArray& iv0,
RView y1)
: Propagator(home), x0(y0), iv(iv0), x1(y1) {
home.notice(*this,AP_DISPOSE);
x0.subscribe(home,*this, PC_SET_ANY);
x1.subscribe(home,*this, PC_SET_ANY);
iv.subscribe(home,*this, PC_SET_ANY);
}
示例4: Propagator
forceinline
Weights<View>::Weights(Home home,
const SharedArray<int>& elements0,
const SharedArray<int>& weights0,
View x0, Gecode::Int::IntView y0)
: Propagator(home), elements(elements0), weights(weights0),
x(x0), y(y0) {
home.notice(*this,AP_DISPOSE);
x.subscribe(home,*this, PC_SET_ANY);
y.subscribe(home,*this, Gecode::Int::PC_INT_BND);
}
示例5: Propagator
forceinline
Base<View,subscribe>::Base(Home home, ViewArray<View>& x0,
const TupleSet& t)
: Propagator(home), x(x0), tupleSet(t), last_data(NULL) {
if (subscribe)
x.subscribe(home, *this, PC_INT_DOM);
assert(ts()->finalized());
init_last(home, ts()->last, ts()->tuple_data);
home.notice(*this,AP_DISPOSE);
}
示例6: ElementUnionConst
forceinline
ElementUnionConst<SView,RView>::
ElementUnionConst(Home home, SView y0,
const IntSetArgs& iv0,
RView y1)
: Propagator(home), x0(y0), n_iv(iv0.size()), x1(y1) {
home.notice(*this,AP_DISPOSE);
x0.subscribe(home,*this, PC_SET_ANY);
x1.subscribe(home,*this, PC_SET_ANY);
iv=static_cast<Space&>(home).alloc<IntSet>(n_iv);
for (unsigned int i=iv0.size(); i--;)
iv[i]=iv0[i];
}
示例7: Propagator
forceinline
Sequence<View,Val>::Sequence(Home home, ViewArray<View>& x0, Val s0,
int q0, int l0, int u0)
: Propagator(home), x(x0), s(s0), q(q0), l(l0), u(u0),
vvsamax(home,x,s0,q0), vvsamin(home,x,s0,q0), ac(home) {
home.notice(*this,AP_DISPOSE);
for (int i=x.size(); i--; ) {
if (undecided(x[i],s)) {
x[i].subscribe(home,*new (home) SupportAdvisor<View>(home,*this,ac,i));
} else {
x[i].schedule(home,*this,x[i].assigned() ? ME_INT_VAL : ME_INT_BND);
}
}
}
示例8:
forceinline
EqInt<VY>::EqInt(Home home, ValSet& vs, ViewArray<IntView>& x, VY y)
: IntBase<VY>(home,vs,x,y) {
home.notice(*this, AP_WEAKLY);
}
示例9: is
forceinline
ReIntSet<View,rm>::ReIntSet
(Home home, View x, const IntSet& s, BoolView b)
: ReUnaryPropagator<View,PC_INT_DOM,BoolView>(home,x,b), is(s) {
home.notice(*this,AP_DISPOSE);
}