28 #ifndef RTTR_METHOD_H_
29 #define RTTR_METHOD_H_
31 #include "rttr/detail/base/core_prerequisites.h"
32 #include "rttr/detail/misc/class_item_mapper.h"
52 class method_wrapper_base;
120 class RTTR_API method
128 bool is_valid() const RTTR_NOEXCEPT;
135 explicit operator
bool() const RTTR_NOEXCEPT;
162 bool is_static() const RTTR_NOEXCEPT;
169 type get_return_type() const RTTR_NOEXCEPT;
179 type get_declaring_type() const RTTR_NOEXCEPT;
186 array_range<parameter_info> get_parameter_infos() const RTTR_NOEXCEPT;
203 variant get_metadata(const variant& key) const;
214 variant invoke(instance
object) const;
229 variant invoke(instance
object, argument arg1) const;
244 variant invoke(instance
object, argument arg1, argument arg2) const;
259 variant invoke(instance
object, argument arg1, argument arg2, argument arg3) const;
274 variant invoke(instance
object, argument arg1, argument arg2, argument arg3, argument arg4) const;
289 variant invoke(instance
object, argument arg1, argument arg2, argument arg3, argument arg4,
290 argument arg5) const;
305 variant invoke(instance
object, argument arg1, argument arg2, argument arg3, argument arg4,
306 argument arg5, argument arg6) const;
323 variant invoke_variadic(instance
object, std::vector<argument> args) const;
330 bool operator==(const method& other) const RTTR_NOEXCEPT;
337 bool operator!=(const method& other) const RTTR_NOEXCEPT;
340 method(const detail::method_wrapper_base* wrapper) RTTR_NOEXCEPT;
343 friend T detail::create_item(const detail::class_item_to_wrapper_t<T>* wrapper);
345 friend T detail::create_invalid_item();
348 const detail::method_wrapper_base* m_wrapper;
353 #endif // RTTR_METHOD_H_