Represents a reflected field. More...
#include <refl.hpp>
Public Types | |
typedef member::value_type | value_type |
![]() | |
typedef T | declaring_type |
typedef member::member_type | member_type |
typedef trait::as_type_list_t< std::remove_cv_t< decltype(member::attributes)> > | attribute_types |
Public Member Functions | |
template<typename... Args> | |
constexpr auto | operator() (Args &&... args) const noexcept -> decltype(invoker::invoke(std::forward< Args >(args)...)) |
Static Public Member Functions | |
template<decltype(nullptr) = nullptr> | |
static constexpr decltype(auto) | get () noexcept |
template<typename U > | |
static constexpr decltype(auto) | get (U &&target) noexcept |
Static Public Attributes | |
static constexpr bool | is_static { !std::is_member_object_pointer_v<decltype(member::pointer)> } |
static constexpr bool | is_writable { !std::is_const_v<value_type> } |
static constexpr auto | pointer { member::pointer } |
![]() | |
static constexpr type_descriptor< T > | declarator { } |
static constexpr auto | name { member::name } |
static constexpr auto | attributes { member::attributes } |
Additional Inherited Members | |
![]() | |
typedef refl_impl::metadata::type_info__< T >::template member< N > | member |
Represents a reflected field.
typedef member::value_type refl::descriptor::field_descriptor< T, N >::value_type |
Type value type of the member.
|
inlinestaticconstexprnoexcept |
Returns the value of the field. (for static fields).
|
inlinestaticconstexprnoexcept |
Returns the value of the field. (for instance fields).
|
inlineconstexprnoexcept |
A synonym for get().
|
staticconstexpr |
Whether the field is static or not.
|
staticconstexpr |
Whether the field is const or not.
|
staticconstexpr |
A member pointer to the reflected field of the appropriate type.