123 lines
8.4 KiB
XML
123 lines
8.4 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.13.2" xml:lang="en-US">
|
||
|
|
<compounddef id="quantities_8cpp" kind="file" language="C++">
|
||
|
|
<compoundname>quantities.cpp</compoundname>
|
||
|
|
<includes refid="quantities_8hpp" local="yes">serif/dimensions/quantities.hpp</includes>
|
||
|
|
<includes refid="type__alias_8hpp" local="yes">serif/dimensions/type_alias.hpp</includes>
|
||
|
|
<includes refid="partial_8hpp" local="yes">serif/dimensions/partial.hpp</includes>
|
||
|
|
<includes local="no">type_traits</includes>
|
||
|
|
<incdepgraph>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/compile_time_checks/serif/dimensions/quantities.cpp</label>
|
||
|
|
<link refid="quantities_8cpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>serif/dimensions/dimensions.hpp</label>
|
||
|
|
<link refid="dimensions_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>serif/dimensions/partial.hpp</label>
|
||
|
|
<link refid="partial_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>serif/dimensions/quantities.hpp</label>
|
||
|
|
<link refid="quantities_8hpp"/>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>serif/dimensions/type_alias.hpp</label>
|
||
|
|
<link refid="type__alias_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>serif/utils/misc/concepts/numeric.hpp</label>
|
||
|
|
<link refid="numeric_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
|
||
|
|
<link refid="cleaning_8hpp"/>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>compare</label>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>concepts</label>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>string_view</label>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>tuple</label>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>type_traits</label>
|
||
|
|
</node>
|
||
|
|
</incdepgraph>
|
||
|
|
<briefdescription>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
</detaileddescription>
|
||
|
|
<programlisting>
|
||
|
|
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>"<ref refid="quantities_8hpp" kindref="compound">serif/dimensions/quantities.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="type__alias_8hpp" kindref="compound">serif/dimensions/type_alias.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="partial_8hpp" kindref="compound">serif/dimensions/partial.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="4"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><type_traits></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="6"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1dimensions" kindref="compound">serif::dimensions</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="8"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(PhysicalQuantityType<Mass>);</highlight></codeline>
|
||
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(ThermodynamicQuantityType<MassDensity>);</highlight></codeline>
|
||
|
|
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!ThermodynamicQuantityType<Mass>);</highlight></codeline>
|
||
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(QuantityValueType<MassValue>);</highlight></codeline>
|
||
|
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::same_as<QuantityOfT<MassValue>,<sp/><ref refid="structserif_1_1dimensions_1_1_mass" kindref="compound">Mass</ref>>);</highlight></codeline>
|
||
|
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::constructible_from<MassValue,<sp/>double>);</highlight></codeline>
|
||
|
|
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::convertible_to<double,<sp/>MassValue>);</highlight></codeline>
|
||
|
|
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::convertible_to<MassValue,<sp/>double>);</highlight></codeline>
|
||
|
|
<codeline lineno="17"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::constructible_from<MassValue,<sp/>LengthValue>);</highlight></codeline>
|
||
|
|
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">((<ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{2.0}<sp/>+<sp/><ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{0.5}).value()<sp/>==<sp/>2.5);</highlight></codeline>
|
||
|
|
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">((<ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{2.0}<sp/>-<sp/><ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{0.5}).value()<sp/>==<sp/>1.5);</highlight></codeline>
|
||
|
|
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">((3.0<sp/>*<sp/><ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{2.0}).value()<sp/>==<sp/>6.0);</highlight></codeline>
|
||
|
|
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">((<ref refid="namespaceserif_1_1dimensions_1a66499323cee57a1033e7b203a9198c24" kindref="member">MassValue</ref>{2.0}<sp/>/<sp/>4.0).value()<sp/>==<sp/>0.5);</highlight></codeline>
|
||
|
|
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::convertible_to<double,<sp/>PartialDerivative<Pressure,<sp/>MassDensity>>);</highlight></codeline>
|
||
|
|
</programlisting>
|
||
|
|
<location file="src/compile_time_checks/serif/dimensions/quantities.cpp"/>
|
||
|
|
</compounddef>
|
||
|
|
</doxygen>
|