10.1.9 Pointers to Members
Pointers to members using the ".*" or "->*" operator can be refered only in the forms of variable
name .* member name or variable name ->* member name.
Example:
class T {
public:
int member;
};
class T t_cls;
class T *pt_cls = &t_cls;
int T::*mp = &T::member;
In this case, t_cls.*mp and tp_cls->*mp can correctly reference the variable of pointer-to-member type.
Note
•
Note that the expression *mp cannot considered as the variable of pointer-to-member type.
10.1.10 Parentheses
Use the '(' and ')' to specify priority of calculation within an expression.
10.1.11 Arrays
You can use the ' [ ' and ' ] ' to specify the elements of an array. You can code arrays as follows:
"variable_name [ (element_No or variable) ] ", "variable_name [ (element_No or variable) ]
[ (element_No or variable) ] ", etc.
10.1.12 Casting to Basic Types
You can cast to C basic types char, short, int, and long, and cast to the pointer types to these basic
types. When casting to a pointer type, you can also use pointers to pointers and pointers to pointers to
pointers, etc.
Note that if signed or unsigned is not specified, the default values are as follows:
Basic type
Default
char
unsigned
short
signed
int
signed
long
signed
Notes
•
Of the basic types of C++, casts to bool type, wchar_t type, and floating-point type (float or
double) cannot be used.
•
Casts to register variables cannot be used.
256
Содержание Emulator Debugger M16C PC4701
Страница 13: ...Setup of Debugger 1...
Страница 14: ...Blank Page 2...
Страница 73: ...Tutorial 59...
Страница 74: ...Blank Page 60...
Страница 95: ...Reference 81...
Страница 96: ...Blank Page 82...
Страница 119: ...7 Windows Dialogs When TRIGGER is selected Breaks for the status of signal input from external trace cable 105...
Страница 127: ...7 Windows Dialogs 7 7 6 1 1 Writing Reading a Specified Address Set as below Example Writing to even address 400h 113...
Страница 128: ...Example Writing byte length data 32h to even address 400h 114...
Страница 130: ...16 bits bus width 116...
Страница 132: ...2nd point 118...
Страница 133: ...7 Windows Dialogs 16 bits bus width 119...
Страница 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Страница 138: ...Example Writing byte length data 32h to even address 400h 124...
Страница 140: ...16 bits bus width 126...
Страница 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Страница 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Страница 146: ...Example Writing byte length data 32h to even address 400h 132...
Страница 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Страница 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Страница 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Страница 177: ...7 Windows Dialogs When TRIGGER is selected Measures for the status of signal input from external trace cable 163...
Страница 294: ...MEMO 280...