Shaka Player Embedded
Classes | Namespaces | Macros | Functions
convert_js.h File Reference
#include <cmath>
#include <limits>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
#include "shaka/optional.h"
#include "shaka/variant.h"
#include "src/mapping/backing_object.h"
#include "src/mapping/generic_converter.h"
#include "src/mapping/js_wrappers.h"
#include "src/util/templates.h"

Go to the source code of this file.

Classes

struct  shaka::impl::_number_identifier
 
struct  shaka::impl::_generic_converter_identifier
 
struct  shaka::impl::_callable_identifier
 
struct  shaka::impl::_SelectSpecialTypes< T, typename >
 
struct  shaka::impl::_SelectSpecialTypes< T, util::enable_if_t< util::is_number< T >::value > >
 
struct  shaka::impl::_SelectSpecialTypes< T, util::enable_if_t< std::is_base_of< GenericConverter, T >::value > >
 
struct  shaka::impl::_SelectSpecialTypes< T, util::enable_if_t< util::is_callable< T >::value > >
 
struct  shaka::impl::ConvertHelper< T, typename >
 
struct  shaka::impl::ConvertHelper< Number, _number_identifier >
 
struct  shaka::impl::ConvertHelper< T, _generic_converter_identifier >
 
struct  shaka::impl::ConvertHelper< shaka::optional< T >, void >
 
struct  shaka::impl::ConvertHelper< shaka::variant< Types... > >
 
struct  shaka::impl::ConvertHelper< std::vector< T >, void >
 
struct  shaka::impl::ConvertHelper< std::unordered_map< Key, Value >, void >
 
struct  shaka::impl::ConvertHelper< T *, void >
 
struct  shaka::impl::ConvertHelper< ReturnVal< T >, void >
 
struct  shaka::impl::ConvertHelper< Handle< JsObject >, void >
 
struct  shaka::impl::ConvertHelper< std::string, void >
 
struct  shaka::impl::ConvertHelper< bool, void >
 

Namespaces

 shaka
 
 shaka::impl
 

Macros

#define ADD_SPECIAL_TYPE(id, ...)
 

Functions

template<typename T >
bool shaka::FromJsValue (Handle< JsValue > source, T *dest)
 
template<typename T >
ReturnVal< JsValue > shaka::ToJsValue (T &&source)
 

Macro Definition Documentation

§ ADD_SPECIAL_TYPE

#define ADD_SPECIAL_TYPE (   id,
  ... 
)
Value:
template <typename T> \
struct _SelectSpecialTypes<T, util::enable_if_t<__VA_ARGS__>> { \
using type = id; \
}
ExceptionCode type

Definition at line 47 of file convert_js.h.