6 #define EA_HAVE_CPP11_INITIALIZER_LIST 1 8 #include <EASTL/vector_map.h> 9 #include <EASTL/vector_multimap.h> 10 #include <EASTL/utility.h> 11 #include <EASTL/string.h> 12 #include <EASTL/fixed_string.h> 13 #include <EASTL/vector_set.h> 14 #include <EASTL/vector.h> 20 template<
class FirstT,
class SecondT>
24 pair_type_helper<eastl::pair, FirstT, SecondT>(isolate, value);
42 template<
class T,
class...
Args>
53 template<
class T,
class...
Args>
57 auto vector = vector_type_helper<eastl::vector, T>(isolate, value);
58 eastl::vector_set<T,
Args...>
set;
59 for(
auto & i : vector) {
84 template<
class CharType,
int Length,
bool Overflow,
class Allocator>
85 struct CastToJS<eastl::fixed_string<CharType, Length, Overflow, Allocator>> {
87 return v8::String::NewFromUtf8(isolate, value.c_str(), v8::String::kNormalString, value.length());
91 template<
class CharType,
int Length,
bool Overflow,
class Allocator>
92 struct CastToNative<eastl::fixed_string<CharType, Length, Overflow, Allocator>> {
95 return eastl::fixed_string<CharType, Length, Overflow, Allocator>(*v8::String::Utf8Value(value));
101 template<
class T,
class... Rest>
110 template<
class T,
class... Rest>
116 template<
class A,
class B,
class... Rest>
117 struct CastToJS<eastl::vector_multimap<A, B, Rest...>> {
124 template<
class A,
class B,
class... Rest>
125 struct CastToJS<eastl::vector_map<A, B, Rest...>> {
137 template<
class T,
class... Rest>
internal::ArgsMatcher< InnerMatcher > Args(const InnerMatcher &matcher)
bool Value(const T &value, M matcher)
internal::KeyMatcher< M > Key(M inner_matcher)
const T & move(const T &t)
#define HANDLE_FUNCTION_VALUES