Shaka Player Embedded
|
#include <struct.h>
Public Member Functions | |
virtual | ~FieldConverterBase () |
virtual void | SearchAndStore (Struct *dict, Handle< JsObject > object)=0 |
virtual void | AddToObject (const Struct *dict, Handle< JsObject > object) const =0 |
virtual void | Trace (const Struct *dict, memory::HeapTracer *tracer) const =0 |
Defines a base class for a field converter. This represents a member of a struct and will convert the JavaScript object member to the respective C++ object member, and vice versa.
There needs to be a non-templated base class because we store a vector of them in Struct and they have different (and only known in CreateFieldMember) types.
|
inlinevirtual |
|
pure virtual |
Stores the value of the field in the given object.
Implemented in shaka::impl::FieldConverter< Parent, Field >.
|
pure virtual |
Search the given object for a property with the name of the field this is converting. If found, try to convert it and store in the field.
Implemented in shaka::impl::FieldConverter< Parent, Field >.
|
pure virtual |
Traces the member on the given object.
Implemented in shaka::impl::FieldConverter< Parent, Field >.