123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?xml version="1.0" encoding="utf-8"?>
- <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
- <Type Name="boost::json::storage_ptr">
- <DisplayString Condition="i_==0">default</DisplayString>
- <DisplayString Condition="(i_&3)==1"> shared</DisplayString>
- <DisplayString Condition="(i_&3)==2"> trivial</DisplayString>
- <DisplayString Condition="(i_&3)==3"> shared, trivial</DisplayString>
- <DisplayString>non-owning</DisplayString>
- <Expand>
- <Item Name="[ refs ]" Condition="(i_&1)==1">((shared_resource*)(i_&~3))->refs</Item>
- <Item Name="[ resource ]" Condition="(i_&2)==1">(shared_resource*)(i_&~3)</Item>
- <Item Name="[ resource ]" Condition="(i_&2)!=1">(memory_resource*)(i_&~3)</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::detail::shared_resource_impl<*>">
- <DisplayString>$T1*</DisplayString>
- <Expand>
- <Item Name="[ refs ]">refs</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::monotonic_resource">
- <DisplayString>monotonic_resource</DisplayString>
- <Expand>
- <Item Name="[ free ]">head_->n</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::static_resource">
- <DisplayString>static_resource</DisplayString>
- <Expand>
- <Item Name="[ free ]">n_</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::value">
- <DisplayString Condition="sca_.k==kind::null">null</DisplayString>
- <DisplayString Condition="sca_.k==kind::bool_">{sca_.b}</DisplayString>
- <DisplayString Condition="sca_.k==kind::int64">{sca_.i}</DisplayString>
- <DisplayString Condition="sca_.k==kind::uint64">{sca_.u}u</DisplayString>
- <DisplayString Condition="sca_.k==kind::double_">{sca_.d}</DisplayString>
- <DisplayString Condition="sca_.k==kind::string">{((char*)(str_.impl_.p_.t+1)),[str_.impl_.p_.t->size]s}</DisplayString>
- <DisplayString Condition="sca_.k==kind::string+64">{((char*)(str_.impl_.k_.s)),[str_.impl_.k_.n]s}:</DisplayString>
- <DisplayString Condition="sca_.k==kind::string+128">{str_.impl_.s_.buf,[detail::string_impl::sbo_chars_-str_.impl_.s_.buf[detail::string_impl::sbo_chars_]]s}</DisplayString>
- <DisplayString Condition="sca_.k==kind::array">array [{arr_.t_->size}]</DisplayString>
- <DisplayString Condition="sca_.k==kind::object">object [{obj_.t_->size}]</DisplayString>
- <Expand>
- <ExpandedItem Condition="sca_.k==kind::string">str_</ExpandedItem>
- <ExpandedItem Condition="sca_.k==kind::string+64">str_</ExpandedItem>
- <ExpandedItem Condition="sca_.k==kind::string+128">str_</ExpandedItem>
- <ExpandedItem Condition="sca_.k==kind::array">arr_</ExpandedItem>
- <ExpandedItem Condition="sca_.k==kind::object">obj_</ExpandedItem>
- </Expand>
- </Type>
- <Type Name="boost::json::string">
- <DisplayString Condition="impl_.s_.k==kind::string">{((char*)(impl_.p_.t+1)),[impl_.p_.t->size]s}</DisplayString>
- <DisplayString Condition="impl_.s_.k==kind::string+64">{((char*)(impl_.k_.s)),[impl_.k_.n]s}:</DisplayString>
- <DisplayString Condition="impl_.s_.k==kind::string+128">{impl_.s_.buf,[detail::string_impl::sbo_chars_-impl_.s_.buf[detail::string_impl::sbo_chars_]]s}</DisplayString>
- <Expand>
- <!-- VFALCO Need to handle key string here -->
- <Item Name="[size]">impl_.s_.k==kind::string?impl_.p_.t->size:detail::string_impl::sbo_chars_-impl_.s_.buf[detail::string_impl::sbo_chars_]</Item>
- <Item Name="[capacity]">impl_.s_.k==kind::string?impl_.p_.t->capacity:detail::string_impl::sbo_chars_</Item>
- <Item Name="[storage]">sp_</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::array">
- <DisplayString>array [{t_->size}]</DisplayString>
- <Expand>
- <ArrayItems>
- <Size>t_->size</Size>
- <ValuePointer>((value*)(t_+1))</ValuePointer>
- </ArrayItems>
- <Item Name="[capacity]">t_->capacity</Item>
- <Item Name="[storage]">sp_</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::object">
- <DisplayString>object [{t_->size}]</DisplayString>
- <Expand>
- <ArrayItems>
- <Size>t_->size</Size>
- <ValuePointer>(boost::json::key_value_pair*)(t_+1)</ValuePointer>
- </ArrayItems>
- <Item Name="[capacity]">t_->capacity</Item>
- <Item Name="[storage]">sp_</Item>
- </Expand>
- </Type>
- <Type Name="boost::json::key_value_pair">
- <DisplayString Condition="value_.sca_.k==kind::null">{{ {key_,[len_]s}, null }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::bool_">{{ {key_,[len_]s}, {value_.sca_.b} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::int64">{{ {key_,[len_]s}, {value_.sca_.i} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::uint64">{{ {key_,[len_]s}, {value_.sca_.u} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::double_">{{ {key_,[len_]s}, {value_.sca_.d} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::string">{{ {key_,[len_]s}, {((char*)(value_.str_.impl_.p_.t+1)),[value_.str_.impl_.p_.t->size]s} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::string+128">{{ {key_,[len_]s}, {value_.str_.impl_.s_.buf,[detail::string_impl::sbo_chars_-value_.str_.impl_.s_.buf[detail::string_impl::sbo_chars_]]s} }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::array">{{ {key_,[len_]s}, array [{value_.arr_.t_->size}] }}</DisplayString>
- <DisplayString Condition="value_.sca_.k==kind::object">{{ {key_,[len_]s}, object [{value_.obj_.t_->size}] }}</DisplayString>
- <Expand>
- <ExpandedItem>&this->value_</ExpandedItem>
- </Expand>
- </Type>
- </AutoVisualizer>
|