GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
proxy_constructors.hpp
Go to the documentation of this file.
1// This file is distributed under the BSD License.
2// See "license.txt" for details.
3// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
4// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
5// http://www.chaiscript.com
6
7// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9
10
11#ifndef CHAISCRIPT_PROXY_CONSTRUCTORS_HPP_
12#define CHAISCRIPT_PROXY_CONSTRUCTORS_HPP_
13
14#include "proxy_functions.hpp"
15
16namespace chaiscript
17{
18 namespace dispatch
19 {
20 namespace detail
21 {
22
23 template<typename Class, typename ... Params >
25 {
26 auto call = dispatch::detail::Constructor<Class, Params...>();
27
28 return Proxy_Function(
30 }
31 }
32 }
33
34
46 template<typename T>
48 {
49 T *f = nullptr;
51 }
52
53}
54
55#endif
56
Object call(Vector t_params) const
Calls the function with the given set of parameters and returns the value;.
Definition proxy_functions.hpp:196
For any callable object.
Definition proxy_functions.hpp:637
Definition callable_traits.hpp:14
Proxy_Function build_constructor_(Class(*)(Params...))
Definition proxy_constructors.hpp:24
Classes and functions specific to the runtime dispatch side of ChaiScript. Some items may be of use t...
Definition callable_traits.hpp:13
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 constructor()
Generates a constructor function for use with ChaiScript.
Definition proxy_constructors.hpp:47
std::shared_ptr< B > make_shared(Arg &&... arg)
Definition chaiscript_defines.hpp:87
@ Class
Definition chaiscript_common.hpp:69
std::multimap< std::string, std::string > Params
Definition httplib.h:892
double f(const std::string &, double, bool) noexcept
Definition profile_cpp_calls_2.cpp:4
Definition parser.cc:9
Definition GameApi.h:42
Definition callable_traits.hpp:18