1 #ifndef SIPLASPLAS_REFLECTION_STATIC_FIELD_HPP 2 #define SIPLASPLAS_REFLECTION_STATIC_FIELD_HPP 4 #include <siplasplas/utility/meta.hpp> 9 namespace static_reflection
15 template<
typename SourceInfo,
typename F, F field>
18 #ifndef SIPLASPLAS_DOXYGEN_RUNNING 19 template<
typename SourceInfo_,
typename Class,
typename T, T Class::*field>
27 #endif // SIPLASPLAS_DOXYGEN_RUNNING 45 using decay_t = cpp::meta::decay_t<value_type>;
51 constexpr
Field() =
default;
56 static constexpr
type get()
71 return object.*_field;
84 return object.*_field;
88 static constexpr
type _field = field;
96 template<
typename FieldType, FieldType field>
99 static_reflection::meta::EmptySourceInfo<Field<FieldType, field>>,
117 template<
typename FieldType, FieldType field>
118 class Field :
public codegen::Field<FieldType, field>
124 #endif // SIPLASPLAS_REFLECTION_STATIC_FIELD_HPP
Definition: canary_allocator.hpp:7
Returns static reflection information of a given pointer to member object.
Definition: field.hpp:118