sequence.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 #ifndef __GECODE_SET_SEQUENCE_HH__
00041 #define __GECODE_SET_SEQUENCE_HH__
00042
00043 #include <gecode/set.hh>
00044
00045 namespace Gecode { namespace Set { namespace Sequence {
00046
00059 class Seq : public NaryPropagator<SetView, PC_SET_ANY> {
00060 protected:
00062 Seq(Space& home, Seq& p);
00064 Seq(Home home, ViewArray<SetView>&);
00065 public:
00067 GECODE_SET_EXPORT virtual Actor* copy(Space& home);
00069 GECODE_SET_EXPORT virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00071 static ExecStatus post(Home home,ViewArray<SetView>);
00072 };
00073
00081 class SeqU : public NaryOnePropagator<SetView,PC_SET_ANY> {
00082 protected:
00083 GLBndSet unionOfDets;
00085 SeqU(Space& home, SeqU& p);
00087 SeqU(Home home, ViewArray<SetView>&, SetView);
00088 ExecStatus propagateSeqUnion(Space& home,
00089 bool& modified, ViewArray<SetView>& x,
00090 SetView& y);
00091 public:
00093 GECODE_SET_EXPORT virtual Actor* copy(Space& home);
00095 GECODE_SET_EXPORT virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00097 static ExecStatus post(Home home,ViewArray<SetView>, SetView);
00098 };
00099
00100
00101 }}}
00102
00103 #include <gecode/set/rel.hh>
00104 #include <gecode/set/rel-op/common.hpp>
00105 #include <gecode/set/sequence/common.hpp>
00106 #include <gecode/set/sequence/seq.hpp>
00107 #include <gecode/set/sequence/seq-u.hpp>
00108
00109 #endif
00110
00111