-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
spp.natvis
41 lines (37 loc) · 1.65 KB
/
spp.natvis
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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- VC 2015 -->
<Type Name="spp::sparse_hash_set<*,*,*,*>">
<AlternativeType Name="spp::sparse_hash_map<*,*,*,*,*>" />
<DisplayString>{{size = {rep.table._num_buckets}}}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="1000" ExcludeView="Test">
<Variable Name="grp" InitialValue="rep.table._first_group" />
<Variable Name="last_grp" InitialValue="rep.table._last_group" />
<Variable Name="item_ptr" InitialValue="rep.table._first_group->_group" />
<Variable Name="cnt" InitialValue="-1" />
<Size>rep.table._num_buckets</Size>
<Loop>
<Break Condition="grp == last_grp" />
<Exec>item_ptr = grp->_group</Exec>
<Exec>cnt = grp->_num_buckets</Exec>
<Loop>
<Break Condition="cnt == 0" />
<Item>item_ptr,na</Item>
<Exec>item_ptr++</Exec>
<Exec>cnt--</Exec>
</Loop>
<Exec>++grp</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="spp::Two_d_iterator<*,*,*,*>">
<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>