Advertisement
tinyevil

Untitled

Dec 30th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <Type Name="octo::HashMap&lt;*&gt;">
  2. <DisplayString>{{ size={m.core.size} cap={m.core.capacity} }}</DisplayString>
  3. <Expand>
  4. <CustomListItems>
  5. <Variable Name="ctrl" InitialValue="m.core.ctrl"/>
  6. <Variable Name="cap" InitialValue="m.core.capacity"/>
  7. <Variable Name="index" InitialValue="0"/>
  8. <Variable Name="elem" InitialValue="reinterpret_cast&lt;octo::KeyValuePair&lt;$T1,$T2&gt;*&gt;((char*)ctrl+cap+1+octo::impl::hashtable::GroupSize)" />
  9. <Loop>
  10. <Break Condition="index==cap"/>
  11. <Item Name="[{elem[index].Key}]" Condition="(ctrl[index]&amp;0x80)==0">
  12. elem[index].Value
  13. </Item>
  14. <Exec>++index</Exec>
  15. </Loop>
  16. </CustomListItems>
  17. </Expand>
  18. </Type>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement