ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::lang::DbgTypeDemangler Class Reference

Description:

Retrieves human-readable names from C++ run-time type information.
This class is available only with debug-builds of ALib.

Module ALib Strings functor AppendableTraits<std::type_info,TChar,TAllocator> in debug-compilations, which internally makes use of this type. This allows appending the result of keyword typeid directly to AString instances.

Definition at line 24 of file dbgtypedemangler.inl.

Public Method Index:

ALIB_DLL DbgTypeDemangler (const std::type_info &typeInfo)
 
ALIB_DLL ~DbgTypeDemangler ()
 Destructor.
 
ALIB_DLL const char * Get ()
 

Protected Field Index:

bool failed
 If true, demangling failed.
 
const char * name
 The translated name.
 

Field Details:

◆ failed

bool alib::lang::DbgTypeDemangler::failed
protected

If true, demangling failed.

Definition at line 28 of file dbgtypedemangler.inl.

◆ name

const char* alib::lang::DbgTypeDemangler::name
protected

The translated name.

Definition at line 27 of file dbgtypedemangler.inl.

Constructor(s) / Destructor Details:

◆ DbgTypeDemangler()

ALIB_DLL alib::lang::DbgTypeDemangler::DbgTypeDemangler ( const std::type_info & typeInfo)

Constructor

Parameters
typeInfoThe information struct on the C++ type.

Method Details:

◆ Get()

ALIB_DLL const char * alib::lang::DbgTypeDemangler::Get ( )

Returns the demangled, human-readable name of the type which was provided in the constructor.

Returns
The demangled type name.

The documentation for this class was generated from the following file: