42 #ifndef _TEUCHOS_TYPE_NAME_TRAITS_HPP_ 43 #define _TEUCHOS_TYPE_NAME_TRAITS_HPP_ 61 #if defined(__IBMCPP__) && ( __IBMCPP__ < 900 || __IBMCPP__ == 1210 ) 62 # define TEUCHOS_TYPE_NAME_TRAITS_OLD_IBM 91 #ifndef TEUCHOS_TYPE_NAME_TRAITS_OLD_IBM 116 #ifndef TEUCHOS_TYPE_NAME_TRAITS_OLD_IBM 143 #define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE) \ 145 class TypeNameTraits<TYPE> { \ 147 static std::string name() { return (#TYPE); } \ 148 static std::string concreteName(const TYPE&) { return name(); } \ 172 static std::string
name() {
return "string"; }
181 static std::string
name() {
return "void*"; }
194 static std::string
name() {
return "void"; }
199 #ifdef HAVE_TEUCHOS_COMPLEX 205 static std::string
name()
212 #endif // HAVE_TEUCHOS_COMPLEX 219 #endif // _TEUCHOS_TYPE_NAME_TRAITS_HPP_ static std::string concreteName(const T &t)
std::string typeName(const T &t)
Template function for returning the concrete type name of a passed-in object.
TEUCHOSCORE_LIB_DLL_EXPORT std::string demangleName(const std::string &mangledName)
Demangle a C++ name if valid.
static std::string concreteName(T_ptr)
UnConst< T >::Result NonConstType
static std::string concreteName(const std::string &)
static std::string concreteName(const std::string &)
static std::string name()
static std::string name()
std::string concreteTypeName(const T &t)
Template function for returning the type name of the actual concrete name of a passed-in object...
#define TEUCHOSCORE_LIB_DLL_EXPORT
TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(bool)
Default traits class that just returns typeid(T).name().
static std::string concreteName(const std::string &)
static std::string name()
static std::string name()
static std::string name()