로딩중...
검색중...
일치하는것 없음
tbridgeCtor.hpp
이 파일의 문서화 페이지로 가기
1
2
#pragma once
3
4
#include "
core/ast/baseFunc.hpp
"
5
#include "
core/ast/params.hpp
"
6
#include "
core/bridge/cpp/marshaling/tmarshaling.hpp
"
7
#include "
core/bridge/cpp/tbridgeFunc.hpp
"
8
9
namespace
by {
14
template
<
typename
T,
template
<
typename
, n
bool
>
class
Marshaling = tmarshaling,
typename
... Args>
15
class
tbridgeCtor
16
:
public
tbridgeFunc
<T, T, tifSub<typename tadaptiveSuper<T>::super, baseObj>::is, Marshaling, Args...> {
17
typedef
tbridgeFunc<T, T, tifSub<typename tadaptiveSuper<T>::super
,
baseObj
>::is,
Marshaling
, Args...>
__super9
;
18
BY(ME(
tbridgeCtor
,
__super9
),
CLONE
(
tbridgeCtor
))
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...>) {
27
return
Marshaling<T*, tifSub<T, node>::is
>::toMgd(
28
new
T(
Marshaling
<Args,
tifSub<Args, node>::is
>::toNative(
a
[index])...));
29
}
30
};
31
}
baseFunc.hpp
by::args
Function or object evaluation arguments
Definition
args.hpp:22
by::baseObj
Base class for representing byeol objects
Definition
baseObj.hpp:73
by::tbridgeCtor
Bridge constructor for C++ objects
Definition
tbridgeCtor.hpp:16
by::tbridgeFunc
Definition
tbridgeFunc.hpp:74
by::tnarr
Definition
tnarr.hpp:9
params.hpp
tbridgeFunc.hpp
tmarshaling.hpp
to Top