Creating a struct Type Transformation
This section describes a type transformation that is used with the g++ std::list class. Here is how this class is defined:
template <class _Tp>
struct _List_node {
typedef void* _Void_pointer;
_Void_pointer _M_next;
_Void_pointer _M_prev;
_Tp _M_data;
};
This template definition does not contain information that TotalView can use to determine that object pointed to by the next and prev pointers are _List_node objects. Creating a transformation will allow TotalView to display this information in a more orderly way.