Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
Teuchos_TypeNameTraits.hpp File Reference

Defines basic traits returning the name of a type in a portable and readable way. More...

#include <typeinfo>
#include "Teuchos_ConfigDefs.hpp"
Include dependency graph for Teuchos_TypeNameTraits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Teuchos::TypeNameTraits< T >
 Default traits class that just returns typeid(T).name(). More...
 
class  Teuchos::TypeNameTraits< T * >
 
class  Teuchos::TypeNameTraits< std::string >
 
class  Teuchos::TypeNameTraits< void * >
 
class  Teuchos::TypeNameTraits< void >
 

Namespaces

 Teuchos
 

Macros

#define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE)
 

Functions

TEUCHOSCORE_LIB_DLL_EXPORT
std::string 
Teuchos::demangleName (const std::string &mangledName)
 Demangle a C++ name if valid. More...
 
template<typename T >
std::string Teuchos::typeName (const T &t)
 Template function for returning the concrete type name of a passed-in object. More...
 
template<typename T >
std::string Teuchos::concreteTypeName (const T &t)
 Template function for returning the type name of the actual concrete name of a passed-in object. More...
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (bool)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (char)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (signed char)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (unsigned char)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (short int)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (int)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (long int)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (unsigned short int)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (unsigned long int)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (float)
 
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (double)
 

Detailed Description

Defines basic traits returning the name of a type in a portable and readable way.

Definition in file Teuchos_TypeNameTraits.hpp.

Macro Definition Documentation

#define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (   TYPE)
Value:
template<> \
class TypeNameTraits<TYPE> { \
public: \
static std::string name() { return (#TYPE); } \
static std::string concreteName(const TYPE&) { return name(); } \
} \

Definition at line 113 of file Teuchos_TypeNameTraits.hpp.