Inspect Manual
Using Inspect With C++
Inspect Manual—429164-006
9-6
Default Values
specifies the entire object. When used in the INFO IDENTIFIER command,
identifier can also be the name of a structured object or user-defined data
type; identifier then specifies the entire object or the type definition.
data-reference '[' subscript-range ']'
specifies an array object.
subscript-range
specifies the subscript of an array element or the subscript range of a
group of array elements.
data-reference.identifier
specifies a field of a structure object.
data-reference->identifier
specifies a field of a structure referenced using a structure pointer.
*data-reference
specifies the value referenced by a pointer object.
Default Values
If you do not specify scope-path, Inspect uses the current scope path.
Usage Considerations
You must compile with the SYMBOLS pragma to use data-location.
A data location must specify a data object in an active scope unit.
Examples
Given a C++ function named class::funct that contains the object declaration int
nbytes, you can have these data location expressions:
Data Location Specifies
#class::funct.nbytes The most recent instance of nbytes.
#class::funct(-1).nbytes The second-most recent instance of nbytes.
#class::funct(1).nbytes The oldest (first) instance of nbytes.