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 #ifndef __GECODE_SET_SEQUENCE_HH__
00029 #define __GECODE_SET_SEQUENCE_HH__
00030
00031 #include "gecode/set.hh"
00032
00033 namespace Gecode { namespace Set { namespace Sequence {
00034
00047 class Seq :
00048 public NaryPropagator<SetView, PC_SET_CGLB> {
00049 protected:
00051 Seq(Space* home, bool share,Seq& p);
00053 Seq(Space* home,ViewArray<SetView>&);
00054 public:
00056 GECODE_SET_EXPORT virtual Actor* copy(Space* home, bool);
00058 GECODE_SET_EXPORT virtual ExecStatus propagate(Space* home);
00060 static ExecStatus post(Space* home,ViewArray<SetView>);
00061 };
00062
00070 class SeqU : public NaryOnePropagator<SetView,PC_SET_ANY> {
00071 protected:
00072 GLBndSet unionOfDets;
00074 SeqU(Space* home, bool share,SeqU& p);
00076 SeqU(Space* home,ViewArray<SetView>&, SetView);
00077 public:
00079 GECODE_SET_EXPORT virtual Actor* copy(Space* home, bool);
00081 GECODE_SET_EXPORT virtual ExecStatus propagate(Space* home);
00083 static ExecStatus post(Space* home,ViewArray<SetView>, SetView);
00084 };
00085
00086
00087 }}}
00088
00089 #include "gecode/set/rel.hh"
00090 #include "gecode/set/rel-op/common.icc"
00091 #include "gecode/set/sequence/common.icc"
00092 #include "gecode/set/sequence/seq.icc"
00093 #include "gecode/set/sequence/seq-u.icc"
00094
00095 #endif
00096
00097