stopbrancher.hh gecode/kernel.hh gecode/gist.hh Gecode::Gist::StopChoice Gecode::Gist::StopBrancher Gecode Gecode::Gist /*-*-mode:C++;c-basic-offset:2;indent-tabs-mode:nil-*-*/ /* *Mainauthors: *GuidoTack<tack@gecode.org> * *Copyright: *GuidoTack,2006 * *Lastmodified: *$Date:2013-05-0217:10:16+0200(Thu,02May2013)$by$Author:schulte$ *$Revision:13603$ * *ThisfileispartofGecode,thegenericconstraint *developmentenvironment: *http://www.gecode.org * *Permissionisherebygranted,freeofcharge,toanypersonobtaining *acopyofthissoftwareandassociateddocumentationfiles(the *"Software"),todealintheSoftwarewithoutrestriction,including *withoutlimitationtherightstouse,copy,modify,merge,publish, *distribute,sublicense,and/orsellcopiesoftheSoftware,andto *permitpersonstowhomtheSoftwareisfurnishedtodoso,subjectto *thefollowingconditions: * *Theabovecopyrightnoticeandthispermissionnoticeshallbe *includedinallcopiesorsubstantialportionsoftheSoftware. * *THESOFTWAREISPROVIDED"ASIS",WITHOUTWARRANTYOFANYKIND, *EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOF *MERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEAND *NONINFRINGEMENT.INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBE *LIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTION *OFCONTRACT,TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTION *WITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE. * */ #include<gecode/kernel.hh> #include<gecode/gist.hh> namespaceGecode{namespaceGist{ classGECODE_GIST_EXPORTStopChoice:publicChoice{ public: StopChoice(constBrancher&b); virtualsize_tsize(void)const; virtualvoidarchive(Archive&e)const; }; classStopBrancher:publicBrancher{ protected: booldone; StopBrancher(Homehome); StopBrancher(Space&home,boolshare,StopBrancher&b); public: virtualboolstatus(constSpace&)const; virtualChoice*choice(Space&); virtualChoice*choice(constSpace&home,Archive&); virtualExecStatuscommit(Space&,constChoice&,unsignedint); virtualvoidprint(constSpace&home,constGecode::Choice&c, unsignedint, std::ostream&o)const; virtualActor*copy(Space&home,boolshare); staticvoidpost(Homehome); virtualsize_tdispose(Space&); }; }} //STATISTICS:gist-any