Loading...
Searching...
No Matches
tmarshaling.inl
1#pragma once
2
5
6namespace by {
7
8#define TEMPL template <typename T, typename E>
9#define ME tmarshaling<tarr<T, E>, true>
10
11 TEMPL
12 tarr<T, E> ME::toNative(node& it) {
13 arr& cast = it.cast<arr>() OR.ret(tarr<T, E>());
14 return tarr<T, E>(cast);
15 }
16
17 TEMPL
18 template <typename E2> str ME::toMgd(E2* it) { return new arr(*it); }
19
20 TEMPL
21 const typename ME::mgd& ME::onAddParam() { return *new mgd(*new T()); }
22
23 TEMPL
24 const typename ME::mgd* ME::onGetRet() { return new mgd(*new T()); }
25
26#undef ME
27#undef TEMPL
28
29}
to Top