summaryrefslogtreecommitdiffstats
path: root/ml/dlib/tools/visual_studio_natvis/dlib.natvis
blob: 0c1c520607873e0f776f11040ece05004878ed51 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  <!-- dlib matrix debugger visualization in Visual Studio-->
  <!-- Johannes Huber, SAFEmine Part of Hexagon -->
  <!-- no warranty -->

  <!-- general dlib::matrix fixed size-->
   <Type Name="dlib::matrix&lt;*,*,*,*&gt;">
   <DisplayString>{{ size= &lt;{$T2}&gt; x &lt;{$T3}&gt; }}</DisplayString>
   <Expand>
      <ArrayItems>
         <Size>$T2 * $T3</Size>
         <ValuePointer>($T1*)data.data</ValuePointer>
      </ArrayItems>
   </Expand>
  </Type>

  <!-- general dlib::matrix fixed rows-->
  <Type Name="dlib::matrix&lt;*,0,*,*&gt;">
   <DisplayString>{{ size={data.nr_} x &lt;{$T2}&gt; }}</DisplayString>
   <Expand>
      <ArrayItems Condition="data.data != 0">
         <Size>data.nr_ * $T2</Size>
         <ValuePointer>($T1*)data.data</ValuePointer>
      </ArrayItems>
   </Expand>
  </Type>

  <!-- general dlib::matrix fixed cols-->
  <Type Name="dlib::matrix&lt;*,*,0,*&gt;">
   <DisplayString>{{ size= &lt;{$T2}&gt; x {data.nc_} }}</DisplayString>
   <Expand>
      <ArrayItems Condition="data.data != 0">
         <Size>$T2 * data.nc_</Size>
         <ValuePointer>($T1*)data.data</ValuePointer>
      </ArrayItems>
   </Expand>
  </Type>

  <!-- general dlib::matrix dynamic size-->
  <Type Name="dlib::matrix&lt;*,0,0,*&gt;">
   <DisplayString>{{ size= {data.nc_} x {data.nc_} }}</DisplayString>
   <Expand>
      <ArrayItems Condition="data.data != 0">
         <Size>data.nr_*data.nc_</Size>
         <ValuePointer>($T1*)data.data</ValuePointer>
      </ArrayItems>
   </Expand>
  </Type>

</AutoVisualizer>