1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- flat map/set -->
<Type Name="phmap::flat_hash_set<*,*,*,*>">
<AlternativeType Name="phmap::flat_hash_map<*,*,*,*,*>" />
<DisplayString>{{size = {size_}}}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="1000" ExcludeView="Test">
<Variable Name="ctrl" InitialValue="ctrl_" />
<Variable Name="slot" InitialValue="slots_" />
<Variable Name="ctrl_end" InitialValue="ctrl_ + capacity_" />
<Variable Name="slot_end" InitialValue="slots_ + capacity_" />
<Size>size_</Size>
<Loop>
<Break Condition="slot == slot_end" />
<If Condition="*ctrl >= -1">
<Item>*slot,na</Item>
</If>
<Exec>++slot</Exec>
<Exec>++ctrl</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<!-- node map/set - only difference is the **slot instead of *slot -->
<Type Name="phmap::node_hash_set<*,*,*,*>">
<AlternativeType Name="phmap::node_hash_map<*,*,*,*,*>" />
<DisplayString>{{size = {size_}}}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="1000" ExcludeView="Test">
<Variable Name="ctrl" InitialValue="ctrl_" />
<Variable Name="slot" InitialValue="slots_" />
<Variable Name="ctrl_end" InitialValue="ctrl_ + capacity_" />
<Variable Name="slot_end" InitialValue="slots_ + capacity_" />
<Size>size_</Size>
<Loop>
<Break Condition="slot == slot_end" />
<If Condition="*ctrl >= -1">
<Item>**slot,na</Item>
</If>
<Exec>++slot</Exec>
<Exec>++ctrl</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="phmap::priv::map_slot_type<*,*>">
<DisplayString>{value}</DisplayString>
</Type>
<!-- flat map iterators -->
<Type Name="phmap::priv::raw_hash_set<*,*,*,*>::iterator">
<DisplayString Condition="ctrl_ == 0">unset</DisplayString>
<DisplayString Condition="!(*ctrl_ >= 0)">end()</DisplayString>
<DisplayString>{*slot_,na}</DisplayString>
</Type>
<!-- node map iterators - only difference is the **slot_ instead of * -->
<Type Name="phmap::priv::raw_hash_set<phmap::priv::NodeHashSetPolicy<*>,*,*,*>::iterator">
<DisplayString Condition="ctrl_ == 0">unset</DisplayString>
<DisplayString Condition="!(*ctrl_ >= 0)">end()</DisplayString>
<DisplayString>{**slot_,na}</DisplayString>
</Type>
<!-- parallel flat/node set -->
<Type Name="phmap::parallel_flat_hash_set<*,*,*,*,*,*>">
<AlternativeType Name="phmap::parallel_node_hash_set<*,*,*,*,*,*>" />
<DisplayString>{{size = ?}}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="1000" ExcludeView="Test">
<Variable Name="idx" InitialValue="0" />
<Variable Name="maxidx" InitialValue="$T5" />
<Variable Name="ctrl" InitialValue="sets_._Elems[0].set_.ctrl_" />
<Variable Name="slot" InitialValue="sets_._Elems[0].set_.slots_" />
<Variable Name="ctrl_end" InitialValue="sets_._Elems[0].set_.ctrl_" />
<Variable Name="slot_end" InitialValue="sets_._Elems[0].set_.slots_" />
<Exec>maxidx = 2 << maxidx</Exec>
<Loop>
<Break Condition="idx == maxidx" />
<Exec>ctrl = sets_._Elems[idx].set_.ctrl_</Exec>
<Exec>slot = sets_._Elems[idx].set_.slots_</Exec>
<Exec>ctrl_end = sets_._Elems[idx].set_.ctrl_ + sets_._Elems[idx].set_.capacity_</Exec>
<Exec>slot_end = sets_._Elems[idx].set_.slots_ + sets_._Elems[idx].set_.capacity_</Exec>
<Loop>
<Break Condition="slot == slot_end" />
<If Condition="*ctrl >= -1">
<Item>*slot,na</Item>
</If>
<Exec>++slot</Exec>
<Exec>++ctrl</Exec>
</Loop>
<Exec>++idx</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<!-- parallel flat/node map - only difference is $T6 instead of $T5 -->
<Type Name="phmap::parallel_flat_hash_map<*,*,*,*,*,*,*>">
<AlternativeType Name="phmap::parallel_node_hash_map<*,*,*,*,*,*,*>" />
<DisplayString>{{size = ?}}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="1000" ExcludeView="Test">
<Variable Name="idx" InitialValue="0" />
<Variable Name="maxidx" InitialValue="$T6" />
<Variable Name="ctrl" InitialValue="sets_._Elems[0].set_.ctrl_" />
<Variable Name="slot" InitialValue="sets_._Elems[0].set_.slots_" />
<Variable Name="ctrl_end" InitialValue="sets_._Elems[0].set_.ctrl_" />
<Variable Name="slot_end" InitialValue="sets_._Elems[0].set_.slots_" />
<Exec>maxidx = 2 << maxidx</Exec>
<Loop>
<Break Condition="idx == maxidx" />
<Exec>ctrl = sets_._Elems[idx].set_.ctrl_</Exec>
<Exec>slot = sets_._Elems[idx].set_.slots_</Exec>
<Exec>ctrl_end = sets_._Elems[idx].set_.ctrl_ + sets_._Elems[idx].set_.capacity_</Exec>
<Exec>slot_end = sets_._Elems[idx].set_.slots_ + sets_._Elems[idx].set_.capacity_</Exec>
<Loop>
<Break Condition="slot == slot_end" />
<If Condition="*ctrl >= -1">
<Item>*slot,na</Item>
</If>
<Exec>++slot</Exec>
<Exec>++ctrl</Exec>
</Loop>
<Exec>++idx</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="phmap::priv::parallel_hash_set<*,*,*,*,*,*,*>::iterator">
<DisplayString>{it_,na}</DisplayString>
</Type>
</AutoVisualizer>
|