28 #ifndef __RTTR_POLICY_H__
29 #define __RTTR_POLICY_H__
64 struct get_getter_policy
66 typedef return_as_copy type;
71 struct get_setter_policy
73 typedef set_value type;
78 struct bind_property_as_ptr_policy
81 struct return_reference_as_ptr_policy
84 struct discard_return_value_policy
89 template<
typename... T>
90 struct policy_list_impl {};
92 using policy_list = policy_list_impl<bind_property_as_ptr_policy,
93 return_reference_as_ptr_policy,
94 discard_return_value_policy>;
99 struct get_getter_policy<bind_property_as_ptr_policy>
101 typedef return_as_ptr type;
105 struct get_setter_policy<bind_property_as_ptr_policy>
107 typedef set_as_ptr type;
114 struct get_method_policy
116 typedef default_invoke type;
123 struct get_method_policy<return_reference_as_ptr_policy>
125 typedef return_as_ptr type;
131 struct get_method_policy<discard_return_value_policy>
133 typedef discard_return type;
138 RTTR_API extern return_as_copy default_property_policy;
160 #endif // __RTTR_POLICY_H__
RTTR_API detail::return_reference_as_ptr_policy return_reference_as_ptr
RTTR_API detail::bind_property_as_ptr_policy bind_property_as_ptr
#define RTTR_API
Definition: core_prerequisites.h:124
RTTR_API detail::discard_return_value_policy discard_return_value