convex.hh
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
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 #ifndef __GECODE_SET_CONVEX_HH__
00045 #define __GECODE_SET_CONVEX_HH__
00046
00047 #include "gecode/set.hh"
00048
00049 namespace Gecode { namespace Set { namespace Convex {
00050
00063 class Convex : public UnaryPropagator<SetView,PC_SET_ANY> {
00064 protected:
00066 Convex(Space* home, bool share, Convex& p);
00068 Convex(Space* home, SetView);
00069 public:
00071 GECODE_SET_EXPORT virtual Actor* copy(Space* home,bool);
00073 GECODE_SET_EXPORT virtual ExecStatus propagate(Space* home, ModEventDelta med);
00075 static ExecStatus post(Space* home,SetView x);
00077 GECODE_SET_EXPORT
00078 virtual Reflection::ActorSpec spec(const Space* home,
00079 Reflection::VarMap& m) const;
00081 static void post(Space* home, Reflection::VarMap& vars,
00082 const Reflection::ActorSpec& spec);
00084 static Support::Symbol ati(void);
00085 };
00086
00094 class ConvexHull : public BinaryPropagator<SetView,PC_SET_ANY> {
00095 protected:
00097 ConvexHull(Space* home, bool share, ConvexHull&);
00099 ConvexHull(Space* home, SetView, SetView);
00100 public:
00102 GECODE_SET_EXPORT virtual Actor* copy(Space* home,bool);
00104 GECODE_SET_EXPORT virtual ExecStatus propagate(Space* home, ModEventDelta med);
00106 static ExecStatus post(Space* home,SetView x,SetView y);
00108 GECODE_SET_EXPORT
00109 virtual Reflection::ActorSpec spec(const Space* home,
00110 Reflection::VarMap& m) const;
00112 static void post(Space* home, Reflection::VarMap& vars,
00113 const Reflection::ActorSpec& spec);
00115 static Support::Symbol ati(void);
00116 };
00117
00118
00119 }}}
00120
00121 #include "gecode/set/convex/conv.icc"
00122 #include "gecode/set/convex/hull.icc"
00123
00124 #endif
00125
00126