374 lines
37 KiB
XML
374 lines
37 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="stop_8hpp" kind="file">
|
|
<compoundname>stop.hpp</compoundname>
|
|
<includedby refid="search_8hh" local="no">/usr/include/gecode/search.hh</includedby>
|
|
<invincdepgraph>
|
|
<node id="29880">
|
|
<label>/usr/include/gecode/flatzinc.hh</label>
|
|
<link refid="flatzinc_8hh_source"/>
|
|
<childnode refid="29881" relation="include">
|
|
</childnode>
|
|
<childnode refid="29882" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29884">
|
|
<label>/usr/include/gecode/gist/mainwindow.hh</label>
|
|
<link refid="mainwindow_8hh_source"/>
|
|
</node>
|
|
<node id="29896">
|
|
<label>/usr/include/gecode/search/sequential/bab.hh</label>
|
|
<link refid="sequential_2bab_8hh_source"/>
|
|
</node>
|
|
<node id="29886">
|
|
<label>/usr/include/gecode/gist/preferences.hh</label>
|
|
<link refid="preferences_8hh_source"/>
|
|
</node>
|
|
<node id="29879">
|
|
<label>/usr/include/gecode/driver.hh</label>
|
|
<link refid="driver_8hh_source"/>
|
|
<childnode refid="29880" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29897">
|
|
<label>/usr/include/gecode/search/sequential/dfs.hh</label>
|
|
<link refid="sequential_2dfs_8hh_source"/>
|
|
</node>
|
|
<node id="29881">
|
|
<label>/usr/include/gecode/flatzinc/parser.hh</label>
|
|
<link refid="parser_8hh_source"/>
|
|
</node>
|
|
<node id="29878">
|
|
<label>/usr/include/gecode/search.hh</label>
|
|
<link refid="search_8hh_source"/>
|
|
<childnode refid="29879" relation="include">
|
|
</childnode>
|
|
<childnode refid="29883" relation="include">
|
|
</childnode>
|
|
<childnode refid="29890" relation="include">
|
|
</childnode>
|
|
<childnode refid="29898" relation="include">
|
|
</childnode>
|
|
<childnode refid="29892" relation="include">
|
|
</childnode>
|
|
<childnode refid="29891" relation="include">
|
|
</childnode>
|
|
<childnode refid="29896" relation="include">
|
|
</childnode>
|
|
<childnode refid="29897" relation="include">
|
|
</childnode>
|
|
<childnode refid="29895" relation="include">
|
|
</childnode>
|
|
<childnode refid="29900" relation="include">
|
|
</childnode>
|
|
<childnode refid="29901" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29889">
|
|
<label>/usr/include/gecode/gist/qtgist.hh</label>
|
|
<link refid="qtgist_8hh_source"/>
|
|
<childnode refid="29884" relation="include">
|
|
</childnode>
|
|
<childnode refid="29885" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29894">
|
|
<label>/usr/include/gecode/search/parallel/dfs.hh</label>
|
|
<link refid="parallel_2dfs_8hh_source"/>
|
|
</node>
|
|
<node id="29888">
|
|
<label>/usr/include/gecode/gist/treecanvas.hh</label>
|
|
<link refid="treecanvas_8hh_source"/>
|
|
<childnode refid="29889" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29877">
|
|
<label>/usr/include/gecode/search/stop.hpp</label>
|
|
<link refid="stop.hpp"/>
|
|
<childnode refid="29878" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29885">
|
|
<label>/usr/include/gecode/gist/nodewidget.hh</label>
|
|
<link refid="nodewidget_8hh_source"/>
|
|
</node>
|
|
<node id="29901">
|
|
<label>/usr/include/gecode/search/worker.hh</label>
|
|
<link refid="worker_8hh_source"/>
|
|
<childnode refid="29892" relation="include">
|
|
</childnode>
|
|
<childnode refid="29891" relation="include">
|
|
</childnode>
|
|
<childnode refid="29896" relation="include">
|
|
</childnode>
|
|
<childnode refid="29897" relation="include">
|
|
</childnode>
|
|
<childnode refid="29895" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29891">
|
|
<label>/usr/include/gecode/search/parallel/path.hh</label>
|
|
<link refid="parallel_2path_8hh_source"/>
|
|
<childnode refid="29892" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29883">
|
|
<label>/usr/include/gecode/gist.hh</label>
|
|
<link refid="gist_8hh_source"/>
|
|
<childnode refid="29884" relation="include">
|
|
</childnode>
|
|
<childnode refid="29885" relation="include">
|
|
</childnode>
|
|
<childnode refid="29886" relation="include">
|
|
</childnode>
|
|
<childnode refid="29887" relation="include">
|
|
</childnode>
|
|
<childnode refid="29888" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29898">
|
|
<label>/usr/include/gecode/search/meta/rbs.hh</label>
|
|
<link refid="rbs_8hh_source"/>
|
|
<childnode refid="29899" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29893">
|
|
<label>/usr/include/gecode/search/parallel/bab.hh</label>
|
|
<link refid="parallel_2bab_8hh_source"/>
|
|
</node>
|
|
<node id="29887">
|
|
<label>/usr/include/gecode/gist/stopbrancher.hh</label>
|
|
<link refid="stopbrancher_8hh_source"/>
|
|
</node>
|
|
<node id="29892">
|
|
<label>/usr/include/gecode/search/parallel/engine.hh</label>
|
|
<link refid="engine_8hh_source"/>
|
|
<childnode refid="29893" relation="include">
|
|
</childnode>
|
|
<childnode refid="29894" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29882">
|
|
<label>/usr/include/gecode/flatzinc/registry.hh</label>
|
|
<link refid="registry_8hh_source"/>
|
|
</node>
|
|
<node id="29895">
|
|
<label>/usr/include/gecode/search/sequential/path.hh</label>
|
|
<link refid="sequential_2path_8hh_source"/>
|
|
<childnode refid="29896" relation="include">
|
|
</childnode>
|
|
<childnode refid="29897" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29899">
|
|
<label>/usr/include/gecode/search/rbs.hpp</label>
|
|
<link refid="rbs_8hpp_source"/>
|
|
<childnode refid="29878" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29890">
|
|
<label>/usr/include/gecode/search/meta/nogoods.hh</label>
|
|
<link refid="nogoods_8hh_source"/>
|
|
<childnode refid="29891" relation="include">
|
|
</childnode>
|
|
<childnode refid="29895" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="29900">
|
|
<label>/usr/include/gecode/search/support.hh</label>
|
|
<link refid="search_2support_8hh_source"/>
|
|
<childnode refid="29892" relation="include">
|
|
</childnode>
|
|
<childnode refid="29891" relation="include">
|
|
</childnode>
|
|
<childnode refid="29899" relation="include">
|
|
</childnode>
|
|
<childnode refid="29896" relation="include">
|
|
</childnode>
|
|
<childnode refid="29897" relation="include">
|
|
</childnode>
|
|
<childnode refid="29895" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Search">Gecode::Search</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/>2006</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/>2013-10-30<sp/>15:42:34<sp/>+0100<sp/>(Wed,<sp/>30<sp/>Oct<sp/>2013)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>14037<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">Search<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/>Base<sp/>class</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_1Search_1_1Stop_1ae302d43fef2d669d9b8176acbcf9b73c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Stop_1ae302d43fef2d669d9b8176acbcf9b73c" kindref="member">Stop::Stop</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="47" refid="classGecode_1_1Search_1_1Stop_1ad90885b245e012bf606761acce005547" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Stop_1ad90885b245e012bf606761acce005547" kindref="member">Stop::~Stop</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</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_1Search_1_1Stop_1aa6e564f2ae9520dd15caf301ae1f973a" refkind="member"><highlight class="normal"><sp/><sp/>Stop::operator<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal">(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>s)<sp/>{</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a6595368d634d0db095ad8dee79f14d2c" kindref="member">heap</ref>.<ref refid="classGecode_1_1Heap_1a55baad1786a0407ba0321cd37745a7a6" kindref="member">ralloc</ref>(s);</highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="53" refid="classGecode_1_1Search_1_1Stop_1adcf14604abab854cd1b655114baf6f2c" refkind="member"><highlight class="normal"><sp/><sp/>Stop::operator<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a6595368d634d0db095ad8dee79f14d2c" kindref="member">heap</ref>.<ref refid="classGecode_1_1Heap_1aa424ffe00ff3f52d7e66a5766db638bf" kindref="member">rfree</ref>(p);</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Stopping<sp/>for<sp/>node<sp/>limit</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="63"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="66" refid="classGecode_1_1Search_1_1NodeStop_1a5c626afb015df8616880b83f84e41ed7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1NodeStop_1a5c626afb015df8616880b83f84e41ed7" kindref="member">NodeStop::NodeStop</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)<sp/>:<sp/>l(l0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="69" refid="classGecode_1_1Search_1_1NodeStop_1a10eb4abe6d9ca9b779774a01f310e5ac" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1NodeStop_1a10eb4abe6d9ca9b779774a01f310e5ac" kindref="member">NodeStop::limit</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="70"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1NodeStop_1a80f0f8f6d69e59484eca0d460816fe42" kindref="member">l</ref>;</highlight></codeline>
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="74" refid="classGecode_1_1Search_1_1NodeStop_1acc449c884acb444ebbad00077593aed4" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1NodeStop_1a10eb4abe6d9ca9b779774a01f310e5ac" kindref="member">NodeStop::limit</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1NodeStop_1a80f0f8f6d69e59484eca0d460816fe42" kindref="member">l</ref>=l0;</highlight></codeline>
|
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="77"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="78"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="80"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Stopping<sp/>for<sp/>failure<sp/>limit</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="82"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="83"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="85" refid="classGecode_1_1Search_1_1FailStop_1a4f05722616fa773e3bc564cead523779" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1FailStop_1a4f05722616fa773e3bc564cead523779" kindref="member">FailStop::FailStop</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)<sp/>:<sp/>l(l0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="88" refid="classGecode_1_1Search_1_1FailStop_1a9cecf8e6a283a0ed59020cb0a883725e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1FailStop_1a9cecf8e6a283a0ed59020cb0a883725e" kindref="member">FailStop::limit</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="89"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1FailStop_1a1d578909488882747275c34ec3328265" kindref="member">l</ref>;</highlight></codeline>
|
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="91"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="93" refid="classGecode_1_1Search_1_1FailStop_1a25749f1983a2602136a72ab391ada2e5" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1FailStop_1a9cecf8e6a283a0ed59020cb0a883725e" kindref="member">FailStop::limit</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1FailStop_1a1d578909488882747275c34ec3328265" kindref="member">l</ref>=l0;</highlight></codeline>
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="99"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Stopping<sp/>for<sp/>time<sp/>limit</highlight></codeline>
|
|
<codeline lineno="100"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="101"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="104" refid="classGecode_1_1Search_1_1TimeStop_1aac155595ce5ffa50b8884f396af94434" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1aac155595ce5ffa50b8884f396af94434" kindref="member">TimeStop::TimeStop</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)</highlight></codeline>
|
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>l(l0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a77babc908a84befd171b0c97e6f6f161" kindref="member">t</ref>.<ref refid="classGecode_1_1Support_1_1Timer_1adf14e2f8def59f0ed36418fd1d79a15a" kindref="member">start</ref>();</highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="108"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="110" refid="classGecode_1_1Search_1_1TimeStop_1a3ce063283e085bb7fb4cb173d1e4ba5d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a3ce063283e085bb7fb4cb173d1e4ba5d" kindref="member">TimeStop::limit</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="111"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a981c403301105754141a57d6d2a934c9" kindref="member">l</ref>;</highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="115" refid="classGecode_1_1Search_1_1TimeStop_1ab4688cad40223666e24f3d506de4f406" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a3ce063283e085bb7fb4cb173d1e4ba5d" kindref="member">TimeStop::limit</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a981c403301105754141a57d6d2a934c9" kindref="member">l</ref>=l0;</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="120" refid="classGecode_1_1Search_1_1TimeStop_1a832cf45fdc42506b4b745628f751b763" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a832cf45fdc42506b4b745628f751b763" kindref="member">TimeStop::reset</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1TimeStop_1a77babc908a84befd171b0c97e6f6f161" kindref="member">t</ref>.<ref refid="classGecode_1_1Support_1_1Timer_1adf14e2f8def59f0ed36418fd1d79a15a" kindref="member">start</ref>();</highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="124"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="126"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Stopping<sp/>for<sp/>meta<sp/>search<sp/>engines</highlight></codeline>
|
|
<codeline lineno="127"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="131" refid="classGecode_1_1Search_1_1MetaStop_1aa9bea8854a8ebd76a3f4c0848fbc67e2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1aa9bea8854a8ebd76a3f4c0848fbc67e2" kindref="member">MetaStop::MetaStop</ref>(<ref refid="classGecode_1_1Search_1_1Stop" kindref="compound">Stop</ref>*<sp/>s)<sp/></highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>e_stop(new<sp/><ref refid="classGecode_1_1Search_1_1FailStop" kindref="compound">FailStop</ref>(0)),<sp/>m_stop(s),<sp/>e_stopped(false)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="135" refid="classGecode_1_1Search_1_1MetaStop_1a31d43855133d60220a0bc3c990a8c536" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1a31d43855133d60220a0bc3c990a8c536" kindref="member">MetaStop::limit</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Statistics" kindref="compound">Search::Statistics</ref>&<sp/>s,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l)<sp/>{</highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/>m_stat<sp/>+=<sp/>s;</highlight></codeline>
|
|
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/>e_stopped<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/>e_stop-><ref refid="classGecode_1_1Search_1_1FailStop_1a9cecf8e6a283a0ed59020cb0a883725e" kindref="member">limit</ref>(l);</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/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="142" refid="classGecode_1_1Search_1_1MetaStop_1a662b9a3997a0ec447ed843fa8640af0e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1a662b9a3997a0ec447ed843fa8640af0e" kindref="member">MetaStop::update</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Statistics" kindref="compound">Search::Statistics</ref>&<sp/>s)<sp/>{</highlight></codeline>
|
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/>m_stat<sp/>+=<sp/>s;</highlight></codeline>
|
|
<codeline lineno="144"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Search_1_1Stop" kindref="compound">Stop</ref>*</highlight></codeline>
|
|
<codeline lineno="147" refid="classGecode_1_1Search_1_1MetaStop_1ad53411f02aee8cee10364972dc805bf6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1ad53411f02aee8cee10364972dc805bf6" kindref="member">MetaStop::enginestop</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{<sp/></highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>e_stop;<sp/></highlight></codeline>
|
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="152" refid="classGecode_1_1Search_1_1MetaStop_1a9f7b4d096bd31aa6fa2c669b947051ce" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1a9f7b4d096bd31aa6fa2c669b947051ce" kindref="member">MetaStop::enginestopped</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{<sp/></highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>e_stopped;<sp/></highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="155"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Search_1_1Statistics" kindref="compound">Statistics</ref><sp/></highlight></codeline>
|
|
<codeline lineno="157" refid="classGecode_1_1Search_1_1MetaStop_1ac4feba62011253e3e3b4106b1dbce821" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1ac4feba62011253e3e3b4106b1dbce821" kindref="member">MetaStop::metastatistics</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{<sp/></highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>m_stat;<sp/></highlight></codeline>
|
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="162" refid="classGecode_1_1Search_1_1MetaStop_1aedc9e6037e43920e260abde4709f0421" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1MetaStop_1aedc9e6037e43920e260abde4709f0421" kindref="member">MetaStop::~MetaStop</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>e_stop;</highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>m_stop;</highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal">}}</highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>search-other</highlight><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/search/stop.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|