Teuchos_TypeNameTraits.hpp File Reference

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

#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 * >

Namespaces

namespace  Teuchos

Defines

#define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE)

Functions

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 demangled name of an 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 TypeNameTraits<TYPE> { \
public: \
  static std::string name() { return (#TYPE); } \
  static std::string concreteName( const TYPE& t2 ) { (void)t2; return name(); } \
} \

Definition at line 84 of file Teuchos_TypeNameTraits.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Oct 20 10:23:12 2009 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.1