323 lines
61 KiB
XML
323 lines
61 KiB
XML
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
||
|
<compounddef id="unionConst_8hpp" kind="file">
|
||
|
<compoundname>unionConst.hpp</compoundname>
|
||
|
<includedby refid="set_2element_8hh" local="no">/usr/include/gecode/set/element.hh</includedby>
|
||
|
<invincdepgraph>
|
||
|
<node id="30846">
|
||
|
<label>/usr/include/gecode/set/element/unionConst.hpp</label>
|
||
|
<link refid="unionConst.hpp"/>
|
||
|
<childnode refid="30847" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="30847">
|
||
|
<label>/usr/include/gecode/set/element.hh</label>
|
||
|
<link refid="set_2element_8hh_source"/>
|
||
|
</node>
|
||
|
</invincdepgraph>
|
||
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
||
|
<innernamespace refid="namespaceGecode_1_1Set">Gecode::Set</innernamespace>
|
||
|
<innernamespace refid="namespaceGecode_1_1Set_1_1Element">Gecode::Set::Element</innernamespace>
|
||
|
<briefdescription>
|
||
|
</briefdescription>
|
||
|
<detaileddescription>
|
||
|
</detaileddescription>
|
||
|
<programlisting>
|
||
|
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
|
||
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack<sp/><tack@gecode.org></highlight></codeline>
|
||
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte<sp/><schulte@gecode.org></highlight></codeline>
|
||
|
<codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
||
|
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack,<sp/>2004,2006,2007</highlight></codeline>
|
||
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2004</highlight></codeline>
|
||
|
<codeline lineno="10"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
||
|
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2012-09-07<sp/>17:31:22<sp/>+0200<sp/>(Fri,<sp/>07<sp/>Sep<sp/>2012)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13068<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="14"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
|
||
|
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
||
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
||
|
<codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
|
||
|
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/><sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
|
||
|
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/><sp/>"Software"),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
|
||
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/><sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
|
||
|
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/><sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/><sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
||
|
<codeline lineno="26"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="27"><highlight class="comment"><sp/>*<sp/><sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
|
||
|
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/><sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
|
||
|
<codeline lineno="29"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/><sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>"AS<sp/>IS",<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
|
||
|
<codeline lineno="31"><highlight class="comment"><sp/>*<sp/><sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
|
||
|
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
||
|
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/><sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
|
||
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/><sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
|
||
|
<codeline lineno="35"><highlight class="comment"><sp/>*<sp/><sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
|
||
|
<codeline lineno="36"><highlight class="comment"><sp/>*<sp/><sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
|
||
|
<codeline lineno="37"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="38"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Set<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Element<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a008e8c41e0e8d2cde54d4a69f98ab932" kindref="member">ElementUnionConst<SView,RView>::</ref></highlight></codeline>
|
||
|
<codeline lineno="45" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a58eeb9ac323c64ee835a8fbd60c569f4" refkind="member"><highlight class="normal"><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a008e8c41e0e8d2cde54d4a69f98ab932" kindref="member"> ElementUnionConst</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>SView<sp/>y0,</highlight></codeline>
|
||
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1ArgArray" kindref="compound">IntSetArgs</ref>&<sp/>iv0,</highlight></codeline>
|
||
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>RView<sp/>y1)</highlight></codeline>
|
||
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>(home),<sp/>x0(y0),<sp/>n_iv(iv0.<ref refid="group__FuncIterRangesOp_1ga9f9ab6d72452ad86b95cd65abf463161" kindref="member">size</ref>()),<sp/>x1(y1)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>home.<ref refid="classGecode_1_1Home_1a25526fc8f7e6ddd0d8a9b4eb83862c70" kindref="member">notice</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<ref refid="namespaceGecode_1a99c644746a8611a92ce7f82ff6e12bc9a1f784a3552a29808c4d566132b9a1875" kindref="member">AP_DISPOSE</ref>);</highlight></codeline>
|
||
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/>x0.subscribe(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_SET_ANY);</highlight></codeline>
|
||
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/>x1.subscribe(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_SET_ANY);</highlight></codeline>
|
||
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/>iv=</highlight><highlight class="keyword">static_cast<</highlight><highlight class="normal"><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&</highlight><highlight class="keyword">></highlight><highlight class="normal">(home).alloc<IntSet>(n_iv);</highlight></codeline>
|
||
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=iv0.<ref refid="classGecode_1_1ArgArrayBase_1a5cd6f91808d5560f28f05b75be65ab1d" kindref="member">size</ref>();<sp/>i--;)</highlight></codeline>
|
||
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>iv[i]=iv0[i];</highlight></codeline>
|
||
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a008e8c41e0e8d2cde54d4a69f98ab932" kindref="member">ElementUnionConst<SView,RView>::</ref></highlight></codeline>
|
||
|
<codeline lineno="60" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a008e8c41e0e8d2cde54d4a69f98ab932" refkind="member"><highlight class="normal"><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a008e8c41e0e8d2cde54d4a69f98ab932" kindref="member"> ElementUnionConst</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,</highlight></codeline>
|
||
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst" kindref="compound">ElementUnionConst<SView,RView></ref>&<sp/>p)</highlight></codeline>
|
||
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>(home,share,p),<sp/>n_iv(p.n_iv)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/>x0.update(home,share,p.x0);</highlight></codeline>
|
||
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/>x1.update(home,share,p.x1);</highlight></codeline>
|
||
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/>iv=home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref><<ref refid="classGecode_1_1IntSet" kindref="compound">IntSet</ref>>(n_iv);</highlight></codeline>
|
||
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_iv;<sp/>i--;)</highlight></codeline>
|
||
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>iv[i].update(home,share,p.iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="69"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1PropCost" kindref="compound">PropCost</ref></highlight></codeline>
|
||
|
<codeline lineno="72" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a29fbd4809abbeafded9662c32142d42d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a29fbd4809abbeafded9662c32142d42d" kindref="member">ElementUnionConst<SView,RView>::cost</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1PropCost_1a4a383a3772df2c1e49341813edc19b34" kindref="member">PropCost::linear</ref>(<ref refid="classGecode_1_1PropCost_1ad1bebae59ea373495c5bf51ffc249dcdada52d4d3b08e9888c5063df5140e12e2" kindref="member">PropCost::HI</ref>,<sp/>n_iv+2);</highlight></codeline>
|
||
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="75"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="78" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a9eea09603770135e37f8b36505c978ab" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a9eea09603770135e37f8b36505c978ab" kindref="member">ElementUnionConst<SView,RView>::dispose</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>home.<ref refid="classGecode_1_1Space_1aab89b878dbffb5b16a50ad19add652f7" kindref="member">ignore</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<ref refid="namespaceGecode_1a99c644746a8611a92ce7f82ff6e12bc9a1f784a3552a29808c4d566132b9a1875" kindref="member">AP_DISPOSE</ref>);</highlight></codeline>
|
||
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!home.<ref refid="classGecode_1_1Space_1a9e1ab1eb6a0da74bd4ddc85e347af44a" kindref="member">failed</ref>())<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x0.cancel(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_SET_ANY);</highlight></codeline>
|
||
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x1.cancel(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_SET_ANY);</highlight></codeline>
|
||
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_iv;<sp/>i--;)</highlight></codeline>
|
||
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>iv[i].~<ref refid="classGecode_1_1IntSet" kindref="compound">IntSet</ref>();</highlight></codeline>
|
||
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/><ref refid="classGecode_1_1Actor_1a143253b3eceda40f36834e38c8ac05d9" kindref="member">Propagator::dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(*this);</highlight></codeline>
|
||
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
||
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a9e30d14c88678645e8c0bfb4560d8973" kindref="member">ElementUnionConst<SView,RView>::</ref></highlight></codeline>
|
||
|
<codeline lineno="93" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a9e30d14c88678645e8c0bfb4560d8973" refkind="member"><highlight class="normal"><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a9e30d14c88678645e8c0bfb4560d8973" kindref="member"> post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>SView<sp/>x0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1ArgArray" kindref="compound">IntSetArgs</ref>&<sp/>xs,</highlight></codeline>
|
||
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/>RView<sp/>x1)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n<sp/>=<sp/>xs.<ref refid="classGecode_1_1ArgArrayBase_1a5cd6f91808d5560f28f05b75be65ab1d" kindref="member">size</ref>();</highlight></codeline>
|
||
|
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>s2<sp/>\subseteq<sp/>{1,...,n}</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Singleton" kindref="compound">Iter::Ranges::Singleton</ref><sp/>s(0,<sp/>n-1);</highlight></codeline>
|
||
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x1.intersectI(home,s));</highlight></codeline>
|
||
|
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)</highlight></codeline>
|
||
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst" kindref="compound">ElementUnionConst<SView,RView></ref>(home,x0,xs,x1);</highlight></codeline>
|
||
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
||
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="104"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
|
||
|
<codeline lineno="107" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a37c5a5a1d6f1f3a964228f3a42d2f9dc" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1a37c5a5a1d6f1f3a964228f3a42d2f9dc" kindref="member">ElementUnionConst<SView,RView>::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst" kindref="compound">ElementUnionConst<SView,RView></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="110"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>SView,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>RView></highlight></codeline>
|
||
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
||
|
<codeline lineno="113" refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1ae7b3758f0144a88077d0864c9a472a5c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Set_1_1Element_1_1ElementUnionConst_1ae7b3758f0144a88077d0864c9a472a5c" kindref="member">ElementUnionConst<SView,RView>::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref><sp/>r(home);</highlight></codeline>
|
||
|
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal">*<sp/>stillSelected<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">bool</highlight><highlight class="normal">>(n_iv);</highlight></codeline>
|
||
|
<codeline lineno="117"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>loopVar;</highlight></codeline>
|
||
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">do</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_iv;<sp/>i--;)</highlight></codeline>
|
||
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stillSelected[i]<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="123"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Cache<sp/>the<sp/>upper<sp/>bound<sp/>iterator,<sp/>as<sp/>we<sp/>have<sp/>to</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>modify<sp/>the<sp/>upper<sp/>bound<sp/>while<sp/>iterating</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1LubRanges" kindref="compound">LubRanges<RView></ref><sp/>x1ub(x1);</highlight></codeline>
|
||
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Cache" kindref="compound">Iter::Ranges::Cache</ref><sp/>x1ubc(r,x1ub);</highlight></codeline>
|
||
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1ToValues" kindref="compound">Iter::Ranges::ToValues<Iter::Ranges::Cache></ref></highlight></codeline>
|
||
|
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vx1ub(x1ubc);</highlight></codeline>
|
||
|
<codeline lineno="130"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GlbRanges" kindref="compound">GlbRanges<RView></ref><sp/>x1lb(x1);</highlight></codeline>
|
||
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Cache" kindref="compound">Iter::Ranges::Cache</ref><sp/>x1lbc(r,x1lb);</highlight></codeline>
|
||
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1ToValues" kindref="compound">Iter::Ranges::ToValues<Iter::Ranges::Cache></ref></highlight></codeline>
|
||
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vx1(x1lbc);</highlight></codeline>
|
||
|
<codeline lineno="135"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>In<sp/>the<sp/>first<sp/>iteration,<sp/>compute<sp/>in<sp/>before[i]<sp/>the<sp/>union</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>of<sp/>all<sp/>the<sp/>upper<sp/>bounds<sp/>of<sp/>the<sp/>x_i.<sp/>At<sp/>the<sp/>same<sp/>time,</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>exclude<sp/>inconsistent<sp/>x_i<sp/>from<sp/>x1.</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="139"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref><sp/>sofarBefore(home);</highlight></codeline>
|
||
|
<codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1LUBndSet" kindref="compound">LUBndSet</ref><sp/>selectedInter(home,<sp/><ref refid="classGecode_1_1IntSet" kindref="compound">IntSet</ref><sp/>(<ref refid="namespaceGecode_1_1Set_1_1Limits_1a768af29a2cbf9eec75b4376b325f6cc4" kindref="member">Limits::min</ref>,</highlight></codeline>
|
||
|
<codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1_1Set_1_1Limits_1aa0057c6b80521aaf8485343580d0eed5" kindref="member">Limits::max</ref>));</highlight></codeline>
|
||
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref>*<sp/>before<sp/>=</highlight></codeline>
|
||
|
<codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="normal"><ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref>*</highlight><highlight class="keyword">></highlight><highlight class="normal">(r.<ref refid="classGecode_1_1Region_1a6c9123960b7c49dd2d6595ebfccfe7d6" kindref="member">ralloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(<ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref>)*n_iv));</highlight></codeline>
|
||
|
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>maxCard<sp/>=<sp/>0;</highlight></codeline>
|
||
|
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minCard<sp/>=<sp/><ref refid="namespaceGecode_1_1Set_1_1Limits_1a82e5a0891d539b2d58db3a9347ac138b" kindref="member">Limits::card</ref>;</highlight></codeline>
|
||
|
<codeline lineno="148"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(vx1ub())<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>vx1ub.<ref refid="classGecode_1_1Iter_1_1Ranges_1_1ToValues_1a0fa7a1051bf37c3d44d7971292ff0dd4" kindref="member">val</ref>();</highlight></codeline>
|
||
|
<codeline lineno="151"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1IntSetRanges" kindref="compound">IntSetRanges</ref><sp/>candCardR(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>candidateCard<sp/>=<sp/><ref refid="group__FuncIterRangesOp_1ga9f9ab6d72452ad86b95cd65abf463161" kindref="member">Iter::Ranges::size</ref>(candCardR);</highlight></codeline>
|
||
|
<codeline lineno="154"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1IntSetRanges" kindref="compound">IntSetRanges</ref><sp/>candlb(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1LubRanges" kindref="compound">LubRanges<SView></ref><sp/>x0ub(x0);</highlight></codeline>
|
||
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Diff" kindref="compound">Iter::Ranges::Diff</ref><<ref refid="classGecode_1_1IntSetRanges" kindref="compound">IntSetRanges</ref>,</highlight></codeline>
|
||
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1LubRanges" kindref="compound">LubRanges<SView></ref><sp/>><sp/>diff(candlb,<sp/>x0ub);</highlight></codeline>
|
||
|
<codeline lineno="159"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>selectSingleInconsistent<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x1.cardMax()<sp/><=<sp/>1)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GlbRanges" kindref="compound">GlbRanges<SView></ref><sp/>x0lb(x0);</highlight></codeline>
|
||
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IntSetRanges<sp/>candub(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Diff" kindref="compound">Iter::Ranges::Diff<GlbRanges<SView></ref>,</highlight></codeline>
|
||
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IntSetRanges<sp/>><sp/>diff2(x0lb,<sp/>candub);</highlight></codeline>
|
||
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>selectSingleInconsistent<sp/>=<sp/>diff2()<sp/>||<sp/>candidateCard<sp/><<sp/>x0.cardMin();</highlight></codeline>
|
||
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="168"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>exclude<sp/>inconsistent<sp/>x_i</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>an<sp/>x_i<sp/>is<sp/>inconsistent<sp/>if</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/>*<sp/>at<sp/>most<sp/>one<sp/>x_i<sp/>can<sp/>be<sp/>selected<sp/>and<sp/>there<sp/>are</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/><sp/><sp/>elements<sp/>in<sp/>x_0<sp/>that<sp/>can't<sp/>be<sp/>in<sp/>x_i</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/><sp/><sp/>(selectSingleInconsistent)</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/>*<sp/>its<sp/>min<sp/>cardinality<sp/>is<sp/>greater<sp/>than<sp/>maxCard<sp/>of<sp/>x0</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/>*<sp/>inter<sp/>is<sp/>not<sp/>empty<sp/>(there<sp/>are<sp/>elements<sp/>in<sp/>x_i</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/><sp/><sp/><sp/>that<sp/>can't<sp/>be<sp/>in<sp/>x_0)</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(selectSingleInconsistent<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>candidateCard<sp/>><sp/>x0.cardMax()<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>diff())<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>(x1.exclude(home,i));</highlight></codeline>
|
||
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stillSelected[i]<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>if<sp/>x_i<sp/>is<sp/>consistent,<sp/>check<sp/>whether<sp/>we<sp/>know</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>that<sp/>its<sp/>index<sp/>is<sp/>in<sp/>x1</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(vx1()<sp/>&&<sp/>vx1.<ref refid="classGecode_1_1Iter_1_1Ranges_1_1ToValues_1a0fa7a1051bf37c3d44d7971292ff0dd4" kindref="member">val</ref>()==i)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>x0<sp/>>=<sp/>candidate,<sp/>candidate<sp/><=<sp/>x0</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>GlbRanges<SView><sp/>candlb(candidate);</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IntSetRanges<sp/>candlb(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>x0.includeI(home,candlb);</highlight></codeline>
|
||
|
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>++vx1;</highlight></codeline>
|
||
|
<codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(&before[i])<sp/><ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>before[i].<ref refid="classGecode_1_1Set_1_1BndSet_1a4d00b2876d4c92e788b50cb927cf3751" kindref="member">update</ref>(home,sofarBefore);</highlight></codeline>
|
||
|
<codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IntSetRanges<sp/>cub(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sofarBefore.<ref refid="classGecode_1_1Set_1_1GLBndSet_1acf31e1ebe21a4d3138c6655c06b19ac0" kindref="member">includeI</ref>(home,cub);</highlight></codeline>
|
||
|
<codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IntSetRanges<sp/>clb(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="201"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>selectedInter.<ref refid="classGecode_1_1Set_1_1LUBndSet_1a29e84847cb5c60372af8d3f7c2509f7e" kindref="member">intersectI</ref>(home,clb);</highlight></codeline>
|
||
|
<codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>maxCard<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(maxCard,<sp/>candidateCard);</highlight></codeline>
|
||
|
<codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>minCard<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga121700708772a60191be6256c3c0d151" kindref="member">std::min</ref>(minCard,<sp/>candidateCard);</highlight></codeline>
|
||
|
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="205"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>++vx1ub;</highlight></codeline>
|
||
|
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="208"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x1.cardMax()==0)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Selector<sp/>is<sp/>empty,<sp/>hence<sp/>the<sp/>result<sp/>must<sp/>be<sp/>empty</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.cardMax(home,0));</highlight></codeline>
|
||
|
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_iv;<sp/>i--;)</highlight></codeline>
|
||
|
<codeline lineno="215"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(stillSelected[i])</highlight></codeline>
|
||
|
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>before[i].<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>selectedInter.<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sofarBefore.<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="221"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x1.cardMin()<sp/>><sp/>0)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Selector<sp/>is<sp/>not<sp/>empty,<sp/>hence<sp/>the<sp/>intersection<sp/>of<sp/>the</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>possibly<sp/>selected<sp/>lower<sp/>bounds<sp/>is<sp/>contained<sp/>in<sp/>x0</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1BndSetRanges" kindref="compound">BndSetRanges</ref><sp/>si(selectedInter);</highlight></codeline>
|
||
|
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>x0.includeI(home,<sp/>si);</highlight></codeline>
|
||
|
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>me<sp/>=<sp/>x0.cardMin(home,<sp/>minCard);</highlight></codeline>
|
||
|
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>selectedInter.<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="234"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x1.cardMax()<sp/><=<sp/>1)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>x0.cardMax(home,<sp/>maxCard);</highlight></codeline>
|
||
|
<codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="240"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>x0<sp/><=<sp/>sofarBefore</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1BndSetRanges" kindref="compound">BndSetRanges</ref><sp/>sfB(sofarBefore);</highlight></codeline>
|
||
|
<codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>x0.intersectI(home,sfB);</highlight></codeline>
|
||
|
<codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="248"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>sofarBefore.<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GLBndSet" kindref="compound">GLBndSet</ref><sp/>sofarAfter(home);</highlight></codeline>
|
||
|
<codeline lineno="252"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>In<sp/>the<sp/>second<sp/>iteration,<sp/>this<sp/>time<sp/>backwards,<sp/>compute</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>sofarAfter<sp/>as<sp/>the<sp/>union<sp/>of<sp/>all<sp/>lub(x_j)<sp/>with<sp/>j>i</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_iv;<sp/>i--;)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!stillSelected[i])</highlight></codeline>
|
||
|
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1BndSetRanges" kindref="compound">BndSetRanges</ref><sp/>b(before[i]);</highlight></codeline>
|
||
|
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1BndSetRanges" kindref="compound">BndSetRanges</ref><sp/>s(sofarAfter);</highlight></codeline>
|
||
|
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Set_1_1GlbRanges" kindref="compound">GlbRanges<SView></ref><sp/>x0lb(x0);</highlight></codeline>
|
||
|
<codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Union" kindref="compound">Iter::Ranges::Union<BndSetRanges, BndSetRanges></ref><sp/>inter(b,s);</highlight></codeline>
|
||
|
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Diff" kindref="compound">Iter::Ranges::Diff<GlbRanges<SView></ref>,</highlight></codeline>
|
||
|
<codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Union" kindref="compound">Iter::Ranges::Union<BndSetRanges,BndSetRanges></ref><sp/>><sp/>diff(x0lb,<sp/>inter);</highlight></codeline>
|
||
|
<codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(diff())<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>(x1.include(home,i));</highlight></codeline>
|
||
|
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loopVar<sp/>|=<sp/><ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me);</highlight></codeline>
|
||
|
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(me);</highlight></codeline>
|
||
|
<codeline lineno="268"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>candidate<sp/>!=<sp/>extra</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1IntSetRanges" kindref="compound">IntSetRanges</ref><sp/>ivi(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="group__FuncIterRangesOp_1ga3e3d455a5dfd24404184fa2914cf3c60" kindref="member">Iter::Ranges::subset</ref>(diff,<sp/>ivi))</highlight></codeline>
|
||
|
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(ME_SET_FAILED);</highlight></codeline>
|
||
|
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="274"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1IntSetRanges" kindref="compound">IntSetRanges</ref><sp/>iviub(iv[i]);</highlight></codeline>
|
||
|
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sofarAfter.<ref refid="classGecode_1_1Set_1_1GLBndSet_1acf31e1ebe21a4d3138c6655c06b19ac0" kindref="member">includeI</ref>(home,iviub);</highlight></codeline>
|
||
|
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>before[i].<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>sofarAfter.<ref refid="classGecode_1_1Set_1_1BndSet_1a4fd106aef04d3546920c07e0d94024de" kindref="member">dispose</ref>(home);</highlight></codeline>
|
||
|
<codeline lineno="280"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(loopVar);</highlight></codeline>
|
||
|
<codeline lineno="282"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x1.assigned())<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(x0.assigned());</highlight></codeline>
|
||
|
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="287"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
|
||
|
<codeline lineno="289"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="290"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="291"><highlight class="normal">}}}</highlight></codeline>
|
||
|
<codeline lineno="292"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="293"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>set-prop</highlight><highlight class="normal"></highlight></codeline>
|
||
|
</programlisting>
|
||
|
<location file="/usr/include/gecode/set/element/unionConst.hpp"/>
|
||
|
</compounddef>
|
||
|
</doxygen>
|