Shaka Player Embedded
|
#include <any.h>
Public Member Functions | |
Any () | |
Any (std::nullptr_t) | |
template<typename T > | |
Any (const T &value) | |
~Any () override | |
Any (const Any &) | |
Any (Any &&) | |
Any & | operator= (const Any &) |
Any & | operator= (Any &&) |
bool | IsTruthy () const |
template<typename T > | |
bool | TryConvertTo (T *result) const |
bool | TryConvert (Handle< JsValue > value) override |
ReturnVal< JsValue > | ToJsValue () const override |
void | Trace (memory::HeapTracer *tracer) const override |
![]() | |
virtual | ~GenericConverter () |
![]() | |
virtual | ~Traceable () |
virtual bool | IsRootedAlive () const |
virtual bool | IsShortLived () const |
Static Public Member Functions | |
static std::string | name () |
Additional Inherited Members | |
![]() | |
static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
Defines any JavaScript value. This allows accepting any value and includes methods to convert to different types.
|
inlineexplicit |
|
default |
|
default |
bool shaka::Any::IsTruthy | ( | ) | const |
|
overridevirtual |
Converts the current value into a JavaScript value.
Implements shaka::GenericConverter.
|
overridevirtual |
Called during a GC run. This should call HeapTracer::Trace on all Traceable members. Be sure to call the base method when overriding.
Implements shaka::memory::Traceable.
|
overridevirtual |
Tries to convert the given value into the required type, populating the members of this object as needed.
Implements shaka::GenericConverter.
|
inline |