30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 204: Displaying C++<br />

Classes That Use<br />

Inheritance<br />

For example, Figure 204 displays an object of a class c.<br />

Its definition is as follows:<br />

class b {<br />

char * b_val;<br />

public:<br />

b() {b_val = “b value“;}<br />

};<br />

class d : virtual public b {<br />

char * d_val;<br />

public:<br />

d() {d_val = “d value“;}<br />

};<br />

class e {<br />

char * e_val;<br />

public:<br />

e() {e_val = “e value“;}<br />

};<br />

class c : public d, public e {<br />

char * c_val;<br />

public:<br />

c() {c_val = “c value“;}<br />

};<br />

Displaying C++ Types<br />

<strong>TotalView</strong> tries to display the correct data when you change the type of a<br />

Variable Window while moving up or down the derivation hierarchy. Unfortunately,<br />

many compilers do not contain the information that <strong>TotalView</strong><br />

needs so you might need to cast your class.<br />

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

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

Saved successfully!

Ooh no, something went wrong!