-
Notifications
You must be signed in to change notification settings - Fork 19
/
sbtree.natvis
52 lines (52 loc) · 2.65 KB
/
sbtree.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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="size_balanced_tree<*>">
<DisplayString>{{ size={head_.root->parent->size} }}</DisplayString>
<Expand>
<Item Name="[comparator]" ExcludeView="simple">(*(key_compare *)head_.root)</Item>
<Item Name="[allocator]" ExcludeView="simple">(root_allocator_t &)head_</Item>
<Item Name="[allocator]" ExcludeView="simple">(*(node_allocator_t *)head_.root)</Item>
<TreeItems>
<Size>head_.root->parent->size</Size>
<HeadPointer>head_.root->parent</HeadPointer>
<LeftPointer>left</LeftPointer>
<RightPointer>right</RightPointer>
<ValueNode Condition="size != 0">((value_node_t *)this)->value</ValueNode>
</TreeItems>
</Expand>
</Type>
<Type Name="size_balanced_tree<*>::iterator">
<AlternativeType Name="size_balanced_tree<*>::const_iterator" />
<AlternativeType Name="size_balanced_tree<*>::reverse_iterator" />
<AlternativeType Name="size_balanced_tree<*>::const_reverse_iterator" />
<DisplayString Condition="node->size != 0">{((value_node_t *)node)->value}</DisplayString>
<DisplayString Condition="node->size == 0">end</DisplayString>
<Expand>
<Item Condition="node->size != 0" Name="[ptr]">((value_node_t *)node)->value</Item>
</Expand>
</Type>
<Type Name="size_balanced_tree<*>::node_t">
<DisplayString Condition="size != 0">{((value_node_t *)this)->value}</DisplayString>
<DisplayString Condition="size == 0">nil</DisplayString>
<Expand>
<Item Condition="size != 0" Name="[parent]">parent</Item>
<Item Condition="size != 0" Name="[left]">left</Item>
<Item Condition="size != 0" Name="[right]">right</Item>
<Item Condition="size != 0" Name="[size]">size</Item>
<Item Condition="size != 0" Name="[value]">((value_node_t *)this)->value</Item>
<Item Condition="size == 0" Name="[tree root]">parent</Item>
<Item Condition="size == 0" Name="[most left]">left</Item>
<Item Condition="size == 0" Name="[most right]">right</Item>
<Item Condition="size == 0" Name="[tree size]">parent->size</Item>
</Expand>
</Type>
<Type Name="size_balanced_tree<*>::head_t">
<DisplayString>{{ size={root->parent->size} }}</DisplayString>
<Expand>
<Item Name="[tree root]">root->parent</Item>
<Item Name="[most left]">root->left</Item>
<Item Name="[most right]">root->right</Item>
<Item Name="[tree size]">root->parent->size</Item>
</Expand>
</Type>
</AutoVisualizer>