Shaka Player Embedded
Public Types | Static Public Member Functions | List of all members
shaka::JsObjectWrapper::Converter< Ret, typename > Struct Template Reference

#include <js_object_wrapper.h>

Public Types

using variant_type = typename AsyncResults< Ret >::variant_type
 
using future_type = std::shared_future< variant_type >
 

Static Public Member Functions

static variant_type Convert (const std::string &name, Handle< JsValue > result)
 

Detailed Description

template<typename Ret, typename = void>
struct shaka::JsObjectWrapper::Converter< Ret, typename >

A helper that converts a JavaScript value into the given return type as a variant. If the return type is |void|, this ignores the value.

Definition at line 57 of file js_object_wrapper.h.

Member Typedef Documentation

§ future_type

template<typename Ret, typename = void>
using shaka::JsObjectWrapper::Converter< Ret, typename >::future_type = std::shared_future<variant_type>

Definition at line 59 of file js_object_wrapper.h.

§ variant_type

template<typename Ret, typename = void>
using shaka::JsObjectWrapper::Converter< Ret, typename >::variant_type = typename AsyncResults<Ret>::variant_type

Definition at line 58 of file js_object_wrapper.h.

Member Function Documentation

§ Convert()

template<typename Ret, typename = void>
static variant_type shaka::JsObjectWrapper::Converter< Ret, typename >::Convert ( const std::string &  name,
Handle< JsValue >  result 
)
inlinestatic

Definition at line 61 of file js_object_wrapper.h.


The documentation for this struct was generated from the following file: