Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

Public Member Functions | Protected Attributes | List of all members

Class that holds type information for debugging purposes.  Returned by type_info_of(). More...

#include <type_info.h>

Public Member Functions

 type_info_ct ()
 Default constructor.
 
 type_info_ct (int)
 Constructor used for unknown_type_info_c.
 
void init (char const *type_encoding, size_t s, size_t rs)
 Construct a type_info_ct 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 M_type_size
 sizeof(T).
 
size_t M_type_ref_size
 sizeof(*T) or 0 when T is not a pointer (or a pointer to an incomplete type).
 
char const * M_name
 Encoded type of T (as returned by typeid(T).name()).
 
char const * M_dem_name
 Demangled type name of T.
 

Detailed Description

Class that holds type information for debugging purposes.  Returned by type_info_of().

Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.