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
93 #ifndef TEUCHOS_TYPE_NAME_TRAITS_OLD_IBM
118 #ifndef TEUCHOS_TYPE_NAME_TRAITS_OLD_IBM
145 #define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE) \
147 class TypeNameTraits<TYPE> { \
149 static std::string name() { return (#TYPE); } \
150 static std::string concreteName(const TYPE&) { return name(); } \
166 #ifdef HAVE_TEUCHOSCORE_QUADMATH
168 #endif // HAVE_TEUCHOSCORE_QUADMATH
170 #ifdef HAVE_TEUCHOS_LONG_DOUBLE
172 #endif // HAVE_TEUCHOS_LONG_DOUBLE
186 static std::string
name() {
return "string"; }
195 static std::string
name() {
return "void*"; }
208 static std::string
name() {
return "void"; }
213 #ifdef HAVE_TEUCHOS_COMPLEX
219 static std::string name()
221 static std::string concreteName(
const std::complex<T>&)
226 #endif // HAVE_TEUCHOS_COMPLEX
233 #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()