15 #ifndef SHAKA_EMBEDDED_MAPPING_ANY_H_ 16 #define SHAKA_EMBEDDED_MAPPING_ANY_H_ 33 static std::string
name() {
38 explicit Any(std::nullptr_t);
40 explicit Any(
const T& value) {
76 bool TryConvert(Handle<JsValue> value)
override;
77 ReturnVal<JsValue>
ToJsValue()
const override;
87 #endif // SHAKA_EMBEDDED_MAPPING_ANY_H_
bool FromJsValue(Handle< JsValue > source, T *dest)
bool TryConvertTo(T *result) const
static std::string name()
ReturnVal< JsValue > ToJsValue(T &&source)
proto::ValueType GetValueType(Handle< JsValue > value)
void Trace(memory::HeapTracer *tracer) const override
Any & operator=(const Any &)
ReturnVal< JsValue > ToJsValue() const override
Handle< T > handle() const
bool TryConvert(Handle< JsValue > value) override