forked from HeliumProject/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoexp.dat
3336 lines (3225 loc) · 84.7 KB
/
autoexp.dat
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; AutoExp.Dat - templates for automatically expanding data
; Copyright(c) Microsoft Corporation. All Rights Reserved.
;---------------------------------------------------------------
;
; While debugging, Data Tips and items in the Watch and Variable
; windows are automatically expanded to show their most important
; elements. The expansion follows the format given by the rules
; in this file. You can add rules for your types or change the
; predefined rules.
;
; For good examples, read the rules in this file.
;
; To find what the debugger considers the type of a variable to
; be, add it to the Watch window and look at the Type column.
;
; An AutoExpand rule is a line with the name of a type, an equals
; sign, and text with replaceable parts in angle brackets. The
; part in angle brackets names a member of the type and an
; optional Watch format specifier.
;
; AutoExpand rules use the following syntax. The equals sign (=),
; angle brackets (<>), and comma are taken literally. Square
; brackets ([]) indicate optional items.
;
; type=[text]<member[,format]>...
;
; type Name of the type (may be followed by <*> for template
; types such as the ATL types listed below).
;
; text Any text.Usually the name of the member to display,
; or a shorthand name for the member.
;
; member Name of a member to display.
;
; format Watch format specifier. One of the following:
;
; Letter Description Sample Display
; ------ -------------------------- ------------ -------------
; d,i Signed decimal integer 0xF000F065,d -268373915
; u Unsigned decimal integer 0x0065,u 101
; o Unsigned octal integer 0xF065,o 0170145
; x,X Hexadecimal integer 61541,X 0X0000F065
; l,h long or short prefix for 00406042,hx 0x0c22
; d, i, u, o, x, X
; f Signed floating-point 3./2.,f 1.500000
; e Signed scientific-notation 3./2.,e 1.500000e+000
; g Shorter of e and f 3./2.,g 1.5
; c Single character 0x0065,c 'e'
; s Zero-terminated string pVar,s "Hello world"
; su Unicode string pVar,su "Hello world"
;
; For details of other format specifiers see Help under:
; "format specifiers/watch variable"
;
; The special format <,t> specifies the name of the most-derived
; type of the object. This is especially useful with pointers or
; references to a base class.
;
; If there is no rule for a class, the base classes are checked for
; a matching rule.
;
; There are some special entries allowed in the AutoExpand section:
; $BUILTIN is used to display more complex types that need to do more
; than just show a member variable or two.
; $ADDIN allows external DLLs to be added to display even more complex
; types via the EE Add-in API. The first argument is the DLL name, the
; second argument is the name of the export from the DLL to use. For
; further information on this API see the sample called EEAddIn.
;
; WARNING: if hexadecimal mode is on in the watch window, all numbers here are
; evaluated in hex, e.g. 42 becomes 0x42
[AutoExpand]
; from windef.h
tagPOINT =x=<x> y=<y>
tagRECT =top=<top> bottom=<bottom> left=<left> right=<right>
; from winuser.h
tagMSG =msg=<message,x> wp=<wParam,x> lp=<lParam,x>
; intrinsics
__m64 =<m64_i64,x>
__m128=$BUILTIN(M128)
__m128i=$BUILTIN(M128I)
__m128d=$BUILTIN(M128D)
; from afxwin.h
CDC =hDC=<m_hDC> attrib=<m_hAttribDC>
CPaintDC =<,t> hWnd=<m_hWnd>
CPoint =x=<x> y=<y>
CRect =top=<top> bottom=<bottom> left=<left> right=<right>
CSize =cx=<cx> cy=<cy>
CWnd =<,t> hWnd=<m_hWnd>
CWinApp =<,t> <m_pszAppName,s>
CWinThread =<,t> h=<m_hThread> proc=<m_pfnThreadProc>
; from afxcoll.h
CPtrList =cnt=<m_nCount>
; from afxstat_.h
CProcessLocalObject =<,t>
CThreadLocalObject =<,t>
; from afx.h
CArchiveException =cause=<m_cause>
CFile =hFile=<m_hFile> name=<m_strFileName.m_pchData,s>
CFileException =cause=<m_cause> OS Error=m_lOsError
CMemFile =pos=<m_nPosition> size=<m_nFileSize>
CObject =<,t>
CRuntimeClass =<m_lpszClassName,s>
CStdioFile =FILE*=<m_pStream> name=<m_strFilename.m_pchData,s>
CTimeSpan =time=<m_time>
CTime =time=<m_time>
; from afxcoll.h
CByteArray =count=<m_nCount>
CStringList =count=<m_nCount>
; same for all CXXXArray classes
; same for CXXXList
; same for CMapXXToXX
; various string classes from MFC & ATL
_com_error=<m_hresult,hr>
_bstr_t=<m_Data->m_wstr,su> (<m_Data->m_RefCount,u>)
_com_ptr_t<*>=<m_pInterface>
_LARGE_INTEGER=<QuadPart>
_ULARGE_INTEGER=<QuadPart>
ATL::CComPtr<*>=<p>
ATL::CComQIPtr<*>=<p>
tagVARIANT=$BUILTIN(VARIANT)
VARIANT=$BUILTIN(VARIANT)
_GUID=$BUILTIN(GUID)
; see EEAddIn sample for how to use these
;_SYSTEMTIME=$ADDIN(EEAddIn.dll,AddIn_SystemTime)
;_FILETIME=$ADDIN(EEAddIn.dll,AddIn_FileTime)
std::binder1st<*>= op=<op> value=<value>
std::binder2nd<*>= op=<op> value=<value>
std::less<*>=lessthan
std::greater<*>=greaterthan
_D3DBOX=<Left,u>, <Top,u>, <Right,u>, <Bottom,u>, <Front,u>, <Back,u>
_D3DRECT=<x1,u>, <y1,u>, <x2,u>, <y2,u>
_D3DVECTOR=<x,g>, <y,g>, <z,g>
D3DXCOLOR=<r,g>, <g,g>, <b,g>, <a,g>
D3DXPLANE=<a,g>, <b,g>, <c,g>, <d,g>
D3DXQUATERNION=<x,g>, <y,g>, <z,g>, <w,g>
D3DXVECTOR2=<x,g>, <y,g>
D3DVECTOR4=<x,g>, <y,g>, <z,g>, <w,g>
[Visualizer]
; This section contains visualizers for STL and ATL containers
; DO NOT MODIFY
ATL::CStringT<char,*>|CSimpleStringT<char,*>|ATL::CSimpleStringT<char,*>{
preview ([$e.m_pszData,s])
stringview ([$e.m_pszData,sb])
}
ATL::CStringT<wchar_t,*>|CSimpleStringT<wchar_t,*>|ATL::CSimpleStringT<wchar_t,*>|ATL::CStringT<unsigned short,*>|CSimpleStringT<unsigned short,*>|ATL::CSimpleStringT<unsigned short,*>{
preview ([$e.m_pszData,su])
stringview ([$e.m_pszData,sub])
}
ATL::CComBSTR{
preview ([$e.m_str,su])
stringview ([$e.m_str,sub])
}
; Many TR1 visualizers use nested #()s.
; Why not use #(foo, bar) instead of #(#(foo), #(bar))?
; The former alphabetically sorts its fields, while the latter does not.
;------------------------------------------------------------------------------
; std::tr1::reference_wrapper
;------------------------------------------------------------------------------
std::tr1::reference_wrapper<*>{
preview (
#if ($e._Callee._EEN_INDIRECT == 1) (
; For ordinary T, reference_wrapper<T> stores a T * _Callee._Ptr
; which is non-null. Actual references are previewed with what they
; refer to, so reference_wrapper<T> is previewed with dereferencing its
; stored pointer.
*$e._Callee._Ptr
) #else (
; When T is a pointer to function, pointer to member function,
; or pointer to data member type, reference_wrapper<T> stores a
; T _Callee._Object directly.
$e._Callee._Object
)
)
children (
#if ($e._Callee._EEN_INDIRECT == 1) (
; Actual references have the same children as what they refer to.
; Unfortunately, there appears to be no way to imitate this exactly.
; Therefore, we make reference_wrapper<T> appear to have a single
; child, its stored pointer, with a fake name of [ptr].
#([ptr] : $e._Callee._Ptr)
) #else (
; When T is a pointer to function, pointer to member function,
; or pointer to data member type, T has no children, so we make
; reference_wrapper<T> appear to have no children.
#array(expr: 0, size: 0)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::shared_ptr
;------------------------------------------------------------------------------
std::tr1::shared_ptr<*>{
preview (
; shared_ptr<T> stores a T * _Ptr .
#if ($e._Ptr == 0) (
; A default-constructed shared_ptr has a null _Ptr and a null _Rep,
; and is formally said to be empty.
; A shared_ptr constructed from a null pointer has a null _Ptr
; and a NON-null _Rep . It is formally said to own the null pointer.
; We preview both with "empty".
"empty"
) #else (
; Raw pointers are previewed with "<pointer value> <object>".
; auto_ptr is previewed with "auto_ptr <object>".
; Following these examples, shared_ptr is previewed with
; "shared_ptr <object> [N strong refs, M weak refs]".
#(
"shared_ptr ",
*$e._Ptr,
" [",
$e._Rep->_Uses,
#if ($e._Rep->_Uses == 1) (" strong ref") #else (" strong refs"),
#if ($e._Rep->_Weaks - 1 > 0) (
#(
", ",
$e._Rep->_Weaks - 1,
#if ($e._Rep->_Weaks - 1 == 1) (" weak ref") #else (" weak refs")
)
),
"]"
)
; Note: _Rep->_Uses counts how many shared_ptrs share ownership of the object,
; so we directly display it as the strong reference count.
; _Rep->_Weaks counts how many shared_ptrs and weak_ptrs share ownership of
; the "representation object" (or "control block"). All of the shared_ptrs are
; counted as a single owner. That is, _Weaks is initialized to 1, and when
; _Uses falls to 0, _Weaks is decremented. This avoids incrementing and decrementing
; _Weaks every time that a shared_ptr gains or loses ownership. Therefore,
; _Weaks - 1 is the weak reference count, the number of weak_ptrs that are observing
; the shared object.
)
)
children (
#if ($e._Ptr == 0) (
; We make empty shared_ptrs (and shared_ptrs that own
; the null pointer) appear to have no children.
#array(expr: 0, size: 0)
) #else (
#(
; We make shared_ptr appear to have a single child,
; its stored pointer, with a fake name of [ptr].
#([ptr] : $e._Ptr),
; Visualizers can't determine whether a shared_ptr has a custom deleter.
; Therefore, we also show the actual members.
; Look at what std::tr1::shared_ptr<T> > [actual members] > std::tr1::_Ptr_base<T> > _Rep points to.
; Default deleter: std::tr1::_Ref_count<T>
; Custom deleter: std::tr1::_Ref_count_d<T, D> > _Dtor
#([actual members] : [$e,!])
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::weak_ptr
;------------------------------------------------------------------------------
std::tr1::weak_ptr<*>{
preview (
#if ($e._Ptr == 0) (
"empty"
) #elif ($e._Rep->_Uses == 0) (
; weak_ptr is just like shared_ptr, except that a weak_ptr can be expired.
"expired"
) #else (
#(
"weak_ptr ",
*$e._Ptr,
" [",
$e._Rep->_Uses,
#if ($e._Rep->_Uses == 1) (" strong ref") #else (" strong refs"),
#if ($e._Rep->_Weaks - 1 > 0) (
#(
", ",
$e._Rep->_Weaks - 1,
#if ($e._Rep->_Weaks - 1 == 1) (" weak ref") #else (" weak refs")
)
),
"]"
)
)
)
children (
#if ($e._Ptr == 0) (
#array(expr: 0, size: 0)
) #elif ($e._Rep->_Uses == 0) (
; When a weak_ptr is expired, we make it appear to have no children.
#array(expr: 0, size: 0)
) #else (
#(
#([ptr] : $e._Ptr),
#([actual members] : [$e,!])
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::tuple
;------------------------------------------------------------------------------
; tuple is visualized like pair, except that we have to give fake names to tuple's children.
std::tr1::tuple<std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
"()"
)
children (
#array(expr: 0, size: 0)
)
}
std::tr1::tuple<*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value
)
)
}
std::tr1::tuple<*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value,
[5] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,*,*,std::tr1::_Nil,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value,
[5] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
[6] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,*,*,*,std::tr1::_Nil,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value,
[5] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
[6] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[7] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,*,*,*,*,std::tr1::_Nil>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value,
[5] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
[6] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[7] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[8] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value
)
)
}
std::tr1::tuple<*,*,*,*,*,*,*,*,*,*>{
preview (
#(
"(", $e._Impl._Value,
",", $e._Impl._Tail._Value,
",", $e._Impl._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
",", $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
")"
)
)
children (
#(
[0] : $e._Impl._Value,
[1] : $e._Impl._Tail._Value,
[2] : $e._Impl._Tail._Tail._Value,
[3] : $e._Impl._Tail._Tail._Tail._Value,
[4] : $e._Impl._Tail._Tail._Tail._Tail._Value,
[5] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Value,
[6] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[7] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[8] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value,
[9] : $e._Impl._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Tail._Value
)
)
}
;------------------------------------------------------------------------------
; std::tr1::array
;------------------------------------------------------------------------------
std::tr1::array<*>{
preview (
; An actual array is previewed with its address.
; array<T, N> is previewed like vector<T>.
#(
"[",
$e._EEN_SIZE,
"](",
#array(expr: $e._Elems[$i], size: $e._EEN_SIZE),
")"
)
)
children (
; Just like an actual array.
#array(expr: $e._Elems[$i], size: $e._EEN_SIZE)
)
}
std::tr1::_Array_iterator<*>|std::tr1::_Array_const_iterator<*>{
preview (
#if ($e._Idx == $e._EEN_SIZE) (
; array iterators are represented by _Ptr + _Idx,
; and they know how large their parent arrays are. Therefore, detecting
; end iterators is trivial.
"end"
) #else (
; Like vector iterators, array iterators are previewed with what they point to.
$e._Ptr[$e._Idx]
)
)
children (
#if ($e._Idx == $e._EEN_SIZE) (
; We make end iterators appear to have no children.
#array(expr: 0, size: 0)
) #else (
; An array iterator is conceptually a pointer, so we make it appear to store one.
#([ptr] : $e._Ptr + $e._Idx)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::function
;------------------------------------------------------------------------------
std::tr1::function<*>{
preview (
#if ($e._Impl == 0) (
; Detecting empty functions is trivial.
"empty"
) #else (
; The only thing that we can preview non-empty
; functions with is the fact that they are non-empty.
"full"
)
)
children (
#if ($e._Impl == 0) (
; We make empty functions appear to have no children.
#array(expr: 0, size: 0)
) #else (
; The callee is stored in (vaguely speaking) $e._Impl->_Callee._Object,
; but visualizers can't show this. Therefore, we show the actual members.
#([actual members] : [$e,!])
)
)
}
;------------------------------------------------------------------------------
; std::tr1::unordered_set
; std::tr1::unordered_multiset
; std::tr1::unordered_map
; std::tr1::unordered_multimap
;------------------------------------------------------------------------------
; See the stdext::hash_set visualizer.
;------------------------------------------------------------------------------
; std::tr1::basic_regex
;------------------------------------------------------------------------------
std::tr1::basic_regex<*>{
preview (
#if ($e._Rep == 0) (
; Default construction creates an empty basic_regex.
"empty"
) #elif ($e._EEN_VIS == 1) (
; By default, _ENHANCED_REGEX_VISUALIZER is defined to be 1 in debug and 0 in ship.
; When it is 1, basic_regex stores the string from which it was constructed.
; When it is 0, basic_regex stores only the resulting finite state machine.
$e._Visualization
) #else (
; basic_regex contains many static const flags, which would be shown in the preview by default.
; Its actual members are _Rep and _Traits. _Rep holds the finite state machine, so we
; use it to preview basic_regex. (It does contain some human-readable information.)
*$e._Rep
)
)
children (
#if ($e._Rep == 0) (
; We make empty basic_regexes appear to have no children.
#array(expr: 0, size: 0)
) #elif ($e._EEN_VIS == 1) (
; We want to hide those static const flags.
; We also want to give _Visualization a fake name.
#(
#([str] : $e._Visualization),
#(_Rep : $e._Rep),
#(_Traits : $e._Traits)
)
) #else (
; We want to hide those static const flags.
#(
_Rep : $e._Rep,
_Traits : $e._Traits
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::sub_match
;------------------------------------------------------------------------------
std::tr1::sub_match<char const *>|std::tr1::sub_match<wchar_t const *>|std::tr1::sub_match<unsigned short const *>{
preview (
; It would be nice if we could preview sub_match with its str().
; However, visualizers cannot handle strings represented by pointer pairs.
; Therefore, our preview contains more limited information.
#if ($e.matched) (
; If this sub_match participated in a match,
; we preview it with its length().
$e.second - $e.first
) #else (
; Otherwise, we preview it with its matched bool (i.e. "false").
; (Why not length() (i.e. "0")? It's meaningful to have
; matched == true and length() == 0.
"false"
)
)
children (
#(
; sub_match's three data members are public, but we list them here
; (a) to display matched before first and second, and
; (b) to gloss over the fact that sub_match derives from std::pair.
#(matched : $e.matched),
#(first : $e.first),
#(second : $e.second)
)
)
}
std::tr1::sub_match<std::_String_const_iterator<*> >{
preview (
#if ($e.matched) (
; We visualize ssub_match and wssub_match just like csub_match and wcsub_match,
; except that when determining the length(), we can't subtract iterators.
; We have to subtract their stored pointers.
$e.second._Myptr - $e.first._Myptr
) #else (
"false"
)
)
children (
#(
#(matched : $e.matched),
#(first : $e.first),
#(second : $e.second)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::match_results
;------------------------------------------------------------------------------
std::tr1::match_results<*>{
preview (
; A match_results object is empty iff its vector _Matches is empty.
#if ($e._Matches._Myfirst == $e._Matches._Mylast) (
"empty"
) #else (
; We preview a non-empty match_results object with its vector.
$e._Matches
)
)
children (
#if ($e._Matches._Myfirst == $e._Matches._Mylast) (
; We make empty match_results appear to have no children.
#array(expr: 0, size: 0)
) #else (
; As match_results has operator[](), prefix(), and suffix() member functions,
; we make it appear to directly contain [0], [1], [2], etc. elements,
; as well as [prefix] and [suffix] elements.
#(
#array(expr: $e._Matches._Myfirst[$i], size: $e._Matches._Mylast - $e._Matches._Myfirst),
#([prefix] : $e._Prefix),
#([suffix] : $e._Suffix)
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::mem_fn()
;------------------------------------------------------------------------------
; Note that when mem_fn() is given a data member pointer, it returns a _Call_wrapper<_Callable_pmd<*> > .
; Data member pointers themselves don't have useful previews, so we don't attempt to visualize this.
; When mem_fn() is given a member function pointer, it returns a _Mem_fn[N], which we can visualize.
std::tr1::_Mem_fn1<*>|std::tr1::_Mem_fn2<*>|std::tr1::_Mem_fn3<*>|std::tr1::_Mem_fn4<*>|std::tr1::_Mem_fn5<*>|std::tr1::_Mem_fn6<*>|std::tr1::_Mem_fn7<*>|std::tr1::_Mem_fn8<*>|std::tr1::_Mem_fn9<*>|std::tr1::_Mem_fn10<*>{
preview (
; We preview the functor returned by mem_fn() with its stored member function pointer.
$e._Callee._Object
)
children (
; Member function pointers have no children.
#array(expr: 0, size: 0)
)
}
;------------------------------------------------------------------------------
; std::tr1::regex_iterator
;------------------------------------------------------------------------------
std::tr1::regex_iterator<*>{
preview (
#if ($e._MyRe == 0) (
; We represent end-of-sequence regex_iterators with null regex pointers.
"end"
) #else (
; Dereferenceable regex_iterators return match_results when dereferenced,
; so we'll preview them with that.
$e._MyVal
)
)
children (
#if ($e._MyRe == 0) (
; We make end-of-sequence regex_iterators appear to have no children.
#array(expr: 0, size: 0)
) #else (
; For ease of understanding, we make dereferenceable regex_iterators
; appear to have data members with the "for exposition only" names from TR1.
#(
#([begin] : $e._Begin),
#([end] : $e._End),
#([pregex] : $e._MyRe),
#([flags] : $e._Flags),
#([match] : $e._MyVal)
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::regex_token_iterator
;------------------------------------------------------------------------------
std::tr1::regex_token_iterator<*>{
preview (
#if ($e._Res == 0) (
; We represent end-of-sequence regex_token_iterators with null result pointers.
"end"
) #else (
; Dereferenceable regex_token_iterators return *result when dereferenced,
; so we'll preview them with that.
*$e._Res
)
)
children (
#if ($e._Res == 0) (
; We make end-of-sequence regex_token_iterators appear to have no children.
#array(expr: 0, size: 0)
) #else (
; For ease of understanding, we make dereferenceable regex_token_iterators
; appear to have data members with the "for exposition only" names from TR1.
#(
#([position] : $e._Pos),
#([result] : $e._Res),
#([suffix] : $e._Suffix),
#([N] : $e._Cur),
#([subs] : $e._Subs)
)
)
)
}
;------------------------------------------------------------------------------
; std::tr1::bind()
;------------------------------------------------------------------------------
; STL functors are previewed with their names.
; They have no state, so they have no children.
std::plus<*>{
preview ( "plus" )
children ( #array(expr: 0, size: 0) )
}
std::minus<*>{
preview ( "minus" )
children ( #array(expr: 0, size: 0) )
}
std::multiplies<*>{
preview ( "multiplies" )
children ( #array(expr: 0, size: 0) )
}
std::divides<*>{
preview ( "divides" )
children ( #array(expr: 0, size: 0) )
}
std::modulus<*>{
preview ( "modulus" )
children ( #array(expr: 0, size: 0) )
}
std::negate<*>{
preview ( "negate" )
children ( #array(expr: 0, size: 0) )
}
std::equal_to<*>{
preview ( "equal_to" )
children ( #array(expr: 0, size: 0) )
}
std::not_equal_to<*>{
preview ( "not_equal_to" )
children ( #array(expr: 0, size: 0) )
}
std::greater<*>{
preview ( "greater" )
children ( #array(expr: 0, size: 0) )
}
std::less<*>{
preview ( "less" )
children ( #array(expr: 0, size: 0) )
}
std::greater_equal<*>{
preview ( "greater_equal" )
children ( #array(expr: 0, size: 0) )
}
std::less_equal<*>{
preview ( "less_equal" )
children ( #array(expr: 0, size: 0) )
}
std::logical_and<*>{
preview ( "logical_and" )
children ( #array(expr: 0, size: 0) )
}
std::logical_or<*>{
preview ( "logical_or" )
children ( #array(expr: 0, size: 0) )
}
std::logical_not<*>{
preview ( "logical_not" )
children ( #array(expr: 0, size: 0) )
}
; STL function pointer adaptors are previewed with "ptr_fun(<stored function pointer>)".
; Function pointers have no children, so the adaptors have no children.
std::pointer_to_unary_function<*>|std::pointer_to_binary_function<*>{
preview (
#(
"ptr_fun(",
$e._Pfun,
")"
)
)
children ( #array(expr: 0, size: 0) )
}
; STL negators are previewed with "not[12](<stored functor>)".
; They have a child with the fake name of [pred], so that the
; stored functor can be inspected.
std::unary_negate<*>{
preview (
#(
"not1(",
$e._Functor,
")"
)
)
children (
#([pred] : $e._Functor)
)
}
std::binary_negate<*>{
preview (
#(
"not2(",
$e._Functor,
")"
)
)
children (
#([pred] : $e._Functor)
)
}
; bind() placeholders are previewed with their names.
; They have no state, so they have no children.
std::tr1::_Ph<1>{
preview ( "_1" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<2>{
preview ( "_2" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<3>{
preview ( "_3" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<4>{
preview ( "_4" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<5>{
preview ( "_5" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<6>{
preview ( "_6" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<7>{
preview ( "_7" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<8>{
preview ( "_8" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<9>{
preview ( "_9" )
children ( #array(expr: 0, size: 0) )
}
std::tr1::_Ph<10>{
preview ( "_10" )
children ( #array(expr: 0, size: 0) )
}
; The functor returned by bind(f, t1, t2) is previewed with "bind(f, t1, t2)".
; It has children with the fake names of [f], [t1], [t2], etc.
std::tr1::_Bind<std::tr1::_Notforced,std::tr1::_Bind0<*> >{
preview (
#(