2022-11-28 19:21:26 +08:00
|
|
|
<?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.4" xml:lang="en-US">
|
|
|
|
<compounddef id="ArchiveOffset_8h" kind="file" language="C++">
|
|
|
|
<compoundname>ArchiveOffset.h</compoundname>
|
|
|
|
<includes local="no">cstddef</includes>
|
|
|
|
<includes local="no">cstdint</includes>
|
|
|
|
<includes local="no">memory</includes>
|
|
|
|
<includedby refid="dna_2DNA_8h" local="no">DNA.h</includedby>
|
|
|
|
<includedby refid="dnacalib_2dna_2DNA_8h" local="no">DNA.h</includedby>
|
|
|
|
<includedby refid="binary_2InputArchive_8h" local="yes">InputArchive.h</includedby>
|
|
|
|
<includedby refid="json_2InputArchive_8h" local="yes">InputArchive.h</includedby>
|
|
|
|
<includedby refid="binary_2OutputArchive_8h" local="yes">OutputArchive.h</includedby>
|
|
|
|
<includedby refid="json_2OutputArchive_8h" local="yes">OutputArchive.h</includedby>
|
|
|
|
<incdepgraph>
|
|
|
|
<node id="1">
|
|
|
|
<label>ArchiveOffset.h</label>
|
|
|
|
<link refid="ArchiveOffset_8h"/>
|
|
|
|
<childnode refid="2" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="3" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="4" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="2">
|
|
|
|
<label>cstddef</label>
|
|
|
|
</node>
|
|
|
|
<node id="3">
|
|
|
|
<label>cstdint</label>
|
|
|
|
</node>
|
|
|
|
<node id="4">
|
|
|
|
<label>memory</label>
|
|
|
|
</node>
|
|
|
|
</incdepgraph>
|
|
|
|
<invincdepgraph>
|
|
|
|
<node id="2">
|
|
|
|
<label>DNA.h</label>
|
|
|
|
<link refid="dna_2DNA_8h"/>
|
|
|
|
</node>
|
|
|
|
<node id="36">
|
|
|
|
<label>BinaryStreamReaderImpl.cpp</label>
|
|
|
|
<link refid="BinaryStreamReaderImpl_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="35">
|
|
|
|
<label>BinaryStreamReaderImpl.h</label>
|
|
|
|
<link refid="BinaryStreamReaderImpl_8h"/>
|
|
|
|
<childnode refid="36" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="43">
|
|
|
|
<label>BinaryStreamWriterImpl.cpp</label>
|
|
|
|
<link refid="BinaryStreamWriterImpl_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="42">
|
|
|
|
<label>BinaryStreamWriterImpl.h</label>
|
|
|
|
<link refid="BinaryStreamWriterImpl_8h"/>
|
|
|
|
<childnode refid="43" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="37">
|
|
|
|
<label>FilteredInputArchive.cpp</label>
|
|
|
|
<link refid="FilteredInputArchive_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="34">
|
|
|
|
<label>FilteredInputArchive.h</label>
|
|
|
|
<link refid="FilteredInputArchive_8h"/>
|
|
|
|
<childnode refid="35" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="37" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="40">
|
|
|
|
<label>JSONStreamReaderImpl.cpp</label>
|
|
|
|
<link refid="JSONStreamReaderImpl_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="39">
|
|
|
|
<label>JSONStreamReaderImpl.h</label>
|
|
|
|
<link refid="JSONStreamReaderImpl_8h"/>
|
|
|
|
<childnode refid="40" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="46">
|
|
|
|
<label>JSONStreamWriterImpl.cpp</label>
|
|
|
|
<link refid="JSONStreamWriterImpl_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="45">
|
|
|
|
<label>JSONStreamWriterImpl.h</label>
|
|
|
|
<link refid="JSONStreamWriterImpl_8h"/>
|
|
|
|
<childnode refid="46" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="8">
|
|
|
|
<label>CalculateMeshLowerLODsCommand.cpp</label>
|
|
|
|
<link refid="CalculateMeshLowerLODsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="9">
|
|
|
|
<label>ClearBlendShapesCommand.cpp</label>
|
|
|
|
<link refid="ClearBlendShapesCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="11">
|
|
|
|
<label>PruneBlendShapeTargetsCommand.cpp</label>
|
|
|
|
<link refid="PruneBlendShapeTargetsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="12">
|
|
|
|
<label>RemoveJointAnimationCommand.cpp</label>
|
|
|
|
<link refid="RemoveJointAnimationCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="13">
|
|
|
|
<label>RemoveJointCommand.cpp</label>
|
|
|
|
<link refid="RemoveJointCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="14">
|
|
|
|
<label>RemoveMeshCommand.cpp</label>
|
|
|
|
<link refid="RemoveMeshCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="15">
|
|
|
|
<label>RenameAnimatedMapCommand.cpp</label>
|
|
|
|
<link refid="RenameAnimatedMapCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="16">
|
|
|
|
<label>RenameBlendShapeCommand.cpp</label>
|
|
|
|
<link refid="RenameBlendShapeCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="17">
|
|
|
|
<label>RenameJointCommand.cpp</label>
|
|
|
|
<link refid="RenameJointCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="18">
|
|
|
|
<label>RenameMeshCommand.cpp</label>
|
|
|
|
<link refid="RenameMeshCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="19">
|
|
|
|
<label>RenameResourceCommand.h</label>
|
|
|
|
<link refid="RenameResourceCommand_8h"/>
|
|
|
|
<childnode refid="15" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="16" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="17" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="18" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="20">
|
|
|
|
<label>RotateCommand.cpp</label>
|
|
|
|
<link refid="RotateCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="21">
|
|
|
|
<label>ScaleCommand.cpp</label>
|
|
|
|
<link refid="ScaleCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="22">
|
|
|
|
<label>SetBlendShapeTargetDeltasCommand.cpp</label>
|
|
|
|
<link refid="SetBlendShapeTargetDeltasCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="23">
|
|
|
|
<label>SetLODsCommand.cpp</label>
|
|
|
|
<link refid="SetLODsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="24">
|
|
|
|
<label>SetNeutralJointRotationsCommand.cpp</label>
|
|
|
|
<link refid="SetNeutralJointRotationsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="25">
|
|
|
|
<label>SetNeutralJointTranslationsCommand.cpp</label>
|
|
|
|
<link refid="SetNeutralJointTranslationsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="26">
|
|
|
|
<label>SetSkinWeightsCommand.cpp</label>
|
|
|
|
<link refid="SetSkinWeightsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="27">
|
|
|
|
<label>SetVertexPositionsCommand.cpp</label>
|
|
|
|
<link refid="SetVertexPositionsCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="28">
|
|
|
|
<label>TranslateCommand.cpp</label>
|
|
|
|
<link refid="TranslateCommand_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="5">
|
|
|
|
<label>BaseImpl.h</label>
|
|
|
|
<link refid="dnacalib_2dna_2BaseImpl_8h"/>
|
|
|
|
<childnode refid="6" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="29" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="3">
|
|
|
|
<label>DNA.h</label>
|
|
|
|
<link refid="dnacalib_2dna_2DNA_8h"/>
|
|
|
|
<childnode refid="4" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="5" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="30" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="8" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="9" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="31" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="32" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="11" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="12" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="13" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="14" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="20" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="21" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="22" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="23" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="24" 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>
|
|
|
|
</node>
|
|
|
|
<node id="10">
|
|
|
|
<label>DNACalibDNAReaderImpl.cpp</label>
|
|
|
|
<link refid="DNACalibDNAReaderImpl_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="7">
|
|
|
|
<label>DNACalibDNAReaderImpl.h</label>
|
|
|
|
<link refid="DNACalibDNAReaderImpl_8h"/>
|
|
|
|
<childnode refid="8" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="9" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="10" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="11" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="12" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="13" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="14" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="15" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="16" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="17" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="18" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="19" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="20" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="21" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="22" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="23" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="24" 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>
|
|
|
|
</node>
|
|
|
|
<node id="6">
|
|
|
|
<label>ReaderImpl.h</label>
|
|
|
|
<link refid="dnacalib_2dna_2ReaderImpl_8h"/>
|
|
|
|
<childnode refid="7" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="29">
|
|
|
|
<label>WriterImpl.h</label>
|
|
|
|
<link refid="dnacalib_2dna_2WriterImpl_8h"/>
|
|
|
|
<childnode refid="7" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="4">
|
|
|
|
<label>AnimatedMapFilter.cpp</label>
|
|
|
|
<link refid="alib_2dna_2filters_2AnimatedMapFilter_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="30">
|
|
|
|
<label>BlendShapeFilter.cpp</label>
|
|
|
|
<link refid="alib_2dna_2filters_2BlendShapeFilter_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="31">
|
|
|
|
<label>JointFilter.cpp</label>
|
|
|
|
<link refid="alib_2dna_2filters_2JointFilter_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="32">
|
|
|
|
<label>MeshFilter.cpp</label>
|
|
|
|
<link refid="alib_2dna_2filters_2MeshFilter_8cpp"/>
|
|
|
|
</node>
|
|
|
|
<node id="33">
|
|
|
|
<label>InputArchive.h</label>
|
|
|
|
<link refid="binary_2InputArchive_8h"/>
|
|
|
|
<childnode refid="34" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="41">
|
|
|
|
<label>OutputArchive.h</label>
|
|
|
|
<link refid="binary_2OutputArchive_8h"/>
|
|
|
|
<childnode refid="42" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="38">
|
|
|
|
<label>InputArchive.h</label>
|
|
|
|
<link refid="json_2InputArchive_8h"/>
|
|
|
|
<childnode refid="39" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="44">
|
|
|
|
<label>OutputArchive.h</label>
|
|
|
|
<link refid="json_2OutputArchive_8h"/>
|
|
|
|
<childnode refid="45" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
<node id="1">
|
|
|
|
<label>ArchiveOffset.h</label>
|
|
|
|
<link refid="ArchiveOffset_8h"/>
|
|
|
|
<childnode refid="2" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="3" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="33" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="38" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="41" relation="include">
|
|
|
|
</childnode>
|
|
|
|
<childnode refid="44" relation="include">
|
|
|
|
</childnode>
|
|
|
|
</node>
|
|
|
|
</invincdepgraph>
|
|
|
|
<innerclass refid="structterse_1_1ArchiveOffset" prot="public">terse::ArchiveOffset</innerclass>
|
|
|
|
<innerclass refid="structterse_1_1ArchiveOffset_1_1Proxy" prot="public">terse::ArchiveOffset::Proxy</innerclass>
|
|
|
|
<innernamespace refid="namespaceterse">terse</innernamespace>
|
|
|
|
<briefdescription>
|
|
|
|
</briefdescription>
|
|
|
|
<detaileddescription>
|
|
|
|
</detaileddescription>
|
|
|
|
<programlisting>
|
|
|
|
<codeline lineno="1"><highlight class="comment">//<sp/>Copyright<sp/>Epic<sp/>Games,<sp/>Inc.<sp/>All<sp/>Rights<sp/>Reserved.</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="2"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="4"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>_MSC_VER</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/><sp/><sp/>#pragma<sp/>warning(push)</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/><sp/><sp/>#pragma<sp/>warning(disable<sp/>:<sp/>4365<sp/>4987)</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cstddef></highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cstdint></highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><memory></highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>_MSC_VER</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/><sp/><sp/>#pragma<sp/>warning(pop)</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="15"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceterse" kindref="compound">terse</ref><sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="17"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="comment">//<sp/>ArchiveOffset<sp/>is<sp/>a<sp/>type<sp/>that<sp/>stores<sp/>an<sp/>absolute<sp/>stream<sp/>offset<sp/>(both<sp/>in-memory<sp/>and<sp/>writes<sp/>that<sp/>value<sp/>into<sp/>the<sp/>stream<sp/>as<sp/>well).</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="comment">//<sp/>It<sp/>has<sp/>an<sp/>accompanying<sp/>Proxy<sp/>type,<sp/>which<sp/>is<sp/>a<sp/>virtual,<sp/>utility<sp/>type,<sp/>and<sp/>they<sp/>work<sp/>together<sp/>to<sp/>achieve<sp/>the<sp/>function</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="comment">//<sp/>of<sp/>ArchiveOffset.</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="comment">//<sp/>When<sp/>ArchiveOffset<sp/>is<sp/>encountered<sp/>during<sp/>the<sp/>serialization<sp/>process,<sp/>at<sp/>first<sp/>an<sp/>empty<sp/>offset<sp/>(zero)<sp/>value<sp/>will<sp/>be<sp/>written</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="comment">//<sp/>into<sp/>the<sp/>stream<sp/>and<sp/>the<sp/>position<sp/>of<sp/>that<sp/>offset<sp/>value<sp/>will<sp/>be<sp/>captured<sp/>in<sp/>an<sp/>in-memory<sp/>variable.<sp/>Later,<sp/>when<sp/>its<sp/>associated</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="comment">//<sp/>ArchiveOffset<T>::Proxy<sp/>is<sp/>encountered,<sp/>the<sp/>current<sp/>stream<sp/>position<sp/>will<sp/>be<sp/>captured,<sp/>and<sp/>it<sp/>will<sp/>update<sp/>the<sp/>in-memory<sp/>value</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="comment">//<sp/>of<sp/>its<sp/>ArchiveOffset<sp/>with<sp/>it.<sp/>Then,<sp/>it<sp/>will<sp/>seek<sp/>the<sp/>stream<sp/>to<sp/>the<sp/>earlier<sp/>captured<sp/>position<sp/>of<sp/>the<sp/>offset<sp/>value<sp/>(where<sp/>zeros</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="25"><highlight class="normal"></highlight><highlight class="comment">//<sp/>were<sp/>written<sp/>initially),<sp/>and<sp/>it<sp/>will<sp/>write<sp/>the<sp/>offset<sp/>value<sp/>captured<sp/>by<sp/>the<sp/>proxy<sp/>into<sp/>the<sp/>stream.<sp/>Lastly,<sp/>it<sp/>will<sp/>seek<sp/>back</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="26"><highlight class="normal"></highlight><highlight class="comment">//<sp/>to<sp/>the<sp/>position<sp/>of<sp/>the<sp/>stream<sp/>before<sp/>the<sp/>proxy<sp/>was<sp/>encountered,<sp/>and<sp/>resume<sp/>serialization.</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="27"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>TOffset></highlight></codeline>
|
|
|
|
<codeline lineno="28" refid="structterse_1_1ArchiveOffset" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref><sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="29" refid="structterse_1_1ArchiveOffset_1a83a2c50912eb7640124534df6577d2e4" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="structterse_1_1ArchiveOffset_1a83a2c50912eb7640124534df6577d2e4" kindref="member">ValueType</ref><sp/>=<sp/>TOffset;</highlight></codeline>
|
|
|
|
<codeline lineno="30"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="31" refid="structterse_1_1ArchiveOffset_1_1Proxy" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref><sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="32" refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>*<sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>;</highlight></codeline>
|
|
|
|
<codeline lineno="33"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="34" refid="structterse_1_1ArchiveOffset_1_1Proxy_1aebfc934db0aec8c4f0cb790238977b22" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1aebfc934db0aec8c4f0cb790238977b22" kindref="member">Proxy</ref>(<ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&<sp/>ptr)<sp/>:<sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>{std::addressof(ptr)}<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>-><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>=<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="38" refid="structterse_1_1ArchiveOffset_1_1Proxy_1aa3d4077621266cbad6e67dd98d60b2e4" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1aa3d4077621266cbad6e67dd98d60b2e4" kindref="member">~Proxy</ref>()<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="39"><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="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref><sp/>!=<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>-><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>=<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="43"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="44" refid="structterse_1_1ArchiveOffset_1_1Proxy_1a295e7d734b69e1ebac1d0a7ccbed23e3" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a295e7d734b69e1ebac1d0a7ccbed23e3" kindref="member">Proxy</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="45" refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbd19a45c298d56559a572546f44483" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&<sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbd19a45c298d56559a572546f44483" kindref="member">operator=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="47" refid="structterse_1_1ArchiveOffset_1_1Proxy_1ae174c63409f4f26834b7d2d1d7b07dd0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1ae174c63409f4f26834b7d2d1d7b07dd0" kindref="member">Proxy</ref>(<ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&&<sp/>rhs)<sp/>:<sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>{nullptr}<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>,<sp/>rhs.target);</highlight></codeline>
|
|
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>-><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>=<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="51"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="52" refid="structterse_1_1ArchiveOffset_1_1Proxy_1a03757bbf2c90595f88c33c2c613f7cab" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&<sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a03757bbf2c90595f88c33c2c613f7cab" kindref="member">operator=</ref>(<ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>&&<sp/>rhs)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>,<sp/>rhs.target);</highlight></codeline>
|
|
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref>-><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>=<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="55"><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/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
|
|
|
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>The<sp/>position<sp/>of<sp/>the<sp/>marker<sp/>itself<sp/>in<sp/>the<sp/>stream<sp/>(this<sp/>is<sp/>a<sp/>runtime-only<sp/>value</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>which<sp/>is<sp/>not<sp/>written<sp/>to<sp/>the<sp/>file,<sp/>needed<sp/>only<sp/>for<sp/>the<sp/>serializer<sp/>to<sp/>know<sp/>where</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>to<sp/>seek<sp/>within<sp/>the<sp/>stream<sp/>when<sp/>the<sp/>marker's<sp/>actual<sp/>value<sp/>needs<sp/>to<sp/>be<sp/>written)</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="63" refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">mutable</highlight><highlight class="normal"><sp/>std::size_t<sp/><ref refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" kindref="member">position</ref>;</highlight></codeline>
|
|
|
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>The<sp/>position<sp/>in<sp/>the<sp/>stream<sp/>where<sp/>the<sp/>marker<sp/>wants<sp/>to<sp/>point<sp/>(this<sp/>is<sp/>the<sp/>actual</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>value<sp/>that<sp/>is<sp/>written<sp/>to<sp/>the<sp/>file)</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="66" refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">mutable</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1a83a2c50912eb7640124534df6577d2e4" kindref="member">ValueType</ref><sp/><ref refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" kindref="member">value</ref>;</highlight></codeline>
|
|
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>When<sp/>offset<sp/>is<sp/>moved,<sp/>it's<sp/>associated<sp/>proxy<sp/>must<sp/>be<sp/>updated<sp/>about<sp/>the<sp/>new<sp/>address</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="68" refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">Proxy</ref>*<sp/><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>;</highlight></codeline>
|
|
|
|
<codeline lineno="69"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="70" refid="structterse_1_1ArchiveOffset_1a40f6de96fccf22b65161baf3cbd41af6" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1a40f6de96fccf22b65161baf3cbd41af6" kindref="member">ArchiveOffset</ref>()<sp/>:<sp/><ref refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" kindref="member">position</ref>{},<sp/><ref refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" kindref="member">value</ref>{},<sp/><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>{nullptr}<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="73" refid="structterse_1_1ArchiveOffset_1a823cd8aed9bbfe8203afcce9aeebca13" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1a823cd8aed9bbfe8203afcce9aeebca13" kindref="member">~ArchiveOffset</ref>()<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="74"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="75" refid="structterse_1_1ArchiveOffset_1a384d893fb183c1b63dab3f4525575ef9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1a384d893fb183c1b63dab3f4525575ef9" kindref="member">ArchiveOffset</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="76" refid="structterse_1_1ArchiveOffset_1a397fdf414ae8afbdc91eb80b4f2f8bce" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&<sp/><ref refid="structterse_1_1ArchiveOffset_1a397fdf414ae8afbdc91eb80b4f2f8bce" kindref="member">operator=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="77"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="78" refid="structterse_1_1ArchiveOffset_1aa0f6269ce0f6e1b3cc6bba74b56c23f8" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1aa0f6269ce0f6e1b3cc6bba74b56c23f8" kindref="member">ArchiveOffset</ref>(<ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&&<sp/>rhs)<sp/>:<sp/><ref refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" kindref="member">position</ref>{},<sp/><ref refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" kindref="member">value</ref>{},<sp/><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>{nullptr}<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" kindref="member">position</ref>,<sp/>rhs.position);</highlight></codeline>
|
|
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" kindref="member">value</ref>,<sp/>rhs.value);</highlight></codeline>
|
|
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>,<sp/>rhs.proxy);</highlight></codeline>
|
|
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>proxy<sp/>with<sp/>new<sp/>address</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>!=<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>-><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref><sp/>=<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="87"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="88" refid="structterse_1_1ArchiveOffset_1ad758bf1b3d15dadef2f3cb7514bdef29" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&<sp/><ref refid="structterse_1_1ArchiveOffset_1ad758bf1b3d15dadef2f3cb7514bdef29" kindref="member">operator=</ref>(<ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset</ref>&&<sp/>rhs)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1ad06792700f0b4003ebfc268d0afbc999" kindref="member">position</ref>,<sp/>rhs.position);</highlight></codeline>
|
|
|
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1a142797b061f46c5cd9f064d9c5ddfe1f" kindref="member">value</ref>,<sp/>rhs.value);</highlight></codeline>
|
|
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(<ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>,<sp/>rhs.proxy);</highlight></codeline>
|
|
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>proxy<sp/>with<sp/>new<sp/>address</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref><sp/>!=<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structterse_1_1ArchiveOffset_1aa3cd7ea88f8916cb537d92f7973c91db" kindref="member">proxy</ref>-><ref refid="structterse_1_1ArchiveOffset_1_1Proxy_1a5dbdae14a3bc2bd79b94b0ed931c8701" kindref="member">target</ref><sp/>=<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
|
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
|
|
<codeline lineno="98"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="99"><highlight class="normal">};</highlight></codeline>
|
|
|
|
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="101"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>TOffset></highlight></codeline>
|
|
|
|
<codeline lineno="102" refid="namespaceterse_1a5f934959bc76f0549863cf7c0f1b8016" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">ArchiveOffset<TOffset>::Proxy</ref><sp/><ref refid="namespaceterse_1a5f934959bc76f0549863cf7c0f1b8016" kindref="member">proxy</ref>(<ref refid="structterse_1_1ArchiveOffset" kindref="compound">ArchiveOffset<TOffset></ref>&<sp/>offset)<sp/>{</highlight></codeline>
|
|
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="structterse_1_1ArchiveOffset_1_1Proxy" kindref="compound">ArchiveOffset<TOffset>::Proxy</ref>{offset};</highlight></codeline>
|
|
|
|
<codeline lineno="104"><highlight class="normal">}</highlight></codeline>
|
|
|
|
<codeline lineno="105"><highlight class="normal"></highlight></codeline>
|
|
|
|
<codeline lineno="106"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>terse</highlight><highlight class="normal"></highlight></codeline>
|
|
|
|
</programlisting>
|
2022-12-02 21:35:01 +08:00
|
|
|
<location file="C:/source/MetaHuman-DNA-Calibration_clean/dnacalib/DNACalib/src/terse/types/ArchiveOffset.h"/>
|
2022-11-28 19:21:26 +08:00
|
|
|
</compounddef>
|
|
|
|
</doxygen>
|