331 lines
16 KiB
XML
331 lines
16 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="views_8cpp" kind="file" language="C++">
|
||
|
|
<compoundname>views.cpp</compoundname>
|
||
|
|
<includes refid="views_8hpp" local="yes">serif/eos/runtime/views.hpp</includes>
|
||
|
|
<includes refid="polytropic_8hpp" local="yes">serif/eos/models/polytropic.hpp</includes>
|
||
|
|
<includes local="no">type_traits</includes>
|
||
|
|
<includes local="no">utility</includes>
|
||
|
|
<incdepgraph>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/compile_time_checks/serif/eos/runtime/views.cpp</label>
|
||
|
|
<link refid="views_8cpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="39" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="41" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="23">
|
||
|
|
<label>serif/dimensions/dimensions.hpp</label>
|
||
|
|
<link refid="dimensions_8hpp"/>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>serif/dimensions/partial.hpp</label>
|
||
|
|
<link refid="partial_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>serif/dimensions/quantities.hpp</label>
|
||
|
|
<link refid="quantities_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="28">
|
||
|
|
<label>serif/dimensions/runtime/concepts.hpp</label>
|
||
|
|
<link refid="dimensions_2runtime_2concepts_8hpp"/>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="29">
|
||
|
|
<label>serif/dimensions/runtime/runtime.hpp</label>
|
||
|
|
<link refid="dimensions_2runtime_2runtime_8hpp"/>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="40">
|
||
|
|
<label>serif/dimensions/type_alias.hpp</label>
|
||
|
|
<link refid="type__alias_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="34">
|
||
|
|
<label>serif/eos/evaluation.hpp</label>
|
||
|
|
<link refid="eos_2evaluation_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="31">
|
||
|
|
<label>serif/eos/exceptions.hpp</label>
|
||
|
|
<link refid="eos_2exceptions_8hpp"/>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="32" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="33" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>serif/eos/models/concepts.hpp</label>
|
||
|
|
<link refid="eos_2models_2concepts_8hpp"/>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="39">
|
||
|
|
<label>serif/eos/models/polytropic.hpp</label>
|
||
|
|
<link refid="polytropic_8hpp"/>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="40" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>serif/eos/models/traits.hpp</label>
|
||
|
|
<link refid="eos_2models_2traits_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="17">
|
||
|
|
<label>serif/eos/relations/catalog.hpp</label>
|
||
|
|
<link refid="catalog_8hpp"/>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>serif/eos/relations/concepts.hpp</label>
|
||
|
|
<link refid="eos_2relations_2concepts_8hpp"/>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="22">
|
||
|
|
<label>serif/eos/relations/relations.hpp</label>
|
||
|
|
<link refid="eos_2relations_2relations_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="16">
|
||
|
|
<label>serif/eos/relations/traits.hpp</label>
|
||
|
|
<link refid="eos_2relations_2traits_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>serif/eos/runtime/concepts.hpp</label>
|
||
|
|
<link refid="eos_2runtime_2concepts_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="25">
|
||
|
|
<label>serif/eos/runtime/details.hpp</label>
|
||
|
|
<link refid="eos_2runtime_2details_8hpp"/>
|
||
|
|
<childnode refid="26" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="27" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="28" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="31" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="34" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="35" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>serif/eos/runtime/views.hpp</label>
|
||
|
|
<link refid="views_8hpp"/>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="36">
|
||
|
|
<label>serif/meta/enums.hpp</label>
|
||
|
|
<link refid="enums_8hpp"/>
|
||
|
|
<childnode refid="37" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="38" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="35">
|
||
|
|
<label>serif/utils/error/codes.hpp</label>
|
||
|
|
<link refid="codes_8hpp"/>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="36" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>serif/utils/misc/concepts/numeric.hpp</label>
|
||
|
|
<link refid="numeric_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="18">
|
||
|
|
<label>serif/utils/misc/concepts/type_uniqueness.hpp</label>
|
||
|
|
<link refid="concepts_2type__uniqueness_8hpp"/>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
|
||
|
|
<link refid="cleaning_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="20">
|
||
|
|
<label>serif/utils/misc/std_helper/variadic_cleaning.hpp</label>
|
||
|
|
<link refid="variadic__cleaning_8hpp"/>
|
||
|
|
<childnode refid="21" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="19">
|
||
|
|
<label>serif/utils/misc/traits/type_uniqueness.hpp</label>
|
||
|
|
<link refid="traits_2type__uniqueness_8hpp"/>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="26">
|
||
|
|
<label>array</label>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>compare</label>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>concepts</label>
|
||
|
|
</node>
|
||
|
|
<node id="21">
|
||
|
|
<label>cstddef</label>
|
||
|
|
</node>
|
||
|
|
<node id="30">
|
||
|
|
<label>cstdint</label>
|
||
|
|
</node>
|
||
|
|
<node id="27">
|
||
|
|
<label>expected</label>
|
||
|
|
</node>
|
||
|
|
<node id="38">
|
||
|
|
<label>magic_enum/magic_enum_all.hpp</label>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>span</label>
|
||
|
|
</node>
|
||
|
|
<node id="32">
|
||
|
|
<label>stdexcept</label>
|
||
|
|
</node>
|
||
|
|
<node id="33">
|
||
|
|
<label>string</label>
|
||
|
|
</node>
|
||
|
|
<node id="24">
|
||
|
|
<label>string_view</label>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>tuple</label>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>type_traits</label>
|
||
|
|
</node>
|
||
|
|
<node id="37">
|
||
|
|
<label>unordered_map</label>
|
||
|
|
</node>
|
||
|
|
<node id="41">
|
||
|
|
<label>utility</label>
|
||
|
|
</node>
|
||
|
|
</incdepgraph>
|
||
|
|
<sectiondef kind="enum">
|
||
|
|
<memberdef kind="enum" id="views_8cpp_1ab04484c13887f78337c2331fb2911346" prot="public" static="no" strong="yes">
|
||
|
|
<type></type>
|
||
|
|
<name>SERiFErrorCode</name>
|
||
|
|
<briefdescription>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
</detaileddescription>
|
||
|
|
<inbodydescription>
|
||
|
|
</inbodydescription>
|
||
|
|
<location file="src/compile_time_checks/serif/eos/runtime/views.cpp" line="9" column="1" bodyfile="src/include/serif/utils/error/codes.hpp" bodystart="18" bodyend="119"/>
|
||
|
|
</memberdef>
|
||
|
|
</sectiondef>
|
||
|
|
<briefdescription>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
</detaileddescription>
|
||
|
|
<programlisting>
|
||
|
|
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>"<ref refid="views_8hpp" kindref="compound">serif/eos/runtime/views.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="polytropic_8hpp" kindref="compound">serif/eos/models/polytropic.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><type_traits></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><utility></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_1eos" kindref="compound">serif::eos</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="8"><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="9"><highlight class="normal"></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1utils_1_1errors_1ab04484c13887f78337c2331fb2911346" kindref="member">serif::utils::errors::SERiFErrorCode</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="10"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(<ref refid="conceptserif_1_1eos_1_1runtime_1_1_runtime_e_o_s_model" kindref="compound">serif::eos::runtime::RuntimeEOSModel<models::Polytrope></ref>,<sp/></highlight><highlight class="stringliteral">"Polytropic<sp/>EOS<sp/>should<sp/>be<sp/>a<sp/>valid<sp/>runtime<sp/>EOS<sp/>model."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::is_trivially_copyable_v<serif::eos::runtime::EOSView>,<sp/></highlight><highlight class="stringliteral">"Borrowed<sp/>EOS<sp/>view<sp/>should<sp/>be<sp/>trivially<sp/>copyable."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::constructible_from<serif::eos::runtime::EOSView,<sp/>const<sp/>models::Polytrope&>,<sp/></highlight><highlight class="stringliteral">"A<sp/>borrowed<sp/>EOS<sp/>view<sp/>should<sp/>be<sp/>constructible<sp/>from<sp/>a<sp/>const<sp/>reference<sp/>to<sp/>a<sp/>concrete<sp/>EOS<sp/>model."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::constructible_from<serif::eos::runtime::EOSView,<sp/>models::Polytrope&&>,<sp/></highlight><highlight class="stringliteral">"A<sp/>borrowed<sp/>EOS<sp/>view<sp/>must<sp/>not<sp/>bind<sp/>to<sp/>a<sp/>temporary"</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(!std::constructible_from<serif::eos::runtime::EOSView,<sp/>const<sp/>models::Polytrope&&>,<sp/></highlight><highlight class="stringliteral">"A<sp/>borrowed<sp/>EOS<sp/>view<sp/>must<sp/>not<sp/>bind<sp/>to<sp/>a<sp/>const<sp/>temporary"</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::same_as<decltype(std::declval<const<sp/>serif::eos::runtime::EOSView&>().try_evaluate<<ref refid="structserif_1_1dimensions_1_1_pressure" kindref="compound">Pressure</ref>>(<ref refid="namespaceserif_1_1dimensions_1af7f8c68a704a7bf475c60dbad5f98d78" kindref="member">DensityValue</ref>{1.0})),<sp/>std::expected<PressureValue,<sp/>SERiFErrorCode>>,<sp/></highlight><highlight class="stringliteral">"Borrowed<sp/>EOS<sp/>view<sp/>should<sp/>return<sp/>an<sp/>expected<sp/>for<sp/>evaluation."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="17"><highlight class="normal"></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(std::same_as<decltype(std::declval<const<sp/>serif::eos::runtime::EOSView&>().try_partial_derivative<<ref refid="structserif_1_1dimensions_1_1_mass_density" kindref="compound">MassDensity</ref>,<sp/><ref refid="structserif_1_1dimensions_1_1_specific_enthalpy" kindref="compound">SpecificEnthalpy</ref>>(<ref refid="namespaceserif_1_1dimensions_1a9d34f8c867a871e5ebe50e99b54d0d16" kindref="member">SpecificEnthalpyValue</ref>{1.0})),<sp/>std::expected<PartialDerivative<MassDensity,<sp/>SpecificEnthalpy>,<sp/><ref refid="namespaceserif_1_1utils_1_1errors_1ab04484c13887f78337c2331fb2911346" kindref="member">SERiFErrorCode</ref>>>,<sp/></highlight><highlight class="stringliteral">"Borrowed<sp/>EOS<sp/>view<sp/>should<sp/>return<sp/>an<sp/>expected<sp/>for<sp/>partial<sp/>derivative<sp/>evaluation."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
</programlisting>
|
||
|
|
<location file="src/compile_time_checks/serif/eos/runtime/views.cpp"/>
|
||
|
|
</compounddef>
|
||
|
|
</doxygen>
|