JeVois  1.17
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Name demangling functions

Name demangling functions return the original name of a type as written in the source code, as opposed to the name used internally by the compiler, which is mangled to avoid name conflicts and confusions across different namespaces, overloads, and such.

See http://en.wikipedia.org/wiki/Name_mangling for more information.

Collaboration diagram for Name demangling functions:

Functions

std::string jevois::demangle (std::string const &mangledName)
 Demangle a mangled name. More...
 
std::string jevois::demangle (char const *mangledName)
 Demangle a mangled name. More...
 
template<typename T >
std::string jevois::demangledName ()
 Get the demangled type name of type T. More...
 
template<>
std::string jevois::demangledName< std::string > ()
 Specialization for std::string to avoid getting an ugly name. More...
 

Function Documentation

◆ demangle() [1/2]

std::string jevois::demangle ( char const *  mangledName)

Demangle a mangled name.

◆ demangle() [2/2]

std::string jevois::demangle ( std::string const &  mangledName)

Demangle a mangled name.

Referenced by jevois::Component::className().

◆ demangledName()

template<typename T >
std::string jevois::demangledName ( )

Get the demangled type name of type T.

◆ demangledName< std::string >()

template<>
std::string jevois::demangledName< std::string > ( )

Specialization for std::string to avoid getting an ugly name.