Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimTK::NiceTypeName< T > Struct Template Reference

In case you don't like the name you get from typeid(), you can specialize this class to provide a nicer name. More...

Static Public Member Functions

static const char * name ()
 The default implementation of name() here returns the raw result from typeid(T).name() which will be fast but may be a mangled name in some compilers (gcc and clang included). More...
 
static std::string namestr ()
 The default implementation of namestr() attempts to return a nicely demangled type name on all platforms, using the SimTK::demangle() method defined above. More...
 

Detailed Description

template<class T>
struct SimTK::NiceTypeName< T >

In case you don't like the name you get from typeid(), you can specialize this class to provide a nicer name.

This class is typically used for error messages and testing.

Member Function Documentation

template<class T >
static const char* SimTK::NiceTypeName< T >::name ( )
inlinestatic

The default implementation of name() here returns the raw result from typeid(T).name() which will be fast but may be a mangled name in some compilers (gcc and clang included).

template<class T >
static std::string SimTK::NiceTypeName< T >::namestr ( )
inlinestatic

The default implementation of namestr() attempts to return a nicely demangled type name on all platforms, using the SimTK::demangle() method defined above.

Don't expect this to be fast.


The documentation for this struct was generated from the following file: