-
Notifications
You must be signed in to change notification settings - Fork 2
/
Urho3D.natvis
143 lines (130 loc) · 5.87 KB
/
Urho3D.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
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
142
143
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Urho3D::PODVector<> -->
<Type Name = "Urho3D::PODVector<*>">
<DisplayString>{{ size={size_} [POD] }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">size_</Item>
<Item Name="[capacity]" ExcludeView="simple">capacity_</Item>
<ArrayItems>
<Size>size_</Size>
<ValuePointer>($T1*)buffer_</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<!-- Urho3D::Vector<> -->
<Type Name = "Urho3D::Vector<*>">
<DisplayString>{{ size={size_} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">size_</Item>
<Item Name="[capacity]" ExcludeView="simple">capacity_</Item>
<ArrayItems>
<Size>size_</Size>
<ValuePointer>($T1*)buffer_</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<!-- Urho3D::List<> -->
<Type Name="Urho3D::List<*>">
<DisplayString>{{ size={size_} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">size_</Item>
<LinkedListItems>
<Size>size_</Size>
<HeadPointer>head_</HeadPointer>
<NextPointer>next_</NextPointer>
<ValueNode>(*(List<$T1>::Node*)this).value_</ValueNode>
</LinkedListItems>
</Expand>
</Type>
<!-- Urho3D::RandomAccessIterator<> -->
<!-- Urho3D::RandomAccessConstIterator<> -->
<Type Name = "Urho3D::RandomAccessIterator<*>">
<AlternativeType Name="Urho3D::RandomAccessConstIterator<*>"/>
<SmartPointer Usage="Indexable">ptr_,na</SmartPointer>
<Expand>
<Item Name="[ptr]">ptr_</Item>
</Expand>
</Type>
<!-- Urho3D::HashMap<> -->
<Type Name="Urho3D::HashMap<*,*>">
<DisplayString>{{ size={ptrs_ ? (unsigned)(ptrs_[0]) : 0} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">ptrs_ ? (unsigned)(ptrs_[0]) : 0</Item>
<Item Name="[bucket_count]" ExcludeView="simple">ptrs_ ? (unsigned)(ptrs_[1]) : 0</Item>
<Item Name="[allocator]" ExcludeView="simple">allocator_</Item>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="pBucket" InitialValue="head_" />
<Loop>
<Break Condition="pBucket == tail_" />
<Item Name="{(*(Urho3D::HashMap<$T1,$T2>::Node*)pBucket).pair_.first_}">
(*(Urho3D::HashMap<$T1,$T2>::Node*)pBucket).pair_
</Item>
<Exec>pBucket = pBucket->next_</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<!-- Urho3D::HashMap<>::Iterator -->
<Type Name="Urho3D::HashMap<*,*>::Iterator">
<AlternativeType Name="Urho3D::HashMap<*,*>::ConstIterator"/>
<DisplayString>{((Urho3D::HashMap<$T1,$T2>::Node*)(ptr_))->pair_}</DisplayString>
<Expand>
<ExpandedItem>((Urho3D::HashMap<$T1,$T2>::Node*)(ptr_))->pair_</ExpandedItem>
</Expand>
</Type>
<!-- Urho3D::HashMap<>::KeyValue -->
<Type Name="Urho3D::HashMap<*,*>::KeyValue">
<DisplayString>{second_}</DisplayString>
<Expand>
<Item Name="[key]">first_</Item>
<Item Name="[value]">second_</Item>
</Expand>
</Type>
<!-- Urho3D::HashSet<> -->
<Type Name="Urho3D::HashSet<*>">
<DisplayString>{{ size={ptrs_ ? (unsigned)(ptrs_[0]) : 0} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">ptrs_ ? (unsigned)(ptrs_[0]) : 0</Item>
<Item Name="[bucket_count]" ExcludeView="simple">ptrs_ ? (unsigned)(ptrs_[1]) : 0</Item>
<Item Name="[allocator]" ExcludeView="simple">allocator_</Item>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="pBucket" InitialValue="head_"/>
<Variable Name="iIndex" InitialValue="0"/>
<Loop>
<Break Condition="pBucket == tail_" />
<Item Name="{iIndex}">
(*(Urho3D::HashSet<$T1>::Node*)pBucket).key_
</Item>
<Exec>pBucket = pBucket->next_</Exec>
<Exec>iIndex = iIndex + 1</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<!-- Urho3D::String -->
<Type Name="Urho3D::String">
<DisplayString Condition="buffer_">{buffer_,na}</DisplayString>
<DisplayString>invalid string</DisplayString>
</Type>
<!-- Urho3D::StringHash -->
<Type Name="Urho3D::StringHash">
<DisplayString>#{value_}</DisplayString>
</Type>
<!-- Urho3D::Variant -->
<Type Name="Urho3D::Variant">
<DisplayString Condition="type_==Urho3D::VAR_NONE">(none)</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_INT">(int) {value_.int_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_BOOL">(bool) {value_.bool_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_FLOAT">(float) {value_.float_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_DOUBLE">(double) {*(double*)&value_.float_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_STRING">(string) {*(Urho3D::String*)&value_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_VECTOR2">(vec2) {*(Urho3D::Vector2*)&value_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_VECTOR3">(vec3) {*(Urho3D::Vector3*)&value_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_VECTOR4">(vec4) {*(Urho3D::Vector4*)&value_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_QUATERNION">(quat) {*(Urho3D::Quaternion*)&value_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_VOIDPTR">(void*) {value_.ptr_}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_PTR">(ref) {*((Urho3D::WeakPtr<Urho3D::RefCounted>*)(&value_))}</DisplayString>
<DisplayString Condition="type_==Urho3D::VAR_RESOURCEREF">(resref) {*((Urho3D::ResourceRef*)(&value_))}</DisplayString>
</Type>
</AutoVisualizer>