enumeration.h
Go to the documentation of this file.
The argument class is used for forwarding arguments to properties or methods.
Definition argument.h:52
The array_range class provides a view into an underlying data structure with lower and upper limits.
Definition array_range.h:64
variant get_metadata(const variant &key) const
Returns the meta data for the given key key.
type get_type() const noexcept
Returns the type object of this enumeration.
string_view value_to_name(argument value) const
Returns the string_view that is used as the name of the given enumeration value, or an empty string_v...
bool is_valid() const noexcept
Returns true if this enumeration is valid, otherwise false.
array_range< variant > get_values() const noexcept
Returns all enum values registered for this enumeration.
string_view get_name() const noexcept
Returns the declared name of this enumeration.
type get_underlying_type() const noexcept
Returns the underlying type (int, unsigned int, etc.) of this enumeration.
type get_declaring_type() const noexcept
Returns the type of the class or struct that declares this enumeration.
array_range< string_view > get_names() const noexcept
Returns all enum names registered for this enumeration.
variant name_to_value(string_view name) const
Returns the value of the given enumeration name, or an empty variant if the name is not defined.
The variant class allows to store data of any type and convert between these types transparently.
Definition variant.h:198
Definition access_levels.h:34
detail::enum_data< Enum_Type > value(string_view, Enum_Type value)
The value function should be used to add a mapping from enum name to value during the registration pr...
basic_string_view< char > string_view
A class to hold a reference to a continuous sequence of char objects.
Definition string_view.h:493
Generated on Thu Jul 3 2025 04:49:13 for rttr - 0.9.6 by doxygen.