| <?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.9.8" xml:lang="en-US"> |
| <compounddef id="functional_8h" kind="file" language="C++"> |
| <compoundname>functional.h</compoundname> |
| <includes local="no">concepts</includes> |
| <includes local="no">functional</includes> |
| <includes local="no">memory</includes> |
| <includes local="no">type_traits</includes> |
| <includes local="no">utility</includes> |
| <includes refid="iceberg__export_8h" local="yes">iceberg/iceberg_export.h</includes> |
| <includedby refid="executor_8h" local="yes">iceberg/util/executor.h</includedby> |
| <includedby refid="task__group_8h" local="yes">iceberg/util/task_group.h</includedby> |
| <incdepgraph> |
| <node id="7"> |
| <label>iceberg/iceberg_export.h</label> |
| <link refid="iceberg__export_8h"/> |
| </node> |
| <node id="1"> |
| <label>iceberg/util/functional.h</label> |
| <link refid="functional_8h"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| <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> |
| </node> |
| <node id="2"> |
| <label>concepts</label> |
| </node> |
| <node id="3"> |
| <label>functional</label> |
| </node> |
| <node id="4"> |
| <label>memory</label> |
| </node> |
| <node id="5"> |
| <label>type_traits</label> |
| </node> |
| <node id="6"> |
| <label>utility</label> |
| </node> |
| </incdepgraph> |
| <invincdepgraph> |
| <node id="3"> |
| <label>iceberg/delete_file_index.h</label> |
| <link refid="delete__file__index_8h"/> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="5" relation="include"> |
| </childnode> |
| </node> |
| <node id="4"> |
| <label>iceberg/manifest/manifest_group.h</label> |
| <link refid="manifest__group_8h"/> |
| </node> |
| <node id="12"> |
| <label>iceberg/table_scan.h</label> |
| <link refid="table__scan_8h"/> |
| </node> |
| <node id="6"> |
| <label>iceberg/update/delete_files.h</label> |
| <link refid="delete__files_8h"/> |
| </node> |
| <node id="13"> |
| <label>iceberg/update/expire_snapshots.h</label> |
| <link refid="expire__snapshots_8h"/> |
| </node> |
| <node id="15"> |
| <label>iceberg/update/fast_append.h</label> |
| <link refid="fast__append_8h"/> |
| </node> |
| <node id="7"> |
| <label>iceberg/update/merge_append.h</label> |
| <link refid="merge__append_8h"/> |
| </node> |
| <node id="5"> |
| <label>iceberg/update/merging_snapshot_update.h</label> |
| <link refid="merging__snapshot__update_8h"/> |
| <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="11" relation="include"> |
| </childnode> |
| </node> |
| <node id="8"> |
| <label>iceberg/update/overwrite_files.h</label> |
| <link refid="overwrite__files_8h"/> |
| </node> |
| <node id="9"> |
| <label>iceberg/update/replace_partitions.h</label> |
| <link refid="replace__partitions_8h"/> |
| </node> |
| <node id="10"> |
| <label>iceberg/update/rewrite_files.h</label> |
| <link refid="rewrite__files_8h"/> |
| </node> |
| <node id="11"> |
| <label>iceberg/update/row_delta.h</label> |
| <link refid="row__delta_8h"/> |
| </node> |
| <node id="14"> |
| <label>iceberg/update/snapshot_update.h</label> |
| <link refid="snapshot__update_8h"/> |
| <childnode refid="15" relation="include"> |
| </childnode> |
| <childnode refid="5" relation="include"> |
| </childnode> |
| </node> |
| <node id="2"> |
| <label>iceberg/util/executor.h</label> |
| <link refid="executor_8h"/> |
| <childnode refid="3" relation="include"> |
| </childnode> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="12" relation="include"> |
| </childnode> |
| <childnode refid="13" relation="include"> |
| </childnode> |
| <childnode refid="14" relation="include"> |
| </childnode> |
| <childnode refid="16" relation="include"> |
| </childnode> |
| </node> |
| <node id="1"> |
| <label>iceberg/util/functional.h</label> |
| <link refid="functional_8h"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| <childnode refid="16" relation="include"> |
| </childnode> |
| </node> |
| <node id="16"> |
| <label>iceberg/util/task_group.h</label> |
| <link refid="task__group_8h"/> |
| </node> |
| </invincdepgraph> |
| <innerclass refid="classiceberg_1_1FnOnce_3_01R_07Args_8_8_8_08_4" prot="public">iceberg::FnOnce< R(Args...)></innerclass> |
| <innerclass refid="structiceberg_1_1FnOnce_3_01R_07Args_8_8_8_08_4_1_1Impl" prot="private">iceberg::FnOnce< R(Args...)>::Impl</innerclass> |
| <innerclass refid="structiceberg_1_1FnOnce_3_01R_07Args_8_8_8_08_4_1_1ImplFor" prot="private">iceberg::FnOnce< R(Args...)>::ImplFor</innerclass> |
| <innernamespace refid="namespaceiceberg">iceberg</innernamespace> |
| <innernamespace refid="namespaceiceberg_1_1internal">iceberg::internal</innernamespace> |
| <briefdescription> |
| <para>Provide move-only function wrappers. </para> |
| </briefdescription> |
| <detaileddescription> |
| </detaileddescription> |
| <programlisting> |
| <codeline lineno="1"><highlight class="comment">/*</highlight></codeline> |
| <codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Licensed<sp/>to<sp/>the<sp/>Apache<sp/>Software<sp/>Foundation<sp/>(ASF)<sp/>under<sp/>one</highlight></codeline> |
| <codeline lineno="3"><highlight class="comment"><sp/>*<sp/>or<sp/>more<sp/>contributor<sp/>license<sp/>agreements.<sp/><sp/>See<sp/>the<sp/>NOTICE<sp/>file</highlight></codeline> |
| <codeline lineno="4"><highlight class="comment"><sp/>*<sp/>distributed<sp/>with<sp/>this<sp/>work<sp/>for<sp/>additional<sp/>information</highlight></codeline> |
| <codeline lineno="5"><highlight class="comment"><sp/>*<sp/>regarding<sp/>copyright<sp/>ownership.<sp/><sp/>The<sp/>ASF<sp/>licenses<sp/>this<sp/>file</highlight></codeline> |
| <codeline lineno="6"><highlight class="comment"><sp/>*<sp/>to<sp/>you<sp/>under<sp/>the<sp/>Apache<sp/>License,<sp/>Version<sp/>2.0<sp/>(the</highlight></codeline> |
| <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>"License");<sp/>you<sp/>may<sp/>not<sp/>use<sp/>this<sp/>file<sp/>except<sp/>in<sp/>compliance</highlight></codeline> |
| <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>with<sp/>the<sp/>License.<sp/><sp/>You<sp/>may<sp/>obtain<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>License<sp/>at</highlight></codeline> |
| <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> |
| <codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/>http://www.apache.org/licenses/LICENSE-2.0</highlight></codeline> |
| <codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline> |
| <codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Unless<sp/>required<sp/>by<sp/>applicable<sp/>law<sp/>or<sp/>agreed<sp/>to<sp/>in<sp/>writing,</highlight></codeline> |
| <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>software<sp/>distributed<sp/>under<sp/>the<sp/>License<sp/>is<sp/>distributed<sp/>on<sp/>an</highlight></codeline> |
| <codeline lineno="14"><highlight class="comment"><sp/>*<sp/>"AS<sp/>IS"<sp/>BASIS,<sp/>WITHOUT<sp/>WARRANTIES<sp/>OR<sp/>CONDITIONS<sp/>OF<sp/>ANY</highlight></codeline> |
| <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>KIND,<sp/>either<sp/>express<sp/>or<sp/>implied.<sp/><sp/>See<sp/>the<sp/>License<sp/>for<sp/>the</highlight></codeline> |
| <codeline lineno="16"><highlight class="comment"><sp/>*<sp/>specific<sp/>language<sp/>governing<sp/>permissions<sp/>and<sp/>limitations</highlight></codeline> |
| <codeline lineno="17"><highlight class="comment"><sp/>*<sp/>under<sp/>the<sp/>License.</highlight></codeline> |
| <codeline lineno="18"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="19"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="20"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Borrowed<sp/>the<sp/>file<sp/>from<sp/>Apache<sp/>Arrow:</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="21"><highlight class="normal"></highlight><highlight class="comment">//<sp/>https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/functional.h</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="22"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="24"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="27"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="28"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><concepts></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><functional></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><memory></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><type_traits></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><utility></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="33"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="iceberg__export_8h" kindref="compound">iceberg/iceberg_export.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="35"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="36"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceiceberg" kindref="compound">iceberg</ref><sp/>{</highlight></codeline> |
| <codeline lineno="37"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">internal<sp/>{</highlight></codeline> |
| <codeline lineno="39"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>R,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Fn,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>Args></highlight></codeline> |
| <codeline lineno="41" refid="concepticeberg_1_1internal_1_1RvalueInvocable" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">concept<sp/></highlight><highlight class="normal"><ref refid="concepticeberg_1_1internal_1_1RvalueInvocable" kindref="compound">RvalueInvocable</ref><sp/>=<sp/>std::constructible_from<std::remove_cvref_t<Fn>,<sp/>Fn><sp/>&&</highlight></codeline> |
| <codeline lineno="42"><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/>std::move_constructible<std::remove_cvref_t<Fn>><sp/>&&</highlight></codeline> |
| <codeline lineno="43"><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/>std::is_invocable_r_v<R,<sp/>std::remove_cvref_t<Fn>&&,<sp/>Args...>;</highlight></codeline> |
| <codeline lineno="44"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="45"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>internal</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="46"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="47"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Signature></highlight></codeline> |
| <codeline lineno="48" refid="classiceberg_1_1FnOnce" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>;</highlight></codeline> |
| <codeline lineno="49"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="50"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>R,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>Args></highlight></codeline> |
| <codeline lineno="51" refid="classiceberg_1_1FnOnce_3_01R_07Args_8_8_8_08_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_TEMPLATE_CLASS_EXPORT<sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref><R(Args...)><sp/>{</highlight></codeline> |
| <codeline lineno="52"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="53"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Fn></highlight></codeline> |
| <codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal">(!std::same_as<std::remove_cvref_t<Fn>,<sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>><sp/>&&</highlight></codeline> |
| <codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="concepticeberg_1_1internal_1_1RvalueInvocable" kindref="compound">internal::RvalueInvocable</ref><R,<sp/>Fn,<sp/>Args...>)</highlight></codeline> |
| <codeline lineno="56"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>(Fn&&<sp/>fn)<sp/>:<sp/>impl_(std::make_unique<ImplFor<Fn>>(std::forward<Fn>(fn)))<sp/>{}</highlight></codeline> |
| <codeline lineno="57"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="58"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>(<ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</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="59"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>&<sp/>operator=(<ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</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="60"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="61"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>&<sp/>operator=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FnOnce" kindref="compound">FnOnce</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="62"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="63"><highlight class="normal"><sp/><sp/>R<sp/>operator()(Args...<sp/>args)<sp/>&&<sp/>{</highlight></codeline> |
| <codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::move(*impl_).Invoke(std::forward<Args>(args)...);</highlight></codeline> |
| <codeline lineno="65"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="66"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="67"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">Impl<sp/>{</highlight></codeline> |
| <codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>~Impl()<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>R<sp/>Invoke(Args&&...<sp/>args)<sp/>&&<sp/>=<sp/>0;</highlight></codeline> |
| <codeline lineno="71"><highlight class="normal"><sp/><sp/>};</highlight></codeline> |
| <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="73"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Fn></highlight></codeline> |
| <codeline lineno="74"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">ImplFor<sp/>final<sp/>:<sp/>Impl<sp/>{</highlight></codeline> |
| <codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/>ImplFor(Fn&&<sp/>fn)<sp/>:<sp/>fn_(std::forward<Fn>(fn))<sp/>{}</highlight></codeline> |
| <codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/>R<sp/>Invoke(Args&&...<sp/>args)<sp/>&&<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal"><sp/>{</highlight></codeline> |
| <codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::invoke(std::move(fn_),<sp/>std::forward<Args>(args)...);</highlight></codeline> |
| <codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>std::remove_cvref_t<Fn><sp/>fn_;</highlight></codeline> |
| <codeline lineno="80"><highlight class="normal"><sp/><sp/>};</highlight></codeline> |
| <codeline lineno="81"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="82"><highlight class="normal"><sp/><sp/>std::unique_ptr<Impl><sp/>impl_;</highlight></codeline> |
| <codeline lineno="83"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="84"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="85"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>iceberg</highlight><highlight class="normal"></highlight></codeline> |
| </programlisting> |
| <location file="iceberg/util/functional.h"/> |
| </compounddef> |
| </doxygen> |