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
Summary of Contents for Emulator Debugger M16C PC4701
Page 13: ...Setup of Debugger 1...
Page 14: ...Blank Page 2...
Page 73: ...Tutorial 59...
Page 74: ...Blank Page 60...
Page 95: ...Reference 81...
Page 96: ...Blank Page 82...
Page 128: ...Example Writing byte length data 32h to even address 400h 114...
Page 130: ...16 bits bus width 116...
Page 132: ...2nd point 118...
Page 133: ...7 Windows Dialogs 16 bits bus width 119...
Page 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Page 138: ...Example Writing byte length data 32h to even address 400h 124...
Page 140: ...16 bits bus width 126...
Page 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Page 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Page 146: ...Example Writing byte length data 32h to even address 400h 132...
Page 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Page 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Page 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Page 294: ...MEMO 280...