SMACC2
Loading...
Searching...
No Matches
Classes | Functions
smacc2::utils Namespace Reference

Classes

struct  Bind
 
struct  Bind< 1 >
 
struct  Bind< 2 >
 
struct  Bind< 3 >
 
struct  Bind< 4 >
 

Functions

std::string cleanShortTypeName (const std::type_info &tinfo)
 
template<typename T >
std::string cleanShortTypeName ()
 

Function Documentation

◆ cleanShortTypeName() [1/2]

template<typename T >
std::string smacc2::utils::cleanShortTypeName ( )

◆ cleanShortTypeName() [2/2]

std::string smacc2::utils::cleanShortTypeName ( const std::type_info &  tinfo)

Definition at line 28 of file common.cpp.

29{
30 auto typeinfo = TypeInfo::getFromStdTypeInfo(tinfo);
31 auto nontemplatedfullclasname = typeinfo->getNonTemplatedTypeName();
32
33 std::vector<std::string> strs;
34 boost::split(strs, nontemplatedfullclasname, boost::is_any_of("::"));
35 std::string classname = strs.back();
36
37 return classname;
38}

References smacc2::introspection::TypeInfo::getFromStdTypeInfo().

Here is the call graph for this function: