Functions
utl::TypeId Namespace Reference

Functions

string Demangle (const string &mangledName)
 
std::string Demangle (const std::string &mangledName)
 
template<typename T >
std::string MangledName ()
 
template<typename T >
std::string Name ()
 

Detailed Description

Helper for c++ typeid info

Tries to return demangled type names on platforms and compilers that support demangling.

template<typename T>
...
{
cout << "This function is called with " << TypeId::Name<T>() << endl;
}
Author
Darko Veberic

Function Documentation

string utl::TypeId::Demangle ( const string &  mangledName)

Definition at line 16 of file TypeId.cc.

References WARNING.

Referenced by det::VManager::Handle::GetTypeIdName(), and Name().

std::string utl::TypeId::Demangle ( const std::string &  mangledName)

Definition at line 16 of file TypeId.cc.

References WARNING.

Referenced by det::VManager::Handle::GetTypeIdName(), and Name().

template<typename T >
std::string utl::TypeId::MangledName ( )
inline

Definition at line 44 of file TypeId.h.

template<typename T >
std::string utl::TypeId::Name ( )
inline

Definition at line 35 of file TypeId.h.

References Demangle().

Referenced by G4TankSimulatorASCII::G4TankConstruction::AssembleTank().


, generated on Tue Sep 26 2023.