Skip to content

Struct jac::ReadableProtoBuilder

ClassList > jac > ReadableProtoBuilder

Inherits the following classes: jac::ProtoBuilder::Opaque, jac::ProtoBuilder::Properties

Public Types inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
typedef T OpaqueType

Public Static Attributes inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
JSClassID classId

Public Static Functions

Type Name
void addProperties (ContextRef ctx, Object proto)

Public Static Functions inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
void addMethodMember (ContextRef ctx, Object proto, std::string name, PropFlags flags=PropFlags::Default)
Add a property to the object prototype from a member function of the wrapped class.
void addPropMember (ContextRef ctx, Object proto, std::string name, PropFlags flags=PropFlags::Default)
Add a property to the object prototype from a member variable of the wrapped class.
Value callMember (ContextRef ctx, ValueWeak funcObj, ValueWeak thisVal, std::vector< ValueWeak > argv)
Process a call to a member function of the wrapped class.
T * constructOpaque (ContextRef, std::vector< ValueWeak >)
Construct a new Opaque object from javascript arguments.
void destroyOpaque (JSRuntime *, T * ptr) noexcept
Destroy the Opaque object.
T * getOpaque (ContextRef, ValueWeak thisVal)
Get the Opaque object from an instance of the class.

Public Static Functions inherited from jac::ProtoBuilder::Properties

See jac::ProtoBuilder::Properties

Type Name
void addProperties (ContextRef ctx, Object proto)
Add properties to the object prototype.

Public Static Functions Documentation

function addProperties

static inline void jac::ReadableProtoBuilder::addProperties (
    ContextRef ctx,
    Object proto
) 


The documentation for this class was generated from the following file src/jac/features/basicStreamFeature.h