mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Create phmap.natvis
This commit is contained in:
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<!-- VC 2015 -->
|
||||
<Type Name="phmap::flat_hash_set<*,*,*,*>">
|
||||
<AlternativeType Name="phmap::flat_hash_map<*,*,*,*,*>" />
|
||||
<AlternativeType 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::container_internal::map_slot_type<*,*>">
|
||||
<DisplayString>{value}</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="phmap::container_internal::raw_hash_set<*,*,*,*>::iterator">
|
||||
<DisplayString Condition="ctrl_ == 0">unset</DisplayString>
|
||||
<DisplayString Condition="!(*ctrl_ >= 0)">end()</DisplayString>
|
||||
<DisplayString>{*slot_,na}</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="spp::raw_hash_set<*,*,*,*>">
|
||||
<DisplayString Condition="row_current==0">end()</DisplayString>
|
||||
<DisplayString Condition="row_current->_group == -1">end()</DisplayString>
|
||||
<DisplayString>{*col_current}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem Condition="row_current->_group != -1">*col_current</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
</AutoVisualizer>
|
||||
Reference in New Issue
Block a user