227 lines
48 KiB
XML
227 lines
48 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="dim_8hpp" kind="file">
|
|
<compoundname>dim.hpp</compoundname>
|
|
<includedby refid="no-overlap_8hh" local="no">/usr/include/gecode/int/no-overlap.hh</includedby>
|
|
<invincdepgraph>
|
|
<node id="17536">
|
|
<label>/usr/include/gecode/int/no-overlap.hh</label>
|
|
<link refid="no-overlap_8hh_source"/>
|
|
</node>
|
|
<node id="17535">
|
|
<label>/usr/include/gecode/int/no-overlap/dim.hpp</label>
|
|
<link refid="dim.hpp"/>
|
|
<childnode refid="17536" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Int">Gecode::Int</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Int_1_1NoOverlap">Gecode::Int::NoOverlap</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/>Christian<sp/>Schulte<sp/><schulte@gecode.org></highlight></codeline>
|
|
<codeline lineno="5"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2011</highlight></codeline>
|
|
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
|
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2011-07-13<sp/>18:55:08<sp/>+0200<sp/>(Wed,<sp/>13<sp/>Jul<sp/>2011)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>12194<sp/>$</highlight></codeline>
|
|
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="13"><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="14"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
|
<codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="17"><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="18"><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="19"><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="20"><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="21"><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="22"><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="23"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
|
<codeline lineno="24"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="25"><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="26"><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="27"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="28"><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="29"><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="30"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
|
<codeline lineno="31"><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="32"><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="33"><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="34"><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="35"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="38"><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">Int<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">NoOverlap<sp/>{</highlight></codeline>
|
|
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="40"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="41"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Dimension<sp/>with<sp/>integer<sp/>size</highlight></codeline>
|
|
<codeline lineno="42"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="43"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="45" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae568b3ac52de7412c426c8073e4a314f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae568b3ac52de7412c426c8073e4a314f" kindref="member">FixDim::FixDim</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>s(0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="48" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a9dda48aa98e310b45471a019feb49ef2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae568b3ac52de7412c426c8073e4a314f" kindref="member">FixDim::FixDim</ref>(<ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref><sp/>c0,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>s0)</highlight></codeline>
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>c(c0),<sp/>s(s0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="52" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ad68c3486dbe4174be1b44ce3d49f43b8" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ad68c3486dbe4174be1b44ce3d49f43b8" kindref="member">FixDim::ssc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>();</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="56" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1b93ab1c01b06973d37aa601776dc1aa" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1b93ab1c01b06973d37aa601776dc1aa" kindref="member">FixDim::lsc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1aa06f1c972492a79e90000d854134cc74" kindref="member">max</ref>();</highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="60" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1accd09194bfb238966c40f9d7f9dcb1eb" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1accd09194bfb238966c40f9d7f9dcb1eb" kindref="member">FixDim::sec</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>()<sp/>+<sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref>;</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="64" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae87fae74039cbc76a47417186c688a21" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae87fae74039cbc76a47417186c688a21" kindref="member">FixDim::lec</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1aa06f1c972492a79e90000d854134cc74" kindref="member">max</ref>()<sp/>+<sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref>;</highlight></codeline>
|
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="69" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ab6a9574bce30b6147fd2d95e64445f62" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ad68c3486dbe4174be1b44ce3d49f43b8" kindref="member">FixDim::ssc</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1ae0caad61da923547d773198f2420b96f" kindref="member">gq</ref>(home,<sp/>n));</highlight></codeline>
|
|
<codeline lineno="71"><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="72"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="74" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a2ec1137325b6ee3e5eccf685e09b99cf" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae87fae74039cbc76a47417186c688a21" kindref="member">FixDim::lec</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1a765f7b23d8006387bfcdca16309f79fa" kindref="member">lq</ref>(home,<sp/>n<sp/>-<sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref>));</highlight></codeline>
|
|
<codeline lineno="76"><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="77"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="79" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aa57efb07975fa69ca10a02d8234b2713" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aa57efb07975fa69ca10a02d8234b2713" kindref="member">FixDim::nooverlap</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>m)<sp/>{</highlight></codeline>
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(n<sp/><=<sp/>m)<sp/>{</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Singleton" kindref="compound">Iter::Ranges::Singleton</ref><sp/>r(n-<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref>+1,m);</highlight></codeline>
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1acd59b6d398dd020b7a0e73ff78398e84" kindref="member">minus_r</ref>(home,r,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</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">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="87" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a58bf5675ae850f5783bdc1aa74d9c413" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aa57efb07975fa69ca10a02d8234b2713" kindref="member">FixDim::nooverlap</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim" kindref="compound">FixDim</ref>&<sp/>d)<sp/>{</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1accd09194bfb238966c40f9d7f9dcb1eb" kindref="member">sec</ref>()<sp/>><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1b93ab1c01b06973d37aa601776dc1aa" kindref="member">lsc</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Propagate<sp/>that<sp/>d<sp/>must<sp/>be<sp/>after<sp/>this</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ae87fae74039cbc76a47417186c688a21" kindref="member">lec</ref>(home,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1b93ab1c01b06973d37aa601776dc1aa" kindref="member">lsc</ref>()));</highlight></codeline>
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK(d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ab6a9574bce30b6147fd2d95e64445f62" kindref="member">ssc</ref>(home,<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1accd09194bfb238966c40f9d7f9dcb1eb" kindref="member">sec</ref>()));</highlight></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aa57efb07975fa69ca10a02d8234b2713" kindref="member">nooverlap</ref>(home,<sp/>d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1b93ab1c01b06973d37aa601776dc1aa" kindref="member">lsc</ref>(),<sp/>d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1accd09194bfb238966c40f9d7f9dcb1eb" kindref="member">sec</ref>()-1);</highlight></codeline>
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="95"><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="96"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="99" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1ec7197bd9205f124ba191a6e952599e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a1ec7197bd9205f124ba191a6e952599e" kindref="member">FixDim::update</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/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim" kindref="compound">FixDim</ref>&<sp/>d)<sp/>{</highlight></codeline>
|
|
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1VarImpView_1a5f0569230bea9a229d76eed32716b42a" kindref="member">update</ref>(home,share,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>);</highlight></codeline>
|
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref><sp/>=<sp/>d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1aaefa408f493649537b5d677cc577f31e" kindref="member">s</ref>;</highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="103"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="105" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ab5c2f2f22edecfba3c1ec41e76819b0a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1ab5c2f2f22edecfba3c1ec41e76819b0a" kindref="member">FixDim::subscribe</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1VarImpView_1a9a475b6d28d2a0f263958aa36a322c50" kindref="member">subscribe</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="109" refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a6e42fa91e55a385afb9e71aad1662760" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a6e42fa91e55a385afb9e71aad1662760" kindref="member">FixDim::cancel</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FixDim_1a837986215c5a00712d839631b50ed994" kindref="member">c</ref>.<ref refid="classGecode_1_1VarImpView_1af550f46509ae9dc6ebe600239da76455" kindref="member">cancel</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Dimension<sp/>with<sp/>integer<sp/>view<sp/>size</highlight></codeline>
|
|
<codeline lineno="116"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="119" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a8f61f28968da63fb4b0ffe1deb804b3e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a8f61f28968da63fb4b0ffe1deb804b3e" kindref="member">FlexDim::FlexDim</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="121" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1abbd26e7449c09693412ca98ba4dd50e0" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a8f61f28968da63fb4b0ffe1deb804b3e" kindref="member">FlexDim::FlexDim</ref>(<ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref><sp/>c00,<sp/><ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref><sp/>s0,<sp/><ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref><sp/>c10)</highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>c0(c00),<sp/>s(s0),<sp/>c1(c10)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="124"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="125" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ac6eb717a96ad4d4e65169f1139557e67" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ac6eb717a96ad4d4e65169f1139557e67" kindref="member">FlexDim::ssc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>();</highlight></codeline>
|
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="129" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a88847599dc6abcff0d20e2c9f7e24e5d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a88847599dc6abcff0d20e2c9f7e24e5d" kindref="member">FlexDim::lsc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1aa06f1c972492a79e90000d854134cc74" kindref="member">max</ref>();</highlight></codeline>
|
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="133" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1acaf78a15e232c3443e1e97a34d203f26" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1acaf78a15e232c3443e1e97a34d203f26" kindref="member">FlexDim::sec</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>();</highlight></codeline>
|
|
<codeline lineno="135"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="137" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa74fc62414f2b3511dd487ca0f360a3b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa74fc62414f2b3511dd487ca0f360a3b" kindref="member">FlexDim::lec</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1aa06f1c972492a79e90000d854134cc74" kindref="member">max</ref>();</highlight></codeline>
|
|
<codeline lineno="139"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="140"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="141"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="142" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a86f1c71cfc9199433d655d5fa3fce1b2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ac6eb717a96ad4d4e65169f1139557e67" kindref="member">FlexDim::ssc</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1ae0caad61da923547d773198f2420b96f" kindref="member">gq</ref>(home,<sp/>n));</highlight></codeline>
|
|
<codeline lineno="144"><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="145"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="147" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa9dfce9853e14c5dd053f0cecd004f4b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa74fc62414f2b3511dd487ca0f360a3b" kindref="member">FlexDim::lec</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1a765f7b23d8006387bfcdca16309f79fa" kindref="member">lq</ref>(home,<sp/>n));</highlight></codeline>
|
|
<codeline lineno="149"><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="150"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="152" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ab12b901280a9605b78d315bdfbe5322a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ab12b901280a9605b78d315bdfbe5322a" kindref="member">FlexDim::nooverlap</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>m)<sp/>{</highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(n<sp/><=<sp/>m)<sp/>{</highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Singleton" kindref="compound">Iter::Ranges::Singleton</ref><sp/>r0(n-<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>()+1,m);</highlight></codeline>
|
|
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1acd59b6d398dd020b7a0e73ff78398e84" kindref="member">minus_r</ref>(home,r0,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1Singleton" kindref="compound">Iter::Ranges::Singleton</ref><sp/>r1(n+1,<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1abc9505bdc00f7a5de8aadb550bdac72a" kindref="member">min</ref>()+m);</highlight></codeline>
|
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1Int_1_1IntView_1acd59b6d398dd020b7a0e73ff78398e84" kindref="member">minus_r</ref>(home,r1,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="159"><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="160"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="162" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1adc150fd14b0ee9a78508b1b435db5c1f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ab12b901280a9605b78d315bdfbe5322a" kindref="member">FlexDim::nooverlap</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim" kindref="compound">FlexDim</ref>&<sp/>d)<sp/>{</highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1acaf78a15e232c3443e1e97a34d203f26" kindref="member">sec</ref>()<sp/>><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a88847599dc6abcff0d20e2c9f7e24e5d" kindref="member">lsc</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Propagate<sp/>that<sp/>d<sp/>must<sp/>be<sp/>after<sp/>this</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK(<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa74fc62414f2b3511dd487ca0f360a3b" kindref="member">lec</ref>(home,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a88847599dc6abcff0d20e2c9f7e24e5d" kindref="member">lsc</ref>()));</highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK(d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a86f1c71cfc9199433d655d5fa3fce1b2" kindref="member">ssc</ref>(home,<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1acaf78a15e232c3443e1e97a34d203f26" kindref="member">sec</ref>()));</highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1ab12b901280a9605b78d315bdfbe5322a" kindref="member">nooverlap</ref>(home,<sp/>d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a88847599dc6abcff0d20e2c9f7e24e5d" kindref="member">lsc</ref>(),<sp/>d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1acaf78a15e232c3443e1e97a34d203f26" kindref="member">sec</ref>()-1);</highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="170"><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="171"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="172"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="173"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="175" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a620e36f5b091bee99d656c2574eb368d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a620e36f5b091bee99d656c2574eb368d" kindref="member">FlexDim::update</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/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim" kindref="compound">FlexDim</ref>&<sp/>d)<sp/>{</highlight></codeline>
|
|
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1VarImpView_1a5f0569230bea9a229d76eed32716b42a" kindref="member">update</ref>(home,share,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>);</highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>.<ref refid="classGecode_1_1VarImpView_1a5f0569230bea9a229d76eed32716b42a" kindref="member">update</ref>(home,share,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>);</highlight></codeline>
|
|
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1VarImpView_1a5f0569230bea9a229d76eed32716b42a" kindref="member">update</ref>(home,share,d.<ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>);</highlight></codeline>
|
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="180"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="182" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1af0112031faaba8776c3360f3c1e5e87a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1af0112031faaba8776c3360f3c1e5e87a" kindref="member">FlexDim::subscribe</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1VarImpView_1a9a475b6d28d2a0f263958aa36a322c50" kindref="member">subscribe</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>.<ref refid="classGecode_1_1VarImpView_1a9a475b6d28d2a0f263958aa36a322c50" kindref="member">subscribe</ref>(home,p,PC_INT_BND);</highlight></codeline>
|
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1VarImpView_1a9a475b6d28d2a0f263958aa36a322c50" kindref="member">subscribe</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="186"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="187"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="188" refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a60f16480b81b407e163970a91e6dcb7d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a60f16480b81b407e163970a91e6dcb7d" kindref="member">FlexDim::cancel</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1aa900bc87f53a34783b8ef612b1fbda8c" kindref="member">c0</ref>.<ref refid="classGecode_1_1VarImpView_1af550f46509ae9dc6ebe600239da76455" kindref="member">cancel</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a3becc91416a7b8d8fd9a88ed2630dd7f" kindref="member">s</ref>.<ref refid="classGecode_1_1VarImpView_1af550f46509ae9dc6ebe600239da76455" kindref="member">cancel</ref>(home,p,PC_INT_BND);</highlight></codeline>
|
|
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NoOverlap_1_1FlexDim_1a309e64b34ecd42a78b4d511594b15cc7" kindref="member">c1</ref>.<ref refid="classGecode_1_1VarImpView_1af550f46509ae9dc6ebe600239da76455" kindref="member">cancel</ref>(home,p,PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="192"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="193"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="194"><highlight class="normal">}}}</highlight></codeline>
|
|
<codeline lineno="195"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="196"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>int-prop</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="197"><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/int/no-overlap/dim.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|