imp-body.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 namespace Gecode { namespace Int {
00027
00028
00029
00030
00031
00032
00033
00034
00035 void
00036 IntVarImpBase::Processor::process(Space* home, VarBase* _x) {
00037
00038 Gecode::Variable<VTI_INT,PC_INT_DOM,IntMeDiff>* x =
00039 static_cast<Gecode::Variable<VTI_INT,PC_INT_DOM,IntMeDiff>*>(_x);
00040 do {
00041 switch (x->modevent()) {
00042 case ME_INT_VAL:
00043 x->process(home);
00044 break;
00045 case ME_INT_BND:
00046
00047 x->process(home,PC_INT_BND,PC_INT_DOM,ME_INT_BND);
00048 break;
00049 case ME_INT_DOM:
00050
00051 x->process(home,PC_INT_DOM,PC_INT_DOM,ME_INT_DOM);
00052 break;
00053 default: GECODE_NEVER;
00054 }
00055 x = x->next();
00056 } while (x != NULL);
00057 }
00058
00059
00060 IntVarImpBase::Processor IntVarImpBase::p;
00061
00062
00063 }}
00064
00065