Warning, /sdk/heaptrack/3rdparty/robin-map/tsl-robin-map.natvis is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="utf-8"?> 0002 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> 0003 <!-- Written in VC 2017 15.7 but is expected to be compatible with VC 2015 --> 0004 0005 <!-- Visualization that shows the index in the name column and the key-value pair in the value column --> 0006 <Type Name="tsl::robin_map<*>" Priority="Medium"> 0007 <AlternativeType Name="tsl::robin_set<*>"/> 0008 <DisplayString>{{ size={m_ht.m_nb_elements} }}</DisplayString> 0009 <Expand> 0010 <Item Name="[bucket_count]" IncludeView="detailed">m_ht.m_buckets_data._Mypair._Myval2._Mylast - m_ht.m_buckets_data._Mypair._Myval2._Myfirst</Item> 0011 <Item Name="[load_factor]" Condition="m_ht.m_buckets_data._Mypair._Myval2._Myfirst != m_ht.m_buckets_data._Mypair._Myval2._Mylast" IncludeView="detailed"> 0012 ((float)m_ht.m_nb_elements) / ((float)(m_ht.m_buckets_data._Mypair._Myval2._Mylast - m_ht.m_buckets_data._Mypair._Myval2._Myfirst)) 0013 </Item> 0014 <Item Name="[load_factor]" Condition="m_ht.m_buckets_data._Mypair._Myval2._Myfirst == m_ht.m_buckets_data._Mypair._Myval2._Mylast" IncludeView="detailed"> 0015 0 0016 </Item> 0017 <Item Name="[max_load_factor]" IncludeView="detailed">m_ht.m_max_load_factor</Item> 0018 <CustomListItems> 0019 <Variable Name="bucket" InitialValue="m_ht.m_buckets"/> 0020 0021 <Size>m_ht.m_nb_elements</Size> 0022 <Loop> 0023 <Item Condition="bucket->m_dist_from_ideal_bucket != -1">*bucket</Item> 0024 <Break Condition="bucket->m_last_bucket"/> 0025 <Exec>++bucket</Exec> 0026 </Loop> 0027 </CustomListItems> 0028 </Expand> 0029 </Type> 0030 0031 <!-- Visualization that shows the key in the name column and the key-value pair in the value column --> 0032 <Type Name="tsl::robin_map<*>" ExcludeView="ShowElementsByIndex" Priority="MediumHigh"> 0033 <DisplayString>{{ size={m_ht.m_nb_elements} }}</DisplayString> 0034 <Expand> 0035 <Item Name="[bucket_count]" IncludeView="detailed">m_ht.m_buckets_data._Mypair._Myval2._Mylast - m_ht.m_buckets_data._Mypair._Myval2._Myfirst</Item> 0036 <Item Name="[load_factor]" Condition="m_ht.m_buckets_data._Mypair._Myval2._Myfirst != m_ht.m_buckets_data._Mypair._Myval2._Mylast" IncludeView="detailed"> 0037 ((float)m_ht.m_nb_elements) / ((float)(m_ht.m_buckets_data._Mypair._Myval2._Mylast - m_ht.m_buckets_data._Mypair._Myval2._Myfirst)) 0038 </Item> 0039 <Item Name="[load_factor]" Condition="m_ht.m_buckets_data._Mypair._Myval2._Myfirst == m_ht.m_buckets_data._Mypair._Myval2._Mylast" IncludeView="detailed"> 0040 0 0041 </Item> 0042 <Item Name="[max_load_factor]" IncludeView="detailed">m_ht.m_max_load_factor</Item> 0043 <CustomListItems> 0044 <Variable Name="bucket" InitialValue="m_ht.m_buckets"/> 0045 0046 <Size>m_ht.m_nb_elements</Size> 0047 <Loop> 0048 <Item Condition="bucket->m_dist_from_ideal_bucket != -1" Name="[{reinterpret_cast<std::pair<$T1,$T2>*>(&bucket->m_value)->first}]">*bucket</Item> 0049 <Break Condition="bucket->m_last_bucket"/> 0050 <Exec>++bucket</Exec> 0051 </Loop> 0052 </CustomListItems> 0053 </Expand> 0054 </Type> 0055 0056 <Type Name="tsl::detail_robin_hash::robin_hash<*>::robin_iterator<*>"> 0057 <DisplayString>{*m_bucket}</DisplayString> 0058 <Expand> 0059 <ExpandedItem>*m_bucket</ExpandedItem> 0060 </Expand> 0061 </Type> 0062 0063 <Type Name="tsl::detail_robin_hash::bucket_entry<*>"> 0064 <DisplayString Condition="m_dist_from_ideal_bucket == -1">empty</DisplayString> 0065 <DisplayString Condition="m_dist_from_ideal_bucket != -1">{*reinterpret_cast<$T1*>(&m_value)}</DisplayString> 0066 <Expand> 0067 <ExpandedItem Condition="m_dist_from_ideal_bucket != -1">*reinterpret_cast<$T1*>(&m_value)</ExpandedItem> 0068 </Expand> 0069 </Type> 0070 0071 <Type Name="tsl::detail_robin_hash::bucket_entry<*>" IncludeView="MapHelper"> 0072 <DisplayString Condition="m_dist_from_ideal_bucket == -1">empty</DisplayString> 0073 <DisplayString Condition="m_dist_from_ideal_bucket != -1">{reinterpret_cast<$T1*>(&m_value)->second}</DisplayString> 0074 <Expand> 0075 <ExpandedItem Condition="m_dist_from_ideal_bucket != -1">*reinterpret_cast<$T1*>(&m_value)</ExpandedItem> 0076 </Expand> 0077 </Type> 0078 </AutoVisualizer>