Teuchos_TypeNameTraits.hpp File Reference

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

#include "Teuchos_ConstTypeTraits.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 * >

Namespaces

namespace  Teuchos

Defines

#define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE)

Functions

TEUCHOS_LIB_DLL_EXPORT std::string Teuchos::demangleName (const std::string &mangledName)
 Demangle a C++ name if valid.
template<typename T >
std::string Teuchos::typeName (const T &t)
 Template function for returning the concrete type name of a passed-in object.
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.
 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 (int)
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (short int)
 Teuchos::TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION (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.


Define Documentation

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

Definition at line 121 of file Teuchos_TypeNameTraits.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 09:57:34 2011 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.3