Class that holds type information for debugging purposes. Returned by type_info_of().
#include <type_info.h>
Public Member Functions | |
| TypeInfo () | |
| Default constructor. | |
| TypeInfo (int) | |
| Constructor used for unknown_type_info_c. | |
| void | init (char const *type_encoding, size_t s, size_t rs) |
Construct a TypeInfo object for a type (T) with encoding type_encoding, size s and size of reference rs. | |
| char const * | demangled_name () const |
| The demangled type name. | |
| char const * | name () const |
| The encoded type name (as returned by typeid(T).name()). | |
| size_t | size () const |
| sizeof(T). | |
| size_t | ref_size () const |
| sizeof(*T) or 0 when T is not a pointer (or a pointer to an incomplete type). | |
Protected Attributes | |
| size_t | type_size_ |
| sizeof(T). | |
| size_t | dereferenced_type_size_ |
| sizeof(*T) or 0 when T is not a pointer (or a pointer to an incomplete type). | |
| char const * | name_ |
| Encoded type of T (as returned by typeid(T).name()). | |
| char const * | demangled_name_ |
| Demangled type name of T. | |