|
| v8toolkit::CAST_TO_NATIVE (bool,{HANDLE_FUNCTION_VALUES;return static_cast< bool >(value->ToBoolean() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (long long,{HANDLE_FUNCTION_VALUES;return static_cast< long long >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (unsigned long long,{HANDLE_FUNCTION_VALUES;return static_cast< unsigned long long >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (long,{HANDLE_FUNCTION_VALUES;return static_cast< long >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (unsigned long,{HANDLE_FUNCTION_VALUES;return static_cast< unsigned long >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (int,{HANDLE_FUNCTION_VALUES;return static_cast< int >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (unsigned int,{HANDLE_FUNCTION_VALUES;return static_cast< unsigned int >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (short,{HANDLE_FUNCTION_VALUES;return static_cast< short >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (unsigned short,{HANDLE_FUNCTION_VALUES;return static_cast< unsigned short >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (char,{HANDLE_FUNCTION_VALUES;return static_cast< char >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (unsigned char,{HANDLE_FUNCTION_VALUES;return static_cast< unsigned char >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (wchar_t,{HANDLE_FUNCTION_VALUES;return static_cast< wchar_t >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (char16_t,{HANDLE_FUNCTION_VALUES;return static_cast< char16_t >(value->ToInteger() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (char32_t,{HANDLE_FUNCTION_VALUES;return static_cast< char32_t >(value->ToInteger() ->Value());}) |
|
template<class... Ts, std::size_t... Is> |
std::tuple< Ts... > | v8toolkit::cast_to_native_tuple_helper (v8::Isolate *isolate, v8::Local< v8::Array > array, std::tuple< Ts... >, std::index_sequence< Is... >) |
|
template<template< class, class > class ContainerTemplate, class FirstT , class SecondT > |
ContainerTemplate< FirstT, SecondT > | v8toolkit::pair_type_helper (v8::Isolate *isolate, v8::Local< v8::Value > value) |
|
| v8toolkit::CAST_TO_NATIVE (float,{HANDLE_FUNCTION_VALUES;return static_cast< float >(value->ToNumber() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (double,{HANDLE_FUNCTION_VALUES;return static_cast< double >(value->ToNumber() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (long double,{HANDLE_FUNCTION_VALUES;return static_cast< long double >(value->ToNumber() ->Value());}) |
|
| v8toolkit::CAST_TO_NATIVE (std::string,{HANDLE_FUNCTION_VALUES;return std::string(*v8::String::Utf8Value(value));}) |
|
template<template< class, class... > class VectorTemplate, class T , class... Rest> |
auto | v8toolkit::vector_type_helper (v8::Isolate *isolate, v8::Local< v8::Value > value) -> VectorTemplate< std::remove_reference_t< std::result_of_t< CastToNative< T >(v8::Isolate *, v8::Local< v8::Value >)>>, Rest... > |
|
template<template< class, class... > class SetTemplate, class T , class... Rest> |
auto | v8toolkit::set_type_helper (v8::Isolate *isolate, v8::Local< v8::Value > value) -> SetTemplate< std::remove_reference_t< std::result_of_t< CastToNative< T >(v8::Isolate *, v8::Local< v8::Value >)>>, Rest... > |
|
template<template< class, class, class... > class ContainerTemplate, class Key , class Value , class... Rest> |
ContainerTemplate< Key, Value, Rest... > | v8toolkit::map_type_helper (v8::Isolate *isolate, v8::Local< v8::Value > value) |
|
template<template< class, class, class... > class ContainerTemplate, class Key , class Value , class... Rest> |
ContainerTemplate< Key, Value, Rest... > | v8toolkit::multimap_type_helper (v8::Isolate *isolate, v8::Local< v8::Value > value) |
|
| v8toolkit::CAST_TO_JS (bool,{return v8::Boolean::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (char,{return v8::Integer::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (unsigned char,{return v8::Integer::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (wchar_t,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (char16_t,{return v8::Integer::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (char32_t,{return v8::Integer::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (short,{return v8::Integer::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (int,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (unsigned int,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (long,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (long long,{return v8::Number::New(isolate, static_cast< double >(value));}) |
|
| v8toolkit::CAST_TO_JS (unsigned long long,{return v8::Number::New(isolate, static_cast< double >(value));}) |
|
| v8toolkit::CAST_TO_JS (float,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (double,{return v8::Number::New(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (std::string,{return v8::String::NewFromUtf8(isolate, value.c_str(), v8::String::kNormalString, value.length());}) |
|
| v8toolkit::CAST_TO_JS (char *,{return v8::String::NewFromUtf8(isolate, value);}) |
|
| v8toolkit::CAST_TO_JS (char const *,{return v8::String::NewFromUtf8(isolate, value);}) |
|
template<template< class, class, class... > class MapTemplate, class KeyType , class ValueType , class ReferenceTypeIndicator , class... Rest> |
v8::Local< v8::Value > | v8toolkit::cast_to_js_map_helper (v8::Isolate *isolate, MapTemplate< KeyType, ValueType, Rest... > const &map) |
|
template<template< class... > class VectorTemplate, class ValueType , class... Rest> |
v8::Local< v8::Value > | v8toolkit::cast_to_js_vector_helper (v8::Isolate *isolate, VectorTemplate< std::remove_reference_t< ValueType >, Rest... > const &vector) |
|
template<template< class, class, class... > class MultiMapLike, class A , class B , class... Rest> |
v8::Local< v8::Object > | v8toolkit::casttojs_multimaplike (v8::Isolate *isolate, MultiMapLike< A, B, Rest... > const &map) |
|