-
Notifications
You must be signed in to change notification settings - Fork 5
/
gapp.natvis
53 lines (48 loc) · 1.59 KB
/
gapp.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
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="gapp::detail::Matrix<*,*>">
<DisplayString>{{ {{ size = {nrows_}x{ncols_} }} }}</DisplayString>
<Expand>
<Item Name="[nrows]">nrows_</Item>
<Item Name="[ncols]">ncols_</Item>
<CustomListItems>
<Variable Name="row" InitialValue="0"/>
<Loop Condition="row < nrows_">
<Item Name="[row {row}]">&data_[row * ncols_],[ncols_]nag</Item>
<Exec>row++</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="gapp::small_vector<*,*,*>">
<DisplayString>{{ {{ size = { last_ - first_ }, capacity = { last_alloc_ - first_ } }} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>last_ - first_</Size>
<ValuePointer>first_</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="gapp::detail::dynamic_bitset">
<DisplayString>
{{ {{ size = { size_ }, capacity = { block_size * (blocks_.last_alloc_ - blocks_.first_) } }} }}
</DisplayString>
<Expand>
<IndexListItems>
<Size>size_</Size>
<ValueNode>(bool)(blocks_.first_[$i / block_size] & (block_type(1) << ($i % block_size)))</ValueNode>
</IndexListItems>
</Expand>
</Type>
<Type Name="gapp::detail::circular_buffer<*,*>">
<DisplayString>
{{ {{ size = { size_ }, capacity = { capacity_ } }} }}
</DisplayString>
<Expand>
<IndexListItems>
<Size>size_</Size>
<ValueNode>*(buffer_ + (first_ + $i >= capacity_ ? first_ + $i - capacity_ : first_ + $i))</ValueNode>
</IndexListItems>
</Expand>
</Type>
</AutoVisualizer>