580 lines
103 KiB
XML
580 lines
103 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="interval_2interval_8hpp" kind="file">
|
|
<compoundname>interval.hpp</compoundname>
|
|
<includes local="no">stdexcept</includes>
|
|
<includes local="no">string</includes>
|
|
<includes refid="interval__prototype_8hpp" local="no">gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp</includes>
|
|
<includedby refid="arith_8hpp" local="no">/usr/include/gecode/third-party/boost/numeric/interval/arith.hpp</includedby>
|
|
<includedby refid="policies_8hpp" local="no">/usr/include/gecode/third-party/boost/numeric/interval/policies.hpp</includedby>
|
|
<includedby refid="interval_8hpp" local="no">/usr/include/gecode/third-party/boost/numeric/interval.hpp</includedby>
|
|
<incdepgraph>
|
|
<node id="34689">
|
|
<label>stdexcept</label>
|
|
</node>
|
|
<node id="34690">
|
|
<label>string</label>
|
|
</node>
|
|
<node id="34691">
|
|
<label>gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp</label>
|
|
<link refid="interval__prototype_8hpp_source"/>
|
|
</node>
|
|
<node id="34688">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/interval.hpp</label>
|
|
<link refid="interval/interval.hpp"/>
|
|
<childnode refid="34689" relation="include">
|
|
</childnode>
|
|
<childnode refid="34690" relation="include">
|
|
</childnode>
|
|
<childnode refid="34691" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</incdepgraph>
|
|
<invincdepgraph>
|
|
<node id="34697">
|
|
<label>/usr/include/gecode/float.hh</label>
|
|
<link refid="float_8hh_source"/>
|
|
<childnode refid="34698" relation="include">
|
|
</childnode>
|
|
<childnode refid="34699" relation="include">
|
|
</childnode>
|
|
<childnode refid="34700" relation="include">
|
|
</childnode>
|
|
<childnode refid="34701" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34702">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/policies.hpp</label>
|
|
<link refid="policies_8hpp_source"/>
|
|
<childnode refid="34694" relation="include">
|
|
</childnode>
|
|
<childnode refid="34696" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34694">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/arith2.hpp</label>
|
|
<link refid="arith2_8hpp_source"/>
|
|
<childnode refid="34695" relation="include">
|
|
</childnode>
|
|
<childnode refid="34696" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34696">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval.hpp</label>
|
|
<link refid="interval_8hpp_source"/>
|
|
<childnode refid="34697" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34701">
|
|
<label>/usr/include/gecode/float/rel.hh</label>
|
|
<link refid="float_2rel_8hh_source"/>
|
|
<childnode refid="34698" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34698">
|
|
<label>/usr/include/gecode/float/arithmetic.hh</label>
|
|
<link refid="float_2arithmetic_8hh_source"/>
|
|
</node>
|
|
<node id="34693">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/arith.hpp</label>
|
|
<link refid="arith_8hpp_source"/>
|
|
<childnode refid="34694" relation="include">
|
|
</childnode>
|
|
<childnode refid="34695" relation="include">
|
|
</childnode>
|
|
<childnode refid="34696" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34700">
|
|
<label>/usr/include/gecode/float/linear.hh</label>
|
|
<link refid="float_2linear_8hh_source"/>
|
|
</node>
|
|
<node id="34699">
|
|
<label>/usr/include/gecode/float/branch.hh</label>
|
|
<link refid="float_2branch_8hh_source"/>
|
|
</node>
|
|
<node id="34695">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/transc.hpp</label>
|
|
<link refid="transc_8hpp_source"/>
|
|
<childnode refid="34696" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="34692">
|
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/interval.hpp</label>
|
|
<link refid="interval/interval.hpp"/>
|
|
<childnode refid="34693" relation="include">
|
|
</childnode>
|
|
<childnode refid="34702" relation="include">
|
|
</childnode>
|
|
<childnode refid="34696" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innerclass refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" prot="public">boost::numeric::interval_lib::comparison_error</innerclass>
|
|
<innerclass refid="classboost_1_1numeric_1_1interval" prot="public">boost::numeric::interval</innerclass>
|
|
<innerclass refid="structboost_1_1numeric_1_1interval_1_1interval__holder" prot="private">boost::numeric::interval::interval_holder</innerclass>
|
|
<innerclass refid="structboost_1_1numeric_1_1interval_1_1number__holder" prot="private">boost::numeric::interval::number_holder</innerclass>
|
|
<innernamespace refid="namespaceboost">boost</innernamespace>
|
|
<innernamespace refid="namespaceboost_1_1numeric">boost::numeric</innernamespace>
|
|
<innernamespace refid="namespaceboost_1_1numeric_1_1interval__lib">boost::numeric::interval_lib</innernamespace>
|
|
<briefdescription>
|
|
</briefdescription>
|
|
<detaileddescription>
|
|
</detaileddescription>
|
|
<programlisting>
|
|
<codeline lineno="1"><highlight class="comment">/*<sp/>Boost<sp/>interval/interval.hpp<sp/>header<sp/>file</highlight></codeline>
|
|
<codeline lineno="2"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>2002-2003<sp/>Hervé<sp/>Brönnimann,<sp/>Guillaume<sp/>Melquiond,<sp/>Sylvain<sp/>Pion</highlight></codeline>
|
|
<codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>Distributed<sp/>under<sp/>the<sp/>Boost<sp/>Software<sp/>License,<sp/>Version<sp/>1.0.</highlight></codeline>
|
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>(See<sp/>accompanying<sp/>file<sp/>LICENSE_1_0.txt<sp/>or</highlight></codeline>
|
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>copy<sp/>at<sp/>http://www.boost.org/LICENSE_1_0.txt)</highlight></codeline>
|
|
<codeline lineno="8"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>BOOST_NUMERIC_INTERVAL_INTERVAL_HPP</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>BOOST_NUMERIC_INTERVAL_INTERVAL_HPP</highlight></codeline>
|
|
<codeline lineno="12"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><stdexcept></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><string></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="16"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="17"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">boost<sp/>{</highlight></codeline>
|
|
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">numeric<sp/>{</highlight></codeline>
|
|
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">interval_lib<sp/>{</highlight></codeline>
|
|
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
|
<codeline lineno="22" refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">comparison_error</ref></highlight></codeline>
|
|
<codeline lineno="23"><highlight class="normal"><sp/><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>std::runtime_error<sp/></highlight></codeline>
|
|
<codeline lineno="24"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="25"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="26"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">comparison_error</ref>()</highlight></codeline>
|
|
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>std::runtime_error(</highlight><highlight class="stringliteral">"boost::interval:<sp/>uncertain<sp/>comparison"</highlight><highlight class="normal">)</highlight></codeline>
|
|
<codeline lineno="28"><highlight class="normal"><sp/><sp/>{<sp/>}</highlight></codeline>
|
|
<codeline lineno="29"><highlight class="normal">};</highlight></codeline>
|
|
<codeline lineno="30"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="31"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>interval_lib</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="32"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/>interval<sp/>class</highlight></codeline>
|
|
<codeline lineno="35"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="36"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies></highlight></codeline>
|
|
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref></highlight></codeline>
|
|
<codeline lineno="39"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">interval_holder;</highlight></codeline>
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">number_holder;</highlight></codeline>
|
|
<codeline lineno="43"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>T<sp/>base_type;</highlight></codeline>
|
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>Policies<sp/>traits_type;</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/>T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&lower()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/>T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&upper()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="49"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>();</highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v);</highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v);</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&l,<sp/>T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&u);</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T2><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&l,<sp/>T2<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&u);</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T, Policies></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T, Policies1></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T1, Policies1></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>&operator=(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v);</highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>&operator=(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v);</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>&operator=(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T, Policies></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>&operator=(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T, Policies1></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>&operator=(<ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval<T1, Policies1></ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r);</highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"><sp/></highlight></codeline>
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelFloatBranch_1ga9d8be32a99c7bf82e40f571de96d31ca" kindref="member">assign</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>u);</highlight></codeline>
|
|
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>empty();</highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>whole();</highlight></codeline>
|
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref><sp/>hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>y);</highlight></codeline>
|
|
<codeline lineno="70"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator+=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator+=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator-=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator-=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator*=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator*=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator/=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>operator/=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>&<sp/>r);</highlight></codeline>
|
|
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6a1534f72acc0cc96c11dd5adfa83534" kindref="member">operator< </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga2f20bafbf9ca125cf5be1404bc443ff0" kindref="member">operator> </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga456fbc4ed8d2bfba22e0a7008dbd6af0" kindref="member">operator<= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1gaaf2c1688fe50735366b9df02278a9e63" kindref="member">operator>= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6095e71acafa0a71ff3b6c021cfa0ff3" kindref="member">operator== </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga64786781fae4ff3bc2d902c63cfaa04f" kindref="member">operator!= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6a1534f72acc0cc96c11dd5adfa83534" kindref="member">operator< </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga2f20bafbf9ca125cf5be1404bc443ff0" kindref="member">operator> </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga456fbc4ed8d2bfba22e0a7008dbd6af0" kindref="member">operator<= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1gaaf2c1688fe50735366b9df02278a9e63" kindref="member">operator>= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6095e71acafa0a71ff3b6c021cfa0ff3" kindref="member">operator== </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga64786781fae4ff3bc2d902c63cfaa04f" kindref="member">operator!= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="93"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>the<sp/>following<sp/>is<sp/>for<sp/>internal<sp/>use<sp/>only,<sp/>it<sp/>is<sp/>not<sp/>a<sp/>published<sp/>interface</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>nevertheless,<sp/>it's<sp/>public<sp/>because<sp/>friends<sp/>don't<sp/>always<sp/>work<sp/>correctly.</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">interval</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>u,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal">):<sp/>low(l),<sp/>up(u)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>set_whole();</highlight></codeline>
|
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>set(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>u);</highlight></codeline>
|
|
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="101"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">interval_holder<sp/>{</highlight></codeline>
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies2></highlight></codeline>
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/>interval_holder(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies2>&<sp/>r)</highlight></codeline>
|
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>low(r.lower()),<sp/>up(r.upper())</highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies2::checking<sp/>checking2;</highlight></codeline>
|
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking2::is_empty(low,<sp/>up))</highlight></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="111"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>low;</highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>up;</highlight></codeline>
|
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">number_holder<sp/>{</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/>number_holder(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>r)<sp/>:<sp/>val(r)</highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(r))</highlight></codeline>
|
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
|
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>val;</highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
|
<codeline lineno="126"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rounding;</highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/>T<sp/>low;</highlight></codeline>
|
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/>T<sp/>up;</highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal">};</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="135"><highlight class="normal">interval<T,<sp/>Policies>::interval():</highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/>low(static_cast<T>(0)),<sp/>up(static_cast<T>(0))</highlight></codeline>
|
|
<codeline lineno="137"><highlight class="normal">{}</highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="139"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="140"><highlight class="normal">interval<T,<sp/>Policies>::interval(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v):<sp/>low(v),<sp/>up(v)</highlight></codeline>
|
|
<codeline lineno="141"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="142"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(v))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="143"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="145"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="146"><highlight class="normal">interval<T,<sp/>Policies>::interval(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v)</highlight></codeline>
|
|
<codeline lineno="147"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(v))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/>rounding<sp/>rnd;</highlight></codeline>
|
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>rnd.conv_down(v);</highlight></codeline>
|
|
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>rnd.conv_up<sp/><sp/>(v);</highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="155"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="156"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T2><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="157"><highlight class="normal">interval<T,<sp/>Policies>::interval(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&l,<sp/>T2<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&u)</highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(l)<sp/>||<sp/>checking::is_nan(u)<sp/>||<sp/>!(l<sp/><=<sp/>u))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="160"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/>rounding<sp/>rnd;</highlight></codeline>
|
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>rnd.conv_down(l);</highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>rnd.conv_up<sp/><sp/>(u);</highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal">interval<T,<sp/>Policies>::interval(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&l,<sp/>T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&u):<sp/>low(l),<sp/>up(u)</highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(l)<sp/>||<sp/>checking::is_nan(u)<sp/>||<sp/>!(l<sp/><=<sp/>u))</highlight></codeline>
|
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="172"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="173"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="174"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="175"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="176"><highlight class="normal">interval<T,<sp/>Policies>::interval(interval<T,<sp/>Policies><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r):<sp/>low(r.lower()),<sp/>up(r.upper())</highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal">{}</highlight></codeline>
|
|
<codeline lineno="178"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="179"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="180"><highlight class="normal">interval<T,<sp/>Policies>::interval(interval<T,<sp/>Policies1><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r):<sp/>low(r.lower()),<sp/>up(r.upper())</highlight></codeline>
|
|
<codeline lineno="181"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="182"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies1::checking<sp/>checking1;</highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking1::is_empty(r.lower(),<sp/>r.upper()))<sp/>set_empty();</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="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="187"><highlight class="normal">interval<T,<sp/>Policies>::interval(interval<T1,<sp/>Policies1><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r)</highlight></codeline>
|
|
<codeline lineno="188"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="189"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies1::checking<sp/>checking1;</highlight></codeline>
|
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking1::is_empty(r.lower(),<sp/>r.upper()))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="191"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/>rounding<sp/>rnd;</highlight></codeline>
|
|
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>rnd.conv_down(r.lower());</highlight></codeline>
|
|
<codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>rnd.conv_up<sp/><sp/>(r.upper());</highlight></codeline>
|
|
<codeline lineno="195"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="196"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="197"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="198"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="199"><highlight class="normal">interval<T,<sp/>Policies><sp/>&interval<T,<sp/>Policies>::operator=(T<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v)</highlight></codeline>
|
|
<codeline lineno="200"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="201"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(v))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="202"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>low<sp/>=<sp/>up<sp/>=<sp/>v;</highlight></codeline>
|
|
<codeline lineno="203"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="204"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="205"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="206"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="207"><highlight class="normal">interval<T,<sp/>Policies><sp/>&interval<T,<sp/>Policies>::operator=(T1<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&v)</highlight></codeline>
|
|
<codeline lineno="208"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="209"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(v))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="210"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/>rounding<sp/>rnd;</highlight></codeline>
|
|
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>rnd.conv_down(v);</highlight></codeline>
|
|
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>rnd.conv_up<sp/><sp/>(v);</highlight></codeline>
|
|
<codeline lineno="214"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="215"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="216"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="217"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="218"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="219"><highlight class="normal">interval<T,<sp/>Policies><sp/>&interval<T,<sp/>Policies>::operator=(interval<T,<sp/>Policies><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r)</highlight></codeline>
|
|
<codeline lineno="220"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="221"><highlight class="normal"><sp/><sp/>low<sp/>=<sp/>r.lower();</highlight></codeline>
|
|
<codeline lineno="222"><highlight class="normal"><sp/><sp/>up<sp/><sp/>=<sp/>r.upper();</highlight></codeline>
|
|
<codeline lineno="223"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="224"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="225"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="226"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="227"><highlight class="normal">interval<T,<sp/>Policies><sp/>&interval<T,<sp/>Policies>::operator=(interval<T,<sp/>Policies1><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r)</highlight></codeline>
|
|
<codeline lineno="228"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="229"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies1::checking<sp/>checking1;</highlight></codeline>
|
|
<codeline lineno="230"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking1::is_empty(r.lower(),<sp/>r.upper()))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="231"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>r.lower();</highlight></codeline>
|
|
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>r.upper();</highlight></codeline>
|
|
<codeline lineno="234"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="235"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="236"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="237"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="238"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T1,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies1><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="239"><highlight class="normal">interval<T,<sp/>Policies><sp/>&interval<T,<sp/>Policies>::operator=(interval<T1,<sp/>Policies1><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&r)</highlight></codeline>
|
|
<codeline lineno="240"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="241"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies1::checking<sp/>checking1;</highlight></codeline>
|
|
<codeline lineno="242"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking1::is_empty(r.lower(),<sp/>r.upper()))<sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="243"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/>rounding<sp/>rnd;</highlight></codeline>
|
|
<codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/>low<sp/>=<sp/>rnd.conv_down(r.lower());</highlight></codeline>
|
|
<codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/>up<sp/><sp/>=<sp/>rnd.conv_up<sp/><sp/>(r.upper());</highlight></codeline>
|
|
<codeline lineno="247"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="248"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="249"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="251"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="252"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelFloatBranch_1ga9d8be32a99c7bf82e40f571de96d31ca" kindref="member">interval<T, Policies>::assign</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>u)</highlight></codeline>
|
|
<codeline lineno="253"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="254"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(checking::is_nan(l)<sp/>||<sp/>checking::is_nan(u)<sp/>||<sp/>!(l<sp/><=<sp/>u))</highlight></codeline>
|
|
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/>set_empty();</highlight></codeline>
|
|
<codeline lineno="256"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>set(l,<sp/>u);</highlight></codeline>
|
|
<codeline lineno="257"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="258"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="259"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="260"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>::set(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>u)</highlight></codeline>
|
|
<codeline lineno="261"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="262"><highlight class="normal"><sp/><sp/>low<sp/>=<sp/>l;</highlight></codeline>
|
|
<codeline lineno="263"><highlight class="normal"><sp/><sp/>up<sp/><sp/>=<sp/>u;</highlight></codeline>
|
|
<codeline lineno="264"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="265"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="266"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="267"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>::set_empty()</highlight></codeline>
|
|
<codeline lineno="268"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="269"><highlight class="normal"><sp/><sp/>low<sp/>=<sp/>checking::empty_lower();</highlight></codeline>
|
|
<codeline lineno="270"><highlight class="normal"><sp/><sp/>up<sp/><sp/>=<sp/>checking::empty_upper();</highlight></codeline>
|
|
<codeline lineno="271"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="272"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="273"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="274"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>::set_whole()</highlight></codeline>
|
|
<codeline lineno="275"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="276"><highlight class="normal"><sp/><sp/>low<sp/>=<sp/>checking::neg_inf();</highlight></codeline>
|
|
<codeline lineno="277"><highlight class="normal"><sp/><sp/>up<sp/><sp/>=<sp/>checking::pos_inf();</highlight></codeline>
|
|
<codeline lineno="278"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="279"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="280"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="281"><highlight class="normal">interval<T,<sp/>Policies><sp/>interval<T,<sp/>Policies>::hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>y)</highlight></codeline>
|
|
<codeline lineno="282"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="283"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>bad_x<sp/>=<sp/>checking::is_nan(x);</highlight></codeline>
|
|
<codeline lineno="284"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>bad_y<sp/>=<sp/>checking::is_nan(y);</highlight></codeline>
|
|
<codeline lineno="285"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(bad_x)</highlight></codeline>
|
|
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(bad_y)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval::empty();</highlight></codeline>
|
|
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval(y,<sp/>y,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="288"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(bad_y)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval(x,<sp/>x,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="290"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x<sp/><=<sp/>y)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval(x,<sp/>y,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="291"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval(y,<sp/>x,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="292"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="293"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="294"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="295"><highlight class="normal">interval<T,<sp/>Policies><sp/>interval<T,<sp/>Policies>::empty()</highlight></codeline>
|
|
<codeline lineno="296"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="297"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>(checking::empty_lower(),</highlight></codeline>
|
|
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>checking::empty_upper(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="299"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="300"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="301"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="302"><highlight class="normal">interval<T,<sp/>Policies><sp/>interval<T,<sp/>Policies>::whole()</highlight></codeline>
|
|
<codeline lineno="303"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="304"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>(checking::neg_inf(),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="305"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="306"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="307"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="308"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>interval<T,<sp/>Policies>::lower()</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="309"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="310"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>low;</highlight></codeline>
|
|
<codeline lineno="311"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="312"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="313"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="314"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>interval<T,<sp/>Policies>::upper()</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="315"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="316"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>up;</highlight></codeline>
|
|
<codeline lineno="317"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="318"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="319"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="320"><highlight class="comment"><sp/>*<sp/>interval/interval<sp/>comparisons</highlight></codeline>
|
|
<codeline lineno="321"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="322"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="323"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="324"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6a1534f72acc0cc96c11dd5adfa83534" kindref="member">interval<T, Policies>::operator< </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="325"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="326"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.low)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>>=<sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="329"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="330"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="331"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="332"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="333"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="334"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga2f20bafbf9ca125cf5be1404bc443ff0" kindref="member">interval<T, Policies>::operator> </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="335"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="336"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>><sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><=<sp/>r.low)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="339"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="340"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="341"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="342"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="343"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="344"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga456fbc4ed8d2bfba22e0a7008dbd6af0" kindref="member">interval<T, Policies>::operator<= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="345"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="346"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><=<sp/>r.low)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="348"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>><sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="349"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="350"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="351"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="352"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="353"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="354"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1gaaf2c1688fe50735366b9df02278a9e63" kindref="member">interval<T, Policies>::operator>= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="355"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="356"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>>=<sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.low)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="359"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="360"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="361"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="362"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="363"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="364"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6095e71acafa0a71ff3b6c021cfa0ff3" kindref="member">interval<T, Policies>::operator== </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="365"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="366"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="367"><highlight class="normal"></highlight><highlight class="comment">//Boost<sp/>bug<sp/>?<sp/><sp/><sp/><sp/>if<sp/>(up<sp/>==<sp/>r.low<sp/>&&<sp/>low<sp/>==<sp/>r.up)<sp/>return<sp/>true;</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/>==<sp/>r.up<sp/>&&<sp/>low<sp/>==<sp/>r.low)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="369"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.low<sp/>||<sp/>low<sp/>><sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="370"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="371"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="372"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="373"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="374"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="375"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga64786781fae4ff3bc2d902c63cfaa04f" kindref="member">interval<T, Policies>::operator!= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="376"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="377"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.low<sp/>||<sp/>low<sp/>><sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="379"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/>==<sp/>r.low<sp/>&&<sp/>low<sp/>==<sp/>r.up)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="380"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="381"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="382"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="383"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="384"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="385"><highlight class="comment"><sp/>*<sp/>interval/number<sp/>comparisons</highlight></codeline>
|
|
<codeline lineno="386"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="387"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="388"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="389"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6a1534f72acc0cc96c11dd5adfa83534" kindref="member">interval<T, Policies>::operator< </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="390"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="391"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="392"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>>=<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="394"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="395"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="396"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="397"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="398"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="399"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga2f20bafbf9ca125cf5be1404bc443ff0" kindref="member">interval<T, Policies>::operator> </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="400"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="401"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="402"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>><sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="403"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><=<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="404"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="405"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="406"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="407"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="408"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="409"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga456fbc4ed8d2bfba22e0a7008dbd6af0" kindref="member">interval<T, Policies>::operator<= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="410"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="411"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><=<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="413"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>><sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="414"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="415"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="416"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="417"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="418"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="419"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1gaaf2c1688fe50735366b9df02278a9e63" kindref="member">interval<T, Policies>::operator>= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="420"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="421"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(low<sp/>>=<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="423"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="424"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="425"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="426"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="427"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="428"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="429"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga6095e71acafa0a71ff3b6c021cfa0ff3" kindref="member">interval<T, Policies>::operator== </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="430"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="431"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="432"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/>==<sp/>r.val<sp/>&&<sp/>low<sp/>==<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.val<sp/>||<sp/>low<sp/>><sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="434"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="435"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="436"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="437"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="438"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="439"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="group__TaskModelMiniModelLin_1ga64786781fae4ff3bc2d902c63cfaa04f" kindref="member">interval<T, Policies>::operator!= </ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>number_holder&<sp/>r)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
|
<codeline lineno="440"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="441"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!checking::is_empty(low,<sp/>up))<sp/>{</highlight></codeline>
|
|
<codeline lineno="442"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/><<sp/>r.val<sp/>||<sp/>low<sp/>><sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="443"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(up<sp/>==<sp/>r.val<sp/>&&<sp/>low<sp/>==<sp/>r.val)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="444"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="445"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>interval_lib::comparison_error();</highlight></codeline>
|
|
<codeline lineno="446"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="447"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="448"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>numeric</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="449"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>boost</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="450"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="451"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//<sp/>BOOST_NUMERIC_INTERVAL_INTERVAL_HPP</highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/third-party/boost/numeric/interval/interval.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|