Classes | Namespaces | Typedefs | Functions
PrettyType.hpp File Reference

Contains a pretty_type library to write types in a "pretty" format. More...

#include <boost/core/demangle.hpp>
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "Utilities/Requires.hpp"
#include "Utilities/TMPL.hpp"
#include "Utilities/TypeTraits.hpp"

Go to the source code of this file.

Classes

struct  pretty_type::stl_templates
 A list of type traits to check if something is an STL member. More...
 

Namespaces

 pretty_type
 Contains all functions that are part of PrettyType, used for printing types in a pretty manner.
 

Typedefs

using pretty_type::basics_map = detail::TemplateMap_t< char, signed char, unsigned char, wchar_t, char16_t, char32_t, int, unsigned int, long, unsigned long, long long, unsigned long long, short, unsigned short, float, double, long double, bool, std::string >
 typelist of basic types that can be pretty printed More...
 

Functions

template<typename T , typename Map = basics_map, typename KnownTemplates = stl_templates>
std::string pretty_type::get_name ()
 Returns a string with the prettiest typename known for the type T. More...
 
template<typename T >
std::string pretty_type::get_runtime_type_name (const T &x)
 Returns a string with the prettiest typename known for the runtime type of x. More...
 
std::string pretty_type::extract_short_name (std::string name)
 Extract the "short name" from a name, that is, the name without template parameters or scopes.
 
template<typename T >
std::string pretty_type::short_name ()
 Return the "short name" of a class, that is, the name without template parameters or scopes.
 

Detailed Description

Contains a pretty_type library to write types in a "pretty" format.