Inspect Manual

Using Inspect With C++
Inspect Manual429164-006
9-10
Overloaded Operators
The FROM clause can be used to specify which functions you want. In this example,
ctest1 is the source file for funct(void) and ctest2 is the source file for funct
(int) and funct (int,int).
Note that because there is only one function named #funct in source file ctest1,
Inspect can uniquely identify the function.
Overloaded Operators
Expression handling within Inspect does not support overloaded operators. Inspect
does allow you to set breakpoints in the overloaded operator. For example:
Static Data
Static data items have global scope in C++, which means that they are not allocated
within each object. Inspect will only display the data members that are local to that
object. This is source code followed by an example of displaying an object with static
data.
class Example_Class {
public:
int local_var1;
int local_var2;
-EDEMO-MATCH SCOPE funct
Program Procedures:
funct(void)
funct(int)
funct(int,int)
-EDEMO-BREAK #funct
Specified scope is ambiguous
[1] funct(void)
[2] funct(int)
[3] funct(int,int)
Which scope do you mean ([1], 2, ...)? 2
Num Type Subtype Location
1 Code #funct(int).#11
-EDEMO-LIST BREAK
Num Type Subtype Location
1 Code #funct(int).#11
-EDEMO-
-EDEMO-BREAK #funct FROM ctest1
Num Type Subtype Location
1 Code #funct(void).#4
-ETST1-BREAK #Cat::operator=
Num Type Subtype Location
1 Code #Cat::operator=(Cat&).#26
-ETST1-LIST BREAK
Num Type Subtype Location
1 Code #Cat::operator=(Cat&).#26
-ETST1-