hull.icc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 namespace Gecode { namespace Set { namespace Convex {
00029
00030
00031
00032
00033
00034
00035 forceinline
00036 ConvexHull::ConvexHull(Space* home, SetView y0, SetView y1)
00037 : Propagator(home), x0(y0), x1(y1) {
00038 x0.subscribe(home,this,PC_SET_CGLB);
00039 x1.subscribe(home,this,PC_SET_ANY);
00040 }
00041
00042 forceinline
00043 ConvexHull::ConvexHull(Space* home, bool share, ConvexHull& p)
00044 : Propagator(home,share,p) {
00045 x0.update(home,share,p.x0);
00046 x1.update(home,share,p.x1);
00047 }
00048
00049 forceinline ExecStatus
00050 ConvexHull::post(Space* home, SetView x, SetView y) {
00051 (void) new (home) ConvexHull(home,x,y);
00052 return ES_OK;
00053 }
00054
00055
00056 }}}
00057
00058