463 lines
44 KiB
XML
463 lines
44 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="computation__store_8hpp" kind="file" language="C++">
|
||
|
|
<compoundname>computation_store.hpp</compoundname>
|
||
|
|
<includes refid="errors_8hpp" local="yes">serif/utils/error/errors.hpp</includes>
|
||
|
|
<includes local="no">concepts</includes>
|
||
|
|
<includes local="no">cstddef</includes>
|
||
|
|
<includes local="no">memory</includes>
|
||
|
|
<includes local="no">stdexcept</includes>
|
||
|
|
<includes local="no">tuple</includes>
|
||
|
|
<includes local="no">type_traits</includes>
|
||
|
|
<includes local="no">utility</includes>
|
||
|
|
<includes refid="utils_2dependencies_2binding_8hpp" local="yes">serif/utils/dependencies/binding.hpp</includes>
|
||
|
|
<includes refid="type__lists_8hpp" local="yes">serif/utils/dependencies/detail/type_lists.hpp</includes>
|
||
|
|
<includedby refid="computation__store_8cpp" local="yes">src/compile_time_checks/serif/utils/dependencies/computation_store.cpp</includedby>
|
||
|
|
<includedby refid="dependencies_8hpp" local="yes">src/include/serif/utils/dependencies/dependencies.hpp</includedby>
|
||
|
|
<incdepgraph>
|
||
|
|
<node id="20">
|
||
|
|
<label>serif/meta/enums.hpp</label>
|
||
|
|
<link refid="enums_8hpp"/>
|
||
|
|
<childnode refid="21" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="29">
|
||
|
|
<label>serif/utils/dependencies/binding.hpp</label>
|
||
|
|
<link refid="utils_2dependencies_2binding_8hpp"/>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/utils/dependencies/computation_store.hpp</label>
|
||
|
|
<link refid="computation__store_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="26" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="27" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="28" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="32" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="32">
|
||
|
|
<label>serif/utils/dependencies/detail/type_lists.hpp</label>
|
||
|
|
<link refid="type__lists_8hpp"/>
|
||
|
|
<childnode refid="33" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="34" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="34">
|
||
|
|
<label>serif/utils/dependencies/key_list.hpp</label>
|
||
|
|
<link refid="key__list_8hpp"/>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="35" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="19">
|
||
|
|
<label>serif/utils/error/codes.hpp</label>
|
||
|
|
<link refid="codes_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>serif/utils/error/errors.hpp</label>
|
||
|
|
<link refid="errors_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>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>serif/utils/misc/concepts/exceptions.hpp</label>
|
||
|
|
<link refid="utils_2misc_2concepts_2exceptions_8hpp"/>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="17">
|
||
|
|
<label>serif/utils/misc/concepts/numeric.hpp</label>
|
||
|
|
<link refid="numeric_8hpp"/>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="31">
|
||
|
|
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
|
||
|
|
<link refid="cleaning_8hpp"/>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>serif/utils/misc/terminal/colors.hpp</label>
|
||
|
|
<link refid="colors_8hpp"/>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="30">
|
||
|
|
<label>serif/utils/misc/traits/type_uniqueness.hpp</label>
|
||
|
|
<link refid="traits_2type__uniqueness_8hpp"/>
|
||
|
|
<childnode refid="31" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="23">
|
||
|
|
<label>serif/utils/types/strings.hpp</label>
|
||
|
|
<link refid="types_2strings_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="35">
|
||
|
|
<label>serif/utils/types/type_list.hpp</label>
|
||
|
|
<link refid="type__list_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>algorithm</label>
|
||
|
|
</node>
|
||
|
|
<node id="33">
|
||
|
|
<label>array</label>
|
||
|
|
</node>
|
||
|
|
<node id="18">
|
||
|
|
<label>concepts</label>
|
||
|
|
</node>
|
||
|
|
<node id="25">
|
||
|
|
<label>cstddef</label>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>cstdint</label>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>cstdio</label>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>cstdlib</label>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>exception</label>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>format</label>
|
||
|
|
</node>
|
||
|
|
<node id="24">
|
||
|
|
<label>iostream</label>
|
||
|
|
</node>
|
||
|
|
<node id="22">
|
||
|
|
<label>magic_enum/magic_enum_all.hpp</label>
|
||
|
|
</node>
|
||
|
|
<node id="26">
|
||
|
|
<label>memory</label>
|
||
|
|
</node>
|
||
|
|
<node id="27">
|
||
|
|
<label>stdexcept</label>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>string</label>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>string_view</label>
|
||
|
|
</node>
|
||
|
|
<node id="28">
|
||
|
|
<label>tuple</label>
|
||
|
|
</node>
|
||
|
|
<node id="16">
|
||
|
|
<label>type_traits</label>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>unistd.h</label>
|
||
|
|
</node>
|
||
|
|
<node id="21">
|
||
|
|
<label>unordered_map</label>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>utility</label>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>version</label>
|
||
|
|
</node>
|
||
|
|
</incdepgraph>
|
||
|
|
<invincdepgraph>
|
||
|
|
<node id="6">
|
||
|
|
<label>src/compile_time_checks/serif/operators/computation_owners.cpp</label>
|
||
|
|
<link refid="computation__owners_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>src/compile_time_checks/serif/operators/serial_backend.cpp</label>
|
||
|
|
<link refid="serial__backend_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>src/compile_time_checks/serif/solver/preconditioner/layout.cpp</label>
|
||
|
|
<link refid="layout_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>src/compile_time_checks/serif/utils/dependencies/computation_store.cpp</label>
|
||
|
|
<link refid="computation__store_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>src/include/serif/model/backend/mfem/binding.hpp</label>
|
||
|
|
<link refid="model_2backend_2mfem_2binding_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>src/include/serif/model/backend/mfem/equilibrium.hpp</label>
|
||
|
|
<link refid="equilibrium_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>src/include/serif/model/computations/interior.hpp</label>
|
||
|
|
<link refid="interior_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>src/include/serif/model/computations/point_constraints.hpp</label>
|
||
|
|
<link refid="point__constraints_8hpp"/>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>src/include/serif/model/computations/pressure_boundary.hpp</label>
|
||
|
|
<link refid="model_2computations_2pressure__boundary_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>src/include/serif/model/computations/shape.hpp</label>
|
||
|
|
<link refid="shape_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>src/include/serif/model/graph.hpp</label>
|
||
|
|
<link refid="model_2graph_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>src/include/serif/operators/backend/mfem/nodal_computations.hpp</label>
|
||
|
|
<link refid="nodal__computations_8hpp"/>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>src/include/serif/operators/backend/mfem/volume_computations.hpp</label>
|
||
|
|
<link refid="volume__computations_8hpp"/>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/utils/dependencies/computation_store.hpp</label>
|
||
|
|
<link refid="computation__store_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>src/include/serif/utils/dependencies/dependencies.hpp</label>
|
||
|
|
<link refid="dependencies_8hpp"/>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
</invincdepgraph>
|
||
|
|
<innerclass refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation" prot="public">serif::utils::dependencies::OwnedComputation</innerclass>
|
||
|
|
<innerclass refid="classserif_1_1utils_1_1dependencies_1_1_computation_store" prot="public">serif::utils::dependencies::ComputationStore</innerclass>
|
||
|
|
<innernamespace refid="namespaceserif">serif</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1utils">serif::utils</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1utils_1_1dependencies">serif::utils::dependencies</innernamespace>
|
||
|
|
<briefdescription>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
</detaileddescription>
|
||
|
|
<programlisting>
|
||
|
|
<codeline lineno="1"><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="2"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="errors_8hpp" kindref="compound">serif/utils/error/errors.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><concepts></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cstddef></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><memory></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><stdexcept></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><tuple></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><type_traits></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><utility></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="utils_2dependencies_2binding_8hpp" kindref="compound">serif/utils/dependencies/binding.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="type__lists_8hpp" kindref="compound">serif/utils/dependencies/detail/type_lists.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="13"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1utils_1_1dependencies" kindref="compound">serif::utils::dependencies</ref><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>ComputationT></highlight></codeline>
|
||
|
|
<codeline lineno="16" refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a28aad040600b2304436c20d5e083784f" kindref="member">Key</ref><sp/>=<sp/>KeyT;</highlight></codeline>
|
||
|
|
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref><sp/>=<sp/>ComputationT;</highlight></codeline>
|
||
|
|
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>ValueT><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/>std::constructible_from<Target,<sp/>ValueT></highlight></codeline>
|
||
|
|
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>(ValueT&&<sp/>value)<sp/>:<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a902abd7fca5d4c2d2b8d1ddfc6684a70" kindref="member">m_value</ref>(std::make_unique<Target>(std::forward<ValueT>(value)))<sp/>{}</highlight></codeline>
|
||
|
|
<codeline lineno="24"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aca41738197c4054d6f53a07dfe964cde" kindref="member">operator=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&&)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"><sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aca41738197c4054d6f53a07dfe964cde" kindref="member">operator=</ref>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1adb513325bd05f872a22e53848ca5fa41" kindref="member">OwnedComputation</ref>&&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="34"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a2dd9dda3f3c60fd046119218f553b5e4" kindref="member">get</ref>()<sp/>&<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1ac16bfba403003517b8a12ecb3958c1be" kindref="member">checked_value</ref>();<sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a2dd9dda3f3c60fd046119218f553b5e4" kindref="member">get</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1ac16bfba403003517b8a12ecb3958c1be" kindref="member">checked_value</ref>();<sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a2dd9dda3f3c60fd046119218f553b5e4" kindref="member">get</ref>()<sp/>&&<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a2dd9dda3f3c60fd046119218f553b5e4" kindref="member">get</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&&<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1aa713c9dcbfe8c4fd7509f537e02656c7" kindref="member">Target</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1ac16bfba403003517b8a12ecb3958c1be" kindref="member">checked_value</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a902abd7fca5d4c2d2b8d1ddfc6684a70" kindref="member">m_value</ref>)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceserif_1_1utils_1_1errors_1a2447eb80947534cdf0fbd205251cfd9c" kindref="member">serif::utils::errors::serif_error<std::logic_error, serif::utils::errors::SERiFErrorCode::INVALID_ARGUMENT></ref>(</highlight><highlight class="stringliteral">"dependencies::OwnedComputation::get:<sp/>ownership<sp/>has<sp/>moved<sp/>to<sp/>another<sp/>entry.<sp/>Access<sp/>the<sp/>destination<sp/>owner<sp/>instead."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*<ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a902abd7fca5d4c2d2b8d1ddfc6684a70" kindref="member">m_value</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::unique_ptr<Target><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation_1a902abd7fca5d4c2d2b8d1ddfc6684a70" kindref="member">m_value</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||
|
|
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">constexpr</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1ab4fb65de73bdb3af3b938d22fc585eb5" kindref="member">is_owned_computation_v</ref><sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>ComputationT></highlight></codeline>
|
||
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">constexpr</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1ab4fb65de73bdb3af3b938d22fc585eb5" kindref="member">is_owned_computation_v<OwnedComputation<KeyT, ComputationT></ref>><sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="62"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||
|
|
<codeline lineno="64" refid="conceptserif_1_1utils_1_1dependencies_1_1_is_owned_computation" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">concept<sp/></highlight><highlight class="normal"><ref refid="conceptserif_1_1utils_1_1dependencies_1_1_is_owned_computation" kindref="compound">IsOwnedComputation</ref><sp/>=<sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1ab4fb65de73bdb3af3b938d22fc585eb5" kindref="member">is_owned_computation_v<std::remove_cvref_t<T></ref>>;</highlight></codeline>
|
||
|
|
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>ComputationT></highlight></codeline>
|
||
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/>std::constructible_from<std::remove_cvref_t<ComputationT>,<sp/>ComputationT></highlight></codeline>
|
||
|
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1a9953af0c6730c396c24396ff9bbeae9b" kindref="member">own_computation</ref>(ComputationT&&<sp/>computation)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_owned_computation" kindref="compound">OwnedComputation<KeyT, std::remove_cvref_t<ComputationT></ref>>(std::forward<ComputationT>(computation));</highlight></codeline>
|
||
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><<ref refid="conceptserif_1_1utils_1_1dependencies_1_1_is_owned_computation" kindref="compound">IsOwnedComputation</ref>...<sp/>EntryTs></highlight></codeline>
|
||
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1utils_1_1misc_1_1traits_1a8cb5b9ce5869ecf88101859ace70f92a" kindref="member">misc::traits::all_unique_types_v</ref><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>EntryTs::Key...></highlight></codeline>
|
||
|
|
<codeline lineno="76" refid="classserif_1_1utils_1_1dependencies_1_1_computation_store" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1af9424c57b95ffebee24b80e6e7459dc8" kindref="member">Bindings</ref><sp/>=<sp/><ref refid="structserif_1_1utils_1_1dependencies_1_1_bindings" kindref="compound">dependencies::Bindings<Binding<typename EntryTs::Key, typename EntryTs::Target></ref>...>;</highlight></codeline>
|
||
|
|
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>(EntryTs...<sp/>entries)<sp/>:<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1ab27e2baf54caa2326410a6fdd971a818" kindref="member">m_entries</ref>(std::move(entries)...)<sp/>{}</highlight></codeline>
|
||
|
|
<codeline lineno="82"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a0e0b72eafa8812bb771df42f73126172" kindref="member">operator=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="86"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&&)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"><sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a0e0b72eafa8812bb771df42f73126172" kindref="member">operator=</ref>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a47bf52d19b1d9600b2a6bda268d0100c" kindref="member">ComputationStore</ref>&&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="92"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/><ref refid="conceptserif_1_1utils_1_1dependencies_1_1_bindings_with_binding" kindref="compound">BindingsWithBinding<Bindings, KeyT></ref></highlight></codeline>
|
||
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a70b28efcf9bc03220114e5a9e79e89b6" kindref="member">get</ref>()<sp/>&<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">constexpr</highlight><highlight class="normal"><sp/>std::size_t<sp/>index<sp/>=<sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1_1detail_1ac8c170513332086de3bc6305f0f89191" kindref="member">detail::type_index<KeyT></ref>(<ref refid="structserif_1_1utils_1_1types_1_1_type_list" kindref="compound">types::TypeList<typename EntryTs::Key...></ref>{});</highlight></codeline>
|
||
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::get<index>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1ab27e2baf54caa2326410a6fdd971a818" kindref="member">m_entries</ref>).get();</highlight></codeline>
|
||
|
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="99"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/><ref refid="conceptserif_1_1utils_1_1dependencies_1_1_bindings_with_binding" kindref="compound">BindingsWithBinding<Bindings, KeyT></ref></highlight></codeline>
|
||
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a70b28efcf9bc03220114e5a9e79e89b6" kindref="member">get</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">constexpr</highlight><highlight class="normal"><sp/>std::size_t<sp/>index<sp/>=<sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1_1detail_1ac8c170513332086de3bc6305f0f89191" kindref="member">detail::type_index<KeyT></ref>(<ref refid="structserif_1_1utils_1_1types_1_1_type_list" kindref="compound">types::TypeList<typename EntryTs::Key...></ref>{});</highlight></codeline>
|
||
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::get<index>(<ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1ab27e2baf54caa2326410a6fdd971a818" kindref="member">m_entries</ref>).get();</highlight></codeline>
|
||
|
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a70b28efcf9bc03220114e5a9e79e89b6" kindref="member">get</ref>()<sp/>&&<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyT><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1a70b28efcf9bc03220114e5a9e79e89b6" kindref="member">get</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&&<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="110"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::tuple<EntryTs...><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store_1ab27e2baf54caa2326410a6fdd971a818" kindref="member">m_entries</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||
|
|
<codeline lineno="114"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>EntryTs></highlight></codeline>
|
||
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/>(<ref refid="conceptserif_1_1utils_1_1dependencies_1_1_is_owned_computation" kindref="compound">IsOwnedComputation<EntryTs></ref><sp/>&&<sp/>...)<sp/>&&</highlight></codeline>
|
||
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceserif_1_1utils_1_1misc_1_1traits_1a8cb5b9ce5869ecf88101859ace70f92a" kindref="member">misc::traits::all_unique_types_v<typename std::remove_cvref_t<EntryTs>::Key</ref>...><sp/>&&</highlight></codeline>
|
||
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(std::constructible_from<std::remove_cvref_t<EntryTs>,<sp/>EntryTs><sp/>&&<sp/>...)</highlight></codeline>
|
||
|
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1utils_1_1dependencies_1ab472ded5e82f9d20f5be1fb43f05f9e4" kindref="member">make_computation_store</ref>(EntryTs&&...<sp/>entries)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1utils_1_1dependencies_1_1_computation_store" kindref="compound">ComputationStore<std::remove_cvref_t<EntryTs></ref>...>(std::forward<EntryTs>(entries)...);</highlight></codeline>
|
||
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="123"><highlight class="normal">}</highlight></codeline>
|
||
|
|
</programlisting>
|
||
|
|
<location file="src/include/serif/utils/dependencies/computation_store.hpp"/>
|
||
|
|
</compounddef>
|
||
|
|
</doxygen>
|