Renesas M16C/6NN Manual de usuario Pagina 34

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 37
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 33
E8a Emulator Section 9 Applicable Tool Chain and Third-party Products
*.cpp
main()
{
class DerivedClass ClassObj;
ClassObj.DerivedFunc();
return;
}
void BaseClass::BaseFunc(void)
{
m_iBase = 0x1234;
}
void DerivedClass::DerivedFunc(void)
{
BaseFunc();
m_iDerive = 0x1234;
}
/////////////////////////////////////////////////////////
< Watch window registration example>
/////////////////////////////////////////////////////////
Case 1: If the PC value resides in the main() function
(1)"ClassObj.m_iBase" :
Cannot be referenced (*1)
(2)"ClassObj.__b_BaseClass.m_iBase" :
Can be referenced (*2)
(3)"ClassObj"
-"__b_BaseClass"
-"m_iBase" :
Can be referenced (*3)
-"m_iDerive"
-:
Expansion symbol
Case 2: If the PC value resides in the DerivedClass::DerivedFunc() function
(1)"m_iBase" :
Cannot be referenced (*4)
(2)"this->__b_BaseClass.m_iBase" :
Can be referenced (*5)
(3)"__b_BaseClass.m_iBase" :
Can be referenced (*5)
(4)"this"
-"*"
-"__b_BaseClass"
-"m_iBase" :
Can be referenced (*6)
-"m_iDerive"
(5)"__b_BaseClass"
-"m_iBase" : Can be referenced (*6)
REJ10J1640-0400
Rev.4.00 Page 31 of 31
/////////////////////////////////////////////////////////
Apr 30, 2010
Vista de pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37

Comentarios a estos manuales

Sin comentarios