| <?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="formatter__internal_8h" kind="file" language="C++"> |
| <compoundname>formatter_internal.h</compoundname> |
| <includes local="no">concepts</includes> |
| <includes local="no">format</includes> |
| <includes local="no">map</includes> |
| <includes local="no">ranges</includes> |
| <includes local="no">sstream</includes> |
| <includes local="no">string_view</includes> |
| <includes local="no">unordered_map</includes> |
| <includes local="no">unordered_set</includes> |
| <includes local="no">vector</includes> |
| <includes refid="formatter_8h" local="yes">iceberg/util/formatter.h</includes> |
| <includedby refid="expression_8cc" local="yes">iceberg/expression/expression.cc</includedby> |
| <includedby refid="predicate_8cc" local="yes">iceberg/expression/predicate.cc</includedby> |
| <includedby refid="name__mapping_8cc" local="yes">iceberg/name_mapping.cc</includedby> |
| <includedby refid="struct__like_8cc" local="yes">iceberg/row/struct_like.cc</includedby> |
| <includedby refid="schema__util_8cc" local="yes">iceberg/schema_util.cc</includedby> |
| <includedby refid="statistics__file_8cc" local="yes">iceberg/statistics_file.cc</includedby> |
| <includedby refid="table__identifier_8cc" local="yes">iceberg/table_identifier.cc</includedby> |
| <includedby refid="formatter__test_8cc" local="yes">iceberg/test/formatter_test.cc</includedby> |
| <includedby refid="type__util_8cc" local="yes">iceberg/util/type_util.cc</includedby> |
| <incdepgraph> |
| <node id="14"> |
| <label>iceberg/iceberg_export.h</label> |
| <link refid="iceberg__export_8h_source"/> |
| </node> |
| <node id="12"> |
| <label>iceberg/util/formattable.h</label> |
| <link refid="formattable_8h"/> |
| <childnode refid="13" relation="include"> |
| </childnode> |
| <childnode refid="14" relation="include"> |
| </childnode> |
| </node> |
| <node id="11"> |
| <label>iceberg/util/formatter.h</label> |
| <link refid="formatter_8h"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| <childnode refid="3" relation="include"> |
| </childnode> |
| <childnode refid="7" relation="include"> |
| </childnode> |
| <childnode refid="12" relation="include"> |
| </childnode> |
| </node> |
| <node id="1"> |
| <label>iceberg/util/formatter_internal.h</label> |
| <link refid="formatter__internal_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> |
| <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="2"> |
| <label>concepts</label> |
| </node> |
| <node id="3"> |
| <label>format</label> |
| </node> |
| <node id="4"> |
| <label>map</label> |
| </node> |
| <node id="5"> |
| <label>ranges</label> |
| </node> |
| <node id="6"> |
| <label>sstream</label> |
| </node> |
| <node id="13"> |
| <label>string</label> |
| </node> |
| <node id="7"> |
| <label>string_view</label> |
| </node> |
| <node id="8"> |
| <label>unordered_map</label> |
| </node> |
| <node id="9"> |
| <label>unordered_set</label> |
| </node> |
| <node id="10"> |
| <label>vector</label> |
| </node> |
| </incdepgraph> |
| <innerclass refid="structstd_1_1formatter_3_01std_1_1map_3_01K_00_01V_01_4_01_4" prot="public">std::formatter< std::map< K, V > ></innerclass> |
| <innerclass refid="structstd_1_1formatter_3_01std_1_1unordered__map_3_01K_00_01V_01_4_01_4" prot="public">std::formatter< std::unordered_map< K, V > ></innerclass> |
| <innerclass refid="structstd_1_1formatter_3_01std_1_1vector_3_01T_01_4_01_4" prot="public">std::formatter< std::vector< T > ></innerclass> |
| <innerclass refid="structstd_1_1formatter_3_01std_1_1span_3_01T_00_01Extent_01_4_01_4" prot="public">std::formatter< std::span< T, Extent > ></innerclass> |
| <innerclass refid="structstd_1_1formatter_3_01std_1_1unordered__set_3_01T_00_01Hash_00_01KeyEqual_00_01Allocator_01_4_01_4" prot="public">std::formatter< std::unordered_set< T, Hash, KeyEqual, Allocator > ></innerclass> |
| <sectiondef kind="func"> |
| <memberdef kind="function" id="formatter__internal_8h_1a52b81774844135f14ea96f0a0b0fc1c4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
| <templateparamlist> |
| <param> |
| <type>typename T</type> |
| </param> |
| </templateparamlist> |
| <type>std::string</type> |
| <definition>std::string FormatItem</definition> |
| <argsstring>(const T &item)</argsstring> |
| <name>FormatItem</name> |
| <param> |
| <type>const T &</type> |
| <declname>item</declname> |
| </param> |
| <briefdescription> |
| <para>Helper function to format an item using concepts to differentiate types. </para> |
| </briefdescription> |
| <detaileddescription> |
| </detaileddescription> |
| <inbodydescription> |
| </inbodydescription> |
| <location file="iceberg/util/formatter_internal.h" line="45" column="13" bodyfile="iceberg/util/formatter_internal.h" bodystart="45" bodyend="55"/> |
| </memberdef> |
| <memberdef kind="function" id="formatter__internal_8h_1ae4149179f9f80c5028f40b98287f24b3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
| <templateparamlist> |
| <param> |
| <type>std::ranges::input_range</type> |
| <declname>Range</declname> |
| <defname>Range</defname> |
| </param> |
| </templateparamlist> |
| <type>std::string</type> |
| <definition>std::string FormatRange</definition> |
| <argsstring>(const Range &range, std::string_view separator, std::string_view prefix, std::string_view suffix)</argsstring> |
| <name>FormatRange</name> |
| <param> |
| <type>const Range &</type> |
| <declname>range</declname> |
| </param> |
| <param> |
| <type>std::string_view</type> |
| <declname>separator</declname> |
| </param> |
| <param> |
| <type>std::string_view</type> |
| <declname>prefix</declname> |
| </param> |
| <param> |
| <type>std::string_view</type> |
| <declname>suffix</declname> |
| </param> |
| <briefdescription> |
| <para>Generic function to join a range of elements with a separator and wrap with delimiters. </para> |
| </briefdescription> |
| <detaileddescription> |
| </detaileddescription> |
| <inbodydescription> |
| </inbodydescription> |
| <location file="iceberg/util/formatter_internal.h" line="60" column="13" bodyfile="iceberg/util/formatter_internal.h" bodystart="60" bodyend="80"/> |
| </memberdef> |
| <memberdef kind="function" id="formatter__internal_8h_1aad2599f8fd71988e018eb861130fcdde" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
| <templateparamlist> |
| <param> |
| <type>typename MapType</type> |
| </param> |
| </templateparamlist> |
| <type>std::string</type> |
| <definition>std::string FormatMap</definition> |
| <argsstring>(const MapType &map)</argsstring> |
| <name>FormatMap</name> |
| <param> |
| <type>const MapType &</type> |
| <declname>map</declname> |
| </param> |
| <briefdescription> |
| <para>Helper template for formatting map-like containers. </para> |
| </briefdescription> |
| <detaileddescription> |
| </detaileddescription> |
| <inbodydescription> |
| </inbodydescription> |
| <location file="iceberg/util/formatter_internal.h" line="84" column="13" bodyfile="iceberg/util/formatter_internal.h" bodystart="84" bodyend="92"/> |
| </memberdef> |
| </sectiondef> |
| <briefdescription> |
| </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="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="21"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><concepts></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><format></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="24"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><map></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="25"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><ranges></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="26"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><sstream></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="27"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><string_view></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="28"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><unordered_map></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><unordered_set></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><vector></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="31"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="formatter_8h" kindref="compound">iceberg/util/formatter.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="33"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="35"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline> |
| <codeline lineno="36" refid="conceptSmartPointerType" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">concept<sp/></highlight><highlight class="normal"><ref refid="conceptSmartPointerType" kindref="compound">SmartPointerType</ref><sp/>=<sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal">(T<sp/>t)<sp/>{</highlight></codeline> |
| <codeline lineno="37"><highlight class="normal"><sp/><sp/>{<sp/>t.operator->()<sp/>}<sp/>-><sp/>std::same_as<typename<sp/>T::element_type*>;</highlight></codeline> |
| <codeline lineno="38"><highlight class="normal"><sp/><sp/>{<sp/>*t<sp/>}<sp/>-><sp/>std::convertible_to<typename<sp/>T::element_type&>;</highlight></codeline> |
| <codeline lineno="39"><highlight class="normal"><sp/><sp/>{<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">bool</highlight><highlight class="keyword">></highlight><highlight class="normal">(t)<sp/>}<sp/>-><sp/>std::same_as<bool>;</highlight></codeline> |
| <codeline lineno="40"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T::element_type;</highlight></codeline> |
| <codeline lineno="41"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="42"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="44"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline> |
| <codeline lineno="45"><highlight class="normal">std::string<sp/>FormatItem(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>item)<sp/>{</highlight></codeline> |
| <codeline lineno="46"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">constexpr</highlight><highlight class="normal"><sp/>(<ref refid="conceptSmartPointerType" kindref="compound">SmartPointerType<T></ref>)<sp/>{</highlight></codeline> |
| <codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(item)<sp/>{</highlight></codeline> |
| <codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::format(</highlight><highlight class="stringliteral">"{}"</highlight><highlight class="normal">,<sp/>*item);</highlight></codeline> |
| <codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> |
| <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">"null"</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="52"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> |
| <codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::format(</highlight><highlight class="stringliteral">"{}"</highlight><highlight class="normal">,<sp/>item);</highlight></codeline> |
| <codeline lineno="54"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="55"><highlight class="normal">}</highlight></codeline> |
| <codeline lineno="56"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="59"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><std::ranges::input_range<sp/>Range></highlight></codeline> |
| <codeline lineno="60"><highlight class="normal">std::string<sp/>FormatRange(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Range&<sp/>range,<sp/>std::string_view<sp/>separator,</highlight></codeline> |
| <codeline lineno="61"><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/>std::string_view<sp/>prefix,<sp/>std::string_view<sp/>suffix)<sp/>{</highlight></codeline> |
| <codeline lineno="62"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(std::ranges::empty(range))<sp/>{</highlight></codeline> |
| <codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::format(</highlight><highlight class="stringliteral">"{}{}"</highlight><highlight class="normal">,<sp/>prefix,<sp/>suffix);</highlight></codeline> |
| <codeline lineno="64"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="65"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="66"><highlight class="normal"><sp/><sp/>std::stringstream<sp/>ss;</highlight></codeline> |
| <codeline lineno="67"><highlight class="normal"><sp/><sp/>ss<sp/><<<sp/>prefix;</highlight></codeline> |
| <codeline lineno="68"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>first<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>element<sp/>:<sp/>range)<sp/>{</highlight></codeline> |
| <codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!first)<sp/>{</highlight></codeline> |
| <codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>ss<sp/><<<sp/>separator;</highlight></codeline> |
| <codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/>ss<sp/><<<sp/>std::format(</highlight><highlight class="stringliteral">"{}"</highlight><highlight class="normal">,<sp/>element);</highlight></codeline> |
| <codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/>first<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="76"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="77"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="78"><highlight class="normal"><sp/><sp/>ss<sp/><<<sp/>suffix;</highlight></codeline> |
| <codeline lineno="79"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ss.str();</highlight></codeline> |
| <codeline lineno="80"><highlight class="normal">}</highlight></codeline> |
| <codeline lineno="81"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="83"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>MapType></highlight></codeline> |
| <codeline lineno="84"><highlight class="normal">std::string<sp/>FormatMap(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>MapType&<sp/>map)<sp/>{</highlight></codeline> |
| <codeline lineno="85"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Transform<sp/>the<sp/>map<sp/>items<sp/>into<sp/>formatted<sp/>key-value<sp/>pairs</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="86"><highlight class="normal"><sp/><sp/>std::ranges::transform_view<sp/>formatted_range<sp/>=</highlight></codeline> |
| <codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__type-factories_1ga4d0b2254f39850e311ffed558e1bac7b" kindref="member">map</ref><sp/>|<sp/>std::views::transform([](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>pair)<sp/>-><sp/>std::string<sp/>{</highlight></codeline> |
| <codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>[key,<sp/>value]<sp/>=<sp/>pair;</highlight></codeline> |
| <codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::format(</highlight><highlight class="stringliteral">"{}:<sp/>{}"</highlight><highlight class="normal">,<sp/>FormatItem(key),<sp/>FormatItem(value));</highlight></codeline> |
| <codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline> |
| <codeline lineno="91"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FormatRange(formatted_range,<sp/></highlight><highlight class="stringliteral">",<sp/>"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"{"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"}"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="92"><highlight class="normal">}</highlight></codeline> |
| <codeline lineno="93"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="95"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>K,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>V></highlight></codeline> |
| <codeline lineno="96" refid="structstd_1_1formatter_3_01std_1_1map_3_01K_00_01V_01_4_01_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">std::formatter<<ref refid="namespacestd" kindref="compound">std</ref>::map<K,<sp/>V>><sp/>:<sp/>std::formatter<std::string_view><sp/>{</highlight></codeline> |
| <codeline lineno="97"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>FormatContext></highlight></codeline> |
| <codeline lineno="98"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>format(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::map<K,<sp/>V>&<sp/>map,<sp/>FormatContext&<sp/>ctx)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline> |
| <codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::formatter<std::string_view>::format(FormatMap(map),<sp/>ctx);</highlight></codeline> |
| <codeline lineno="100"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="101"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="102"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="104"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>K,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>V></highlight></codeline> |
| <codeline lineno="105" refid="structstd_1_1formatter_3_01std_1_1unordered__map_3_01K_00_01V_01_4_01_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">std::formatter<<ref refid="namespacestd" kindref="compound">std</ref>::unordered_map<K,<sp/>V>><sp/>:<sp/>std::formatter<std::string_view><sp/>{</highlight></codeline> |
| <codeline lineno="106"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>FormatContext></highlight></codeline> |
| <codeline lineno="107"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>format(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::unordered_map<K,<sp/>V>&<sp/>map,<sp/>FormatContext&<sp/>ctx)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline> |
| <codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::formatter<std::string_view>::format(FormatMap(map),<sp/>ctx);</highlight></codeline> |
| <codeline lineno="109"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="110"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="111"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="113"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline> |
| <codeline lineno="114" refid="structstd_1_1formatter_3_01std_1_1vector_3_01T_01_4_01_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">std::formatter<<ref refid="namespacestd" kindref="compound">std</ref>::vector<T>><sp/>:<sp/>std::formatter<std::string_view><sp/>{</highlight></codeline> |
| <codeline lineno="115"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>FormatContext></highlight></codeline> |
| <codeline lineno="116"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>format(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<T>&<sp/>vec,<sp/>FormatContext&<sp/>ctx)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline> |
| <codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>formatted_range<sp/>=</highlight></codeline> |
| <codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>|<sp/>std::views::transform([](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>item)<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FormatItem(item);<sp/>});</highlight></codeline> |
| <codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::formatter<std::string_view>::format(</highlight></codeline> |
| <codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>FormatRange(formatted_range,<sp/></highlight><highlight class="stringliteral">",<sp/>"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"["</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"]"</highlight><highlight class="normal">),<sp/>ctx);</highlight></codeline> |
| <codeline lineno="121"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="122"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="123"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="125"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>Extent></highlight></codeline> |
| <codeline lineno="126" refid="structstd_1_1formatter_3_01std_1_1span_3_01T_00_01Extent_01_4_01_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">std::formatter<<ref refid="namespacestd" kindref="compound">std</ref>::span<T,<sp/>Extent>><sp/>:<sp/>std::formatter<std::string_view><sp/>{</highlight></codeline> |
| <codeline lineno="127"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>FormatContext></highlight></codeline> |
| <codeline lineno="128"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>format(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::span<T,<sp/>Extent>&<sp/>span,<sp/>FormatContext&<sp/>ctx)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline> |
| <codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>formatted_range<sp/>=</highlight></codeline> |
| <codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>span<sp/>|<sp/>std::views::transform([](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>item)<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FormatItem(item);<sp/>});</highlight></codeline> |
| <codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::formatter<std::string_view>::format(</highlight></codeline> |
| <codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>FormatRange(formatted_range,<sp/></highlight><highlight class="stringliteral">",<sp/>"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"["</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"]"</highlight><highlight class="normal">),<sp/>ctx);</highlight></codeline> |
| <codeline lineno="133"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="134"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="135"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="137"><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Hash,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>KeyEqual,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Allocator></highlight></codeline> |
| <codeline lineno="138" refid="structstd_1_1formatter_3_01std_1_1unordered__set_3_01T_00_01Hash_00_01KeyEqual_00_01Allocator_01_4_01_4" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">std::formatter<<ref refid="namespacestd" kindref="compound">std</ref>::unordered_set<T,<sp/>Hash,<sp/>KeyEqual,<sp/>Allocator>></highlight></codeline> |
| <codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>std::formatter<std::string_view><sp/>{</highlight></codeline> |
| <codeline lineno="140"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>FormatContext></highlight></codeline> |
| <codeline lineno="141"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>format(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::unordered_set<T,<sp/>Hash,<sp/>KeyEqual,<sp/>Allocator>&<sp/>set,</highlight></codeline> |
| <codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>FormatContext&<sp/>ctx)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline> |
| <codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>formatted_range<sp/>=</highlight></codeline> |
| <codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>set<sp/>|<sp/>std::views::transform([](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>item)<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FormatItem(item);<sp/>});</highlight></codeline> |
| <codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::formatter<std::string_view>::format(</highlight></codeline> |
| <codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>FormatRange(formatted_range,<sp/></highlight><highlight class="stringliteral">",<sp/>"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"["</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"]"</highlight><highlight class="normal">),<sp/>ctx);</highlight></codeline> |
| <codeline lineno="147"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="148"><highlight class="normal">};</highlight></codeline> |
| </programlisting> |
| <location file="iceberg/util/formatter_internal.h"/> |
| </compounddef> |
| </doxygen> |