11#ifndef CHAISCRIPT_REGISTER_FUNCTION_HPP_
12#define CHAISCRIPT_REGISTER_FUNCTION_HPP_
52 template<
typename Ret,
typename ... Param>
62 template<
typename Ret,
typename Class,
typename ... Param>
71 template<
typename Ret,
typename Class,
typename ... Param>
74 auto call = dispatch::detail::Caller<
Ret,
Class, Param...>(t_func);
81 template<
typename T,
typename Class >
89#if (defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510) || (defined(_NOEXCEPT_TYPES_SUPPORTED) && _MSC_VER >= 1912)
90 template<
typename Ret,
typename ... Param>
93 auto fun_call = dispatch::detail::Fun_Caller<
Ret, Param...>(
func);
96 chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Proxy_Function_Callable_Impl<
Ret (Param...),
decltype(fun_call)>>(fun_call));
100 template<
typename Ret,
typename Class,
typename ... Param>
109 template<
typename Ret,
typename Class,
typename ... Param>
141 template<
typename T,
typename Q>
P func(int c, EveryApi &ev)
Definition test.cpp:59
Object call(Vector t_params) const
Calls the function with the given set of parameters and returns the value;.
Attribute getter Proxy_Function implementation.
Definition proxy_functions.hpp:724
Definition proxy_functions.hpp:196
For any callable object.
Definition proxy_functions.hpp:637
auto bind_first(Ret(*f)(P1, Param...), O &&o)
Definition bind_first.hpp:34
Namespace chaiscript contains every API call that the average user will be concerned with.
std::shared_ptr< dispatch::Proxy_Function_Base > Proxy_Function
Common typedef used for passing of any registered function in ChaiScript.
Definition proxy_functions.hpp:317
Proxy_Function fun(const T &t)
Creates a new Proxy_Function object from a free function, member function or data member.
Definition register_function.hpp:43
std::shared_ptr< B > make_shared(Arg &&... arg)
Definition chaiscript_defines.hpp:87
@ Class
Definition chaiscript_common.hpp:69
Definition GameApi_bm.cc:4579
Function_Signature< decltype(&T::operator())>::Signature Signature
Definition callable_traits.hpp:99
Definition callable_traits.hpp:53
Definition callable_traits.hpp:27
Definition callable_traits.hpp:40