28 #ifndef RTTR_PROPERTY_H_
29 #define RTTR_PROPERTY_H_
31 #include "rttr/detail/base/core_prerequisites.h"
32 #include "rttr/detail/misc/class_item_mapper.h"
50 class property_wrapper_base;
116 class RTTR_API property
124 bool is_valid() const RTTR_NOEXCEPT;
131 explicit operator
bool() const RTTR_NOEXCEPT;
150 bool is_readonly() const RTTR_NOEXCEPT;
160 bool is_static() const RTTR_NOEXCEPT;
169 bool is_enumeration() const RTTR_NOEXCEPT;
179 enumeration get_enumeration() const RTTR_NOEXCEPT;
197 type get_type() const RTTR_NOEXCEPT;
207 type get_declaring_type() const RTTR_NOEXCEPT;
220 bool set_value(instance
object, argument arg) const;
231 variant get_value(instance
object) const;
241 variant get_metadata(const variant& key) const;
248 bool operator==(const property& other) const RTTR_NOEXCEPT;
255 bool operator!=(const property& other) const RTTR_NOEXCEPT;
259 property(const detail::property_wrapper_base* wrapper) RTTR_NOEXCEPT;
262 friend T detail::create_item(const detail::class_item_to_wrapper_t<T>* wrapper);
264 friend T detail::create_invalid_item();
267 const detail::property_wrapper_base* m_wrapper;
272 #endif // RTTR_PROPERTY_H_