30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 240: Expression List<br />

Window: Showing<br />

Overloads<br />

Using Programming Language Elements<br />

stands when a function is virtual. For example, assume that you have the<br />

following declarations:<br />

class Circle : public Shape {<br />

public:<br />

...<br />

virtual double area();<br />

virtual double area(int);<br />

double area(int, int);<br />

Figure 240 shows an expression list calling an overloaded function. It also<br />

shows a setter (mutator) that changes the size of the circle object. A final<br />

call to area shows the new value.<br />

If your object is instantiated from a class that is part of an inheritance hierarchy,<br />

<strong>TotalView</strong> shows you the hierarchy when you dive on the object. See<br />

Figure 241 on page 386.<br />

Using Programming Language<br />

Elements<br />

Using C and C++<br />

This section contains guidelines for using C and C++ in expressions.<br />

� You can use C-style (/* comment */) and C++-style (// comment) comments;<br />

for example:<br />

// This code fragment creates a temporary patch<br />

i = i + 2; /* Add two to i */<br />

� You can omit semicolons if the result isn’t ambiguous.<br />

� You can use dollar signs ($) in identifiers. However, we recommend that you<br />

do not use dollar signs in names created within the expression system.<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 385

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!