227 lines
41 KiB
XML
227 lines
41 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="val-set_8hpp" kind="file">
|
|
<compoundname>val-set.hpp</compoundname>
|
|
<includedby refid="val-set_8hh" local="no">/usr/include/gecode/int/val-set.hh</includedby>
|
|
<invincdepgraph>
|
|
<node id="20405">
|
|
<label>/usr/include/gecode/int/member.hh</label>
|
|
<link refid="member_8hh_source"/>
|
|
</node>
|
|
<node id="20406">
|
|
<label>/usr/include/gecode/int/nvalues.hh</label>
|
|
<link refid="nvalues_8hh_source"/>
|
|
</node>
|
|
<node id="20403">
|
|
<label>/usr/include/gecode/int/val-set.hpp</label>
|
|
<link refid="val-set.hpp"/>
|
|
<childnode refid="20404" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="20404">
|
|
<label>/usr/include/gecode/int/val-set.hh</label>
|
|
<link refid="val-set_8hh_source"/>
|
|
<childnode refid="20405" relation="include">
|
|
</childnode>
|
|
<childnode refid="20406" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Int">Gecode::Int</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-08-22<sp/>21:43:31<sp/>+0200<sp/>(Mon,<sp/>22<sp/>Aug<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/>12335<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/>{</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/>Value<sp/>sets</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_1ValSet_1adff4c3592fb92cb00d7991beb1debdb3" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1adff4c3592fb92cb00d7991beb1debdb3" kindref="member">ValSet::ValSet</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>fst(NULL),<sp/>lst(NULL),<sp/>n(0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="49" refid="classGecode_1_1Int_1_1ValSet_1aade00cc4542395c19cddf17108d98a9e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1aade00cc4542395c19cddf17108d98a9e" kindref="member">ValSet::add</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>v)<sp/>{</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>*<sp/><sp/>c<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>;</highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>**<sp/>p<sp/>=<sp/>&<ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>;</highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(c<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(v<sp/><<sp/>c-><ref refid="classGecode_1_1Int_1_1ValSet_1ae7d830e5789d4b5c625ebfb0bbee3736" kindref="member">min</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(v+1<sp/>==<sp/>c-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>c-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>(v);<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>++;</highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="57"><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="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*p<sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>(v,v,c);<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>++;<sp/></highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(v<sp/><=<sp/>c-><ref refid="classGecode_1_1Int_1_1ValSet_1a82ed249e5ad0af6b8f4fe14e4e36c2bc" kindref="member">max</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Value<sp/>already<sp/>included</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(v<sp/>==<sp/>c-><ref refid="classGecode_1_1RangeList_1a07b12ffd797419107e6f9a9970a93226" kindref="member">max</ref>()+1)<sp/>{</highlight></codeline>
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>()<sp/>!=<sp/>NULL)<sp/>&&<sp/>(v+1<sp/>==<sp/>c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>()-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>()))<sp/>{</highlight></codeline>
|
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>()-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>(c-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>());</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*p<sp/>=<sp/>c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>();</highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>c-><ref refid="classGecode_1_1RangeList_1a27a1b8afa7762e8d735634ba08b8b91b" kindref="member">dispose</ref>(home,c);</highlight></codeline>
|
|
<codeline lineno="69"><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="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>c-><ref refid="classGecode_1_1RangeList_1a07b12ffd797419107e6f9a9970a93226" kindref="member">max</ref>(v);</highlight></codeline>
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>++;</highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>FIXME:<sp/>HOW<sp/>TO<sp/>CAST<sp/>HERE?</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>p<sp/>=<sp/></highlight><highlight class="keyword">reinterpret_cast<</highlight><highlight class="normal"><ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>**</highlight><highlight class="keyword">></highlight><highlight class="normal">(c-><ref refid="classGecode_1_1FreeList_1a9874d126df8911a0cd9c04d2bcb51e8f" kindref="member">nextRef</ref>());</highlight></codeline>
|
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>c<sp/>=<sp/>*p;</highlight></codeline>
|
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/>*p<sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>(v,v,NULL);<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>++;</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ad76ab11b1a4ed44fed33d8d62ce4eac6" kindref="member">lst</ref><sp/>=<sp/>*p;</highlight></codeline>
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="83"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="85" refid="classGecode_1_1Int_1_1ValSet_1a24f440a4e82190ad085e117f5b157f8c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a24f440a4e82190ad085e117f5b157f8c" kindref="member">ValSet::size</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="86"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>;</highlight></codeline>
|
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="90" refid="classGecode_1_1Int_1_1ValSet_1aa6e7aed1036a9de0a2312de30c8a48a6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1aa6e7aed1036a9de0a2312de30c8a48a6" kindref="member">ValSet::empty</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="91"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref><sp/>==<sp/>0;</highlight></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="93"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="95" refid="classGecode_1_1Int_1_1ValSet_1ae7d830e5789d4b5c625ebfb0bbee3736" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ae7d830e5789d4b5c625ebfb0bbee3736" kindref="member">ValSet::min</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="96"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>-><ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>();</highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="98"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="100" refid="classGecode_1_1Int_1_1ValSet_1a82ed249e5ad0af6b8f4fe14e4e36c2bc" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a82ed249e5ad0af6b8f4fe14e4e36c2bc" kindref="member">ValSet::max</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="101"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ad76ab11b1a4ed44fed33d8d62ce4eac6" kindref="member">lst</ref>-><ref refid="classGecode_1_1RangeList_1a07b12ffd797419107e6f9a9970a93226" kindref="member">max</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_1ValSet_1aae773ebb09abfc685c8f79fcaac6c348" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1aae773ebb09abfc685c8f79fcaac6c348" kindref="member">ValSet::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_1ValSet" kindref="compound">ValSet</ref>&<sp/>vs)<sp/>{</highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/>share;</highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(vs.<ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref><sp/>><sp/>0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref><sp/>=<sp/>vs.<ref refid="classGecode_1_1Int_1_1ValSet_1ac4c182b8122b214d21604996a8f20d27" kindref="member">n</ref>;</highlight></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Count<sp/>number<sp/>of<sp/>ranges</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>m<sp/>=<sp/>0;</highlight></codeline>
|
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>*<sp/>c<sp/>=<sp/>vs.<ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>;<sp/>c<sp/>!=<sp/>NULL;<sp/>c<sp/>=<sp/>c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>())</highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>m++;</highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref><sp/>=<sp/>home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref><<ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>>(m);</highlight></codeline>
|
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ad76ab11b1a4ed44fed33d8d62ce4eac6" kindref="member">lst</ref><sp/>=<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref><sp/>+<sp/>(m-1);</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=0;</highlight></codeline>
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1RangeList" kindref="compound">RangeList</ref>*<sp/>c<sp/>=<sp/>vs.<ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>;<sp/>c<sp/>!=<sp/>NULL;<sp/>c<sp/>=<sp/>c-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>[i].<ref refid="classGecode_1_1RangeList_1a3716d76502b1ad17b30b0a606a50f691" kindref="member">min</ref>(c->min());<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>[i].<ref refid="classGecode_1_1RangeList_1a07b12ffd797419107e6f9a9970a93226" kindref="member">max</ref>(c->max());</highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>[i].<ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>(<ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>+i+1);</highlight></codeline>
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
|
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>lst-><ref refid="classGecode_1_1RangeList_1a0b5c08469f5b466226731976452e54a4" kindref="member">next</ref>(NULL);</highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="124"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="126" refid="classGecode_1_1Int_1_1ValSet_1a946dd64b30dcecafe6f1c05f4fb95183" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a946dd64b30dcecafe6f1c05f4fb95183" kindref="member">ValSet::flush</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref><sp/>=<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ad76ab11b1a4ed44fed33d8d62ce4eac6" kindref="member">lst</ref><sp/>=<sp/>NULL;</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="131" refid="classGecode_1_1Int_1_1ValSet_1a5486034d5e3c19d31ae4a76426604473" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a5486034d5e3c19d31ae4a76426604473" kindref="member">ValSet::dispose</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref><sp/>!=<sp/>NULL)</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a11ee1addac6ae68796d91dfbc09c13d2" kindref="member">fst</ref>-><ref refid="classGecode_1_1RangeList_1a27a1b8afa7762e8d735634ba08b8b91b" kindref="member">dispose</ref>(home,<ref refid="classGecode_1_1Int_1_1ValSet_1ad76ab11b1a4ed44fed33d8d62ce4eac6" kindref="member">lst</ref>);</highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="135"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="137" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1ae562330263da75fb88befc7e6ea4808a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1ae562330263da75fb88befc7e6ea4808a" kindref="member">ValSet::Ranges::Ranges</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1ValSet" kindref="compound">ValSet</ref>&<sp/>vs)<sp/></highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>c(vs.fst)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="139"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="141" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a60fa01549b0afe3908a6e9b626a1eb56" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a60fa01549b0afe3908a6e9b626a1eb56" kindref="member">ValSet::Ranges::operator ()</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="142"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>c<sp/>!=<sp/>NULL;</highlight></codeline>
|
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="145"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="146" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1acdbae41b80aa26c46443f6bb8e406741" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1acdbae41b80aa26c46443f6bb8e406741" kindref="member">ValSet::Ranges::operator ++</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/>c<sp/>=<sp/>c->next();</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="149"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="151" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1ad28fe9b17d1d6db0ac51babc1135a6e5" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1ad28fe9b17d1d6db0ac51babc1135a6e5" kindref="member">ValSet::Ranges::min</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="152"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>c->min();</highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="155" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a37474a68f190b02ad4e1012a486e82e5" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a37474a68f190b02ad4e1012a486e82e5" kindref="member">ValSet::Ranges::max</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="156"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>c->max();</highlight></codeline>
|
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="160" refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a9ffd27b3e7d7735c52e5825418c7c83b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges_1a9ffd27b3e7d7735c52e5825418c7c83b" kindref="member">ValSet::Ranges::width</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="161"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>c->width();</highlight></codeline>
|
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="group__FuncIterRangesOp_1ga231b2059e20903d95675dab6351c0694" kindref="member">Iter::Ranges::CompareStatus</ref></highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a5b96e9eac3a6c8658767f66d2dbdf7b6" kindref="member">ValSet::compare</ref>(View<sp/>x)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ValSet_1aa6e7aed1036a9de0a2312de30c8a48a6" kindref="member">empty</ref>()<sp/>||<sp/>(x.max()<sp/><<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ae7d830e5789d4b5c625ebfb0bbee3736" kindref="member">min</ref>())<sp/>||<sp/>(x.min()<sp/>><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a82ed249e5ad0af6b8f4fe14e4e36c2bc" kindref="member">max</ref>()))</highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1gga231b2059e20903d95675dab6351c0694a5dbce948b4886b5ad1caf216d1ca4d3d" kindref="member">Iter::Ranges::CS_DISJOINT</ref>;</highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges" kindref="compound">ViewRanges<View></ref><sp/>xr(x);</highlight></codeline>
|
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1ga544c763f5400045d10bf8affc0768df4" kindref="member">Iter::Ranges::compare</ref>(xr,vsr);</highlight></codeline>
|
|
<codeline lineno="172"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="173"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="175"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="176"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ae69d806dc2b48d8e44b72d2b3cf32649" kindref="member">ValSet::subset</ref>(View<sp/>x)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ValSet_1aa6e7aed1036a9de0a2312de30c8a48a6" kindref="member">empty</ref>()<sp/>||<sp/>(x.min()<sp/><<sp/><ref refid="classGecode_1_1Int_1_1ValSet_1ae7d830e5789d4b5c625ebfb0bbee3736" kindref="member">min</ref>())<sp/>||<sp/>(x.max()<sp/>><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1a82ed249e5ad0af6b8f4fe14e4e36c2bc" kindref="member">max</ref>()))</highlight></codeline>
|
|
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges" kindref="compound">ViewRanges<View></ref><sp/>xr(x);</highlight></codeline>
|
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1ga3e3d455a5dfd24404184fa2914cf3c60" kindref="member">Iter::Ranges::subset</ref>(xr,vsr);</highlight></codeline>
|
|
<codeline lineno="182"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="184"><highlight class="normal">}}</highlight></codeline>
|
|
<codeline lineno="185"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="186"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>int-other</highlight><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/int/val-set.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|