The list that defines a member has a name component and sublist within the list. This sublist defines a
type transformation expression. This expression tells TotalView what it needs to know to locate the member. The example in the previous section used two of the six possible expressions. The following list describes these expressions:
No transformation occurs. The structure or class member that TotalView displays is the same as it displays if you hadn’t used a transformation. This is most often used for simple data types such as ints and floats.
Dereferences a pointer. If the data element is a pointer to an element, this expression tells TotalView to dereference the pointer and display the dereferenced information.
Names a subelement of a structure. This is used in the same way as the dot operator that exists in C and C++. You must type a space before and after the dot operator.
Use the data whose location is an offset away from expr. This behaves just like pointer arithmetic in C and C++. The result is calculated based on the size of the type that
expr points to:
result = expr + sizeof(*expr) * offset
Names a subelement in a structure accessed using a pointer. This is used in the same way as the
-> operator in C and C++. You must type a space before and after the
-> operator.
The example in this section changes the structure elements of the example in the previous section so that they are now class members. In addition, this example contains a class that is derived from a second class:
Figure 8 shows the Variables Windows that TotalView displays for the
info class and the
x struct.