211 lines
31 KiB
XML
211 lines
31 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="float_2var-imp_8hpp" kind="file">
|
|
<compoundname>var-imp.hpp</compoundname>
|
|
<includes local="no">cmath</includes>
|
|
<includes refid="float_2var-imp_2delta_8hpp" local="no">gecode/float/var-imp/delta.hpp</includes>
|
|
<includes refid="var-imp_2float_8hpp" local="no">gecode/float/var-imp/float.hpp</includes>
|
|
<includedby refid="float_8hh" local="no">/usr/include/gecode/float.hh</includedby>
|
|
<incdepgraph>
|
|
<node id="5516">
|
|
<label>cmath</label>
|
|
</node>
|
|
<node id="5515">
|
|
<label>/usr/include/gecode/float/var-imp.hpp</label>
|
|
<link refid="float/var-imp.hpp"/>
|
|
<childnode refid="5516" relation="include">
|
|
</childnode>
|
|
<childnode refid="5517" relation="include">
|
|
</childnode>
|
|
<childnode refid="5518" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="5518">
|
|
<label>gecode/float/var-imp/float.hpp</label>
|
|
<link refid="var-imp_2float_8hpp_source"/>
|
|
</node>
|
|
<node id="5517">
|
|
<label>gecode/float/var-imp/delta.hpp</label>
|
|
<link refid="float_2var-imp_2delta_8hpp_source"/>
|
|
</node>
|
|
</incdepgraph>
|
|
<invincdepgraph>
|
|
<node id="5520">
|
|
<label>/usr/include/gecode/float.hh</label>
|
|
<link refid="float_8hh_source"/>
|
|
<childnode refid="5521" relation="include">
|
|
</childnode>
|
|
<childnode refid="5522" relation="include">
|
|
</childnode>
|
|
<childnode refid="5523" relation="include">
|
|
</childnode>
|
|
<childnode refid="5524" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="5519">
|
|
<label>/usr/include/gecode/float/var-imp.hpp</label>
|
|
<link refid="float/var-imp.hpp"/>
|
|
<childnode refid="5520" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="5524">
|
|
<label>/usr/include/gecode/float/rel.hh</label>
|
|
<link refid="float_2rel_8hh_source"/>
|
|
<childnode refid="5521" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="5521">
|
|
<label>/usr/include/gecode/float/arithmetic.hh</label>
|
|
<link refid="float_2arithmetic_8hh_source"/>
|
|
</node>
|
|
<node id="5523">
|
|
<label>/usr/include/gecode/float/linear.hh</label>
|
|
<link refid="float_2linear_8hh_source"/>
|
|
</node>
|
|
<node id="5522">
|
|
<label>/usr/include/gecode/float/branch.hh</label>
|
|
<link refid="float_2branch_8hh_source"/>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innerclass refid="classGecode_1_1Float_1_1FloatDelta" prot="public">Gecode::Float::FloatDelta</innerclass>
|
|
<innerclass refid="classGecode_1_1Float_1_1FloatVarImp" prot="public">Gecode::Float::FloatVarImp</innerclass>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Float">Gecode::Float</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/>Filip<sp/>Konvicka<sp/><filip.konvicka@logis.cz></highlight></codeline>
|
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Lubomir<sp/>Moric<sp/><lubomir.moric@logis.cz></highlight></codeline>
|
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard<sp/><Vincent.Barichard@univ-angers.fr></highlight></codeline>
|
|
<codeline lineno="7"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/><sp/>Contributing<sp/>authors:</highlight></codeline>
|
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte<sp/><schulte@gecode.org></highlight></codeline>
|
|
<codeline lineno="10"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
|
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>LOGIS,<sp/>s.r.o.,<sp/>2008</highlight></codeline>
|
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2010</highlight></codeline>
|
|
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard,<sp/>2012</highlight></codeline>
|
|
<codeline lineno="15"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2013-02-04<sp/>17:54:05<sp/>+0100<sp/>(Mon,<sp/>04<sp/>Feb<sp/>2013)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
|
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13260<sp/>$</highlight></codeline>
|
|
<codeline lineno="19"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="20"><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="21"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
|
<codeline lineno="23"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="24"><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="25"><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="26"><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="27"><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="28"><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="29"><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="30"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
|
<codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="32"><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="33"><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="34"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="35"><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="36"><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="37"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
|
<codeline lineno="38"><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="39"><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="40"><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="41"><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="42"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="43"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="45"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cmath></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="47"><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">Float<sp/>{</highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">FloatVarImp;</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="52" refid="classGecode_1_1Float_1_1FloatDelta" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Float_1_1FloatDelta" kindref="compound">FloatDelta</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Delta" kindref="compound">Delta</ref><sp/>{</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Float_1_1FloatVarImp" kindref="compound">FloatVarImp</ref>;</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>_min;<sp/></highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>_max;<sp/></highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Float_1_1FloatDelta_1a72379be2d25ea22da7a1ec69eeb5bc05" kindref="member">FloatDelta</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Float_1_1FloatDelta_1a72379be2d25ea22da7a1ec69eeb5bc05" kindref="member">FloatDelta</ref>(<ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="group__TaskModelFloatArith_1ga121700708772a60191be6256c3c0d151" kindref="member">min</ref>,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">max</ref>);</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="group__TaskModelFloatArith_1ga121700708772a60191be6256c3c0d151" kindref="member">min</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">max</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="69"><highlight class="normal">}}</highlight></codeline>
|
|
<codeline lineno="70"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="71"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/float/var-imp/delta.hpp></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="73"><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">Float<sp/>{</highlight></codeline>
|
|
<codeline lineno="74"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="80" refid="classGecode_1_1Float_1_1FloatVarImp" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Float_1_1FloatVarImp" kindref="compound">FloatVarImp</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>FloatVarImpBase<sp/>{</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="83" refid="classGecode_1_1Float_1_1FloatVarImp_1aa6e7479231555596173f107524e2c891" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1aa6e7479231555596173f107524e2c891" kindref="member">dom</ref>;</highlight></codeline>
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1ac455799c83aca7630aaeb8997f7fb44f" kindref="member">FloatVarImp</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_1Float_1_1FloatVarImp" kindref="compound">FloatVarImp</ref>&<sp/>x);</highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1ac455799c83aca7630aaeb8997f7fb44f" kindref="member">FloatVarImp</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>d);</highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="91"></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1ab7996e1a0e5f6dc0328f81c1552ef374" kindref="member">domain</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1adaef6816eabbbf6f7f796f3c7c2c2256" kindref="member">min</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a509556b7cfbbc5287c9d38f093b57460" kindref="member">max</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a9a7140847a72a25d5d71ddb096099bd7" kindref="member">val</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a0615ba0e1695638bbc27543bd622d11c" kindref="member">med</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1adb5fff621489f4205c04cdfcca3d918e" kindref="member">size</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="106"></codeline>
|
|
<codeline lineno="108"></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1ac408c9b17cf494ae4879408b72ecfd8e" kindref="member">assigned</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="111"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a30ce245e6aad1cc3594112eb36fc81aa" kindref="member">zero_in</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a6f7e7bfc9589ed12df8d30a08717b7bf" kindref="member">in</ref>(<ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>n)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a6f7e7bfc9589ed12df8d30a08717b7bf" kindref="member">in</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>n)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="119"></codeline>
|
|
<codeline lineno="121"></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a8cd94d075feb5b3daeb77093f55ae4c6" kindref="member">eq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>n);</highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a8cd94d075feb5b3daeb77093f55ae4c6" kindref="member">eq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>n);</highlight></codeline>
|
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a0f09373d91bda87ed29f9b87f4bd4915" kindref="member">lq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>n);</highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a0f09373d91bda87ed29f9b87f4bd4915" kindref="member">lq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>n);</highlight></codeline>
|
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a76d5c37032ecccb2b4d68e63be3093b1" kindref="member">gq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>n);</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a76d5c37032ecccb2b4d68e63be3093b1" kindref="member">gq</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>n);</highlight></codeline>
|
|
<codeline lineno="135"></codeline>
|
|
<codeline lineno="137"></codeline>
|
|
<codeline lineno="138"></codeline>
|
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a3d14239eaa8d7ed91a260bdb9406fef9" kindref="member">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/><ref refid="group__TaskVarMEPC_1gad24536e327a507a903179b6a5efd2e3d" kindref="member">PropCond</ref><sp/>pc,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>schedule=</highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a016d16184c8cde0bca344d7b836df08b" kindref="member">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/><ref refid="group__TaskVarMEPC_1gad24536e327a507a903179b6a5efd2e3d" kindref="member">PropCond</ref><sp/>pc);</highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a3d14239eaa8d7ed91a260bdb9406fef9" kindref="member">subscribe</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Advisor" kindref="compound">Advisor</ref>&<sp/>a);</highlight></codeline>
|
|
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a016d16184c8cde0bca344d7b836df08b" kindref="member">cancel</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Advisor" kindref="compound">Advisor</ref>&<sp/>a);</highlight></codeline>
|
|
<codeline lineno="154"></codeline>
|
|
<codeline lineno="156"></codeline>
|
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a0615ba0e1695638bbc27543bd622d11c" kindref="member">med</ref>(<ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me);</highlight></codeline>
|
|
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_FLOAT_EXPORT<sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp" kindref="compound">FloatVarImp</ref>*<sp/>perform_copy(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share);</highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="167"></codeline>
|
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp" kindref="compound">FloatVarImp</ref>*<sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a51001bd1d0f8b9f41ba7f269b59f33dd" kindref="member">copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share);</highlight></codeline>
|
|
<codeline lineno="171"></codeline>
|
|
<codeline lineno="173"></codeline>
|
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1adaef6816eabbbf6f7f796f3c7c2c2256" kindref="member">min</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Delta" kindref="compound">Delta</ref>&<sp/>d);</highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/><ref refid="classGecode_1_1Float_1_1FloatVarImp_1a509556b7cfbbc5287c9d38f093b57460" kindref="member">max</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Delta" kindref="compound">Delta</ref>&<sp/>d);</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">}}</highlight></codeline>
|
|
<codeline lineno="182"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/float/var-imp/float.hpp></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="184"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="185"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>float-var</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="186"><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/float/var-imp.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|