当前位置: 首页>>代码示例>>C++>>正文


C++ Home::notice方法代码示例

本文整理汇总了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);
 }
开发者ID:kenhys,项目名称:gecode,代码行数:10,代码来源:view-base.hpp

示例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);
 }
开发者ID:celikpence,项目名称:gecode,代码行数:10,代码来源:int-base.hpp

示例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);
 }
开发者ID:akiernan,项目名称:gecode,代码行数:11,代码来源:union.hpp

示例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);
 }
开发者ID:Wushaowei001,项目名称:vcp,代码行数:11,代码来源:weights.hpp

示例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);
  }
开发者ID:Wushaowei001,项目名称:crossbow,代码行数:13,代码来源:base.hpp

示例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];
 }
开发者ID:celikpence,项目名称:gecode,代码行数:13,代码来源:unionConst.hpp

示例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);
     }
   }
 }
开发者ID:Wushaowei001,项目名称:crossbow,代码行数:14,代码来源:int.hpp

示例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);
 }
开发者ID:YoshihisaMaruya,项目名称:tool_test_chef,代码行数:5,代码来源:int-eq.hpp

示例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);
 }
开发者ID:Wushaowei001,项目名称:crossbow,代码行数:6,代码来源:set.hpp


注:本文中的Home::notice方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。