Skip to content

Commit b2dd445

Browse files
committed
Add Period, InterestRate and InterestRateIndex types to the .natvis visualizer spec
1 parent 550de2d commit b2dd445

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

QuantLib.natvis

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,17 @@
4747
</ArrayItems>
4848
</Expand>
4949
</Type>
50+
51+
<Type Name="QuantLib::Period">
52+
<DisplayString>{length_} {units_,en}</DisplayString>
53+
</Type>
54+
55+
<Type Name="QuantLib::InterestRate">
56+
<DisplayString Condition="freqMakesSense_">{r_*100}% {comp_,en} {(Frequency)freq_,en}</DisplayString>
57+
<DisplayString Condition="!freqMakesSense_">{r_*100}% {comp_,en}</DisplayString>
58+
</Type>
59+
60+
<Type Name="QuantLib::InterestRateIndex">
61+
<DisplayString>{familyName_} {{{tenor_}}}</DisplayString>
62+
</Type>
5063
</AutoVisualizer>

0 commit comments

Comments
 (0)