Loading...
Searching...
No Matches
tbridgeCtor.hpp
Go to the documentation of this file.
1
2#pragma once
3
5#include "core/ast/params.hpp"
8
9namespace by {
14 template <typename T, template <typename, nbool> class Marshaling = tmarshaling, typename... Args>
16 : public tbridgeFunc<T, T, tifSub<typename tadaptiveSuper<T>::super, baseObj>::is, Marshaling, Args...> {
19
20 public:
21 tbridgeCtor(): super(nullptr) {}
22
23 public:
24 str _runNative(args& args) override { return _marshal(args, std::index_sequence_for<Args...>()); }
25
26 template <size_t... index> str _marshal(args& a, std::index_sequence<index...>) {
28 new T(Marshaling<Args, tifSub<Args, node>::is>::toNative(a[index])...));
29 }
30 };
31}
Function or object evaluation arguments.
Definition args.hpp:22
Base class for representing byeol objects.
Definition baseObj.hpp:73
Bridge constructor for C++ objects.
Definition tbridgeCtor.hpp:16
Definition tbridgeFunc.hpp:74
Definition tnarr.hpp:9
to Top