SpECTRE
v2025.03.17
|
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 = implementation defined |
typelist of basic types that can be pretty printed More... | |
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. More... | |
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. More... | |
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 . More... | |
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. More... | |
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. More... | |
Variables | |
template<typename... Types> | |
std::vector< std::string > | vector_of_get_names (tmpl::list< Types... >) |
Return a vector of the pretty_type::get_name of every type in a tmpl::list . | |
Contains all functions that are part of PrettyType, used for printing types in a pretty manner.