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 * >
class  Teuchos::TypeNameTraits< std::complex< T > >

Namespaces

namespace  Teuchos
 The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.

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.


Generated on Wed Oct 21 14:27:36 2009 for Teuchos - Trilinos Tools Package by  doxygen 1.5.9