SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
pretty_type Namespace Reference

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

Classes

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

Typedefs

using basics_map
 typelist of basic types that can be pretty printed

Functions

template<typename T, typename Map = basics_map, typename KnownTemplates = stl_templates>
std::string get_name ()
 Returns a string with the prettiest typename known for the type T.
template<typename T>
std::string get_runtime_type_name (const T &x)
 Returns a string with the prettiest typename known for the runtime type of x.
template<typename T>
std::string short_name ()
 Return the "short name" of a class, that is, the name without template parameters or scopes.
template<typename List>
std::string list_of_names ()
 Return a comma separated list of the pretty_type::name of every type in a tmpl::list.
template<typename T>
std::string name ()
 Return the result of the name() member of a class. If a class doesn't have a name() member, call pretty_type::short_name<T>() instead.
template<typename T>
std::string name (const T &)
 Return the result of the name() member of a class. If a class doesn't have a name() member, call pretty_type::short_name<T>() instead.

Variables

template<typename... Types>
std::vector< std::stringvector_of_get_names (tmpl::list< Types... >)
 Return a vector of the pretty_type::get_name of every type in a tmpl::list.

Detailed Description

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