Sirikata
Public Member Functions | Static Public Member Functions | Private Member Functions | Friends
Sirikata::JS::JSVisibleStruct Struct Reference

#include <JSVisibleStruct.hpp>

Inheritance diagram for Sirikata::JS::JSVisibleStruct:
Collaboration diagram for Sirikata::JS::JSVisibleStruct:

List of all members.

Public Member Functions

virtual ~JSVisibleStruct ()
v8::Handle< v8::Value > toString ()
v8::Handle< v8::Value > printData ()

Static Public Member Functions

static JSVisibleStructdecodeVisible (v8::Handle< v8::Value > senderVal, std::string &errorMessage)
static void visibleWeakReferenceCleanup (v8::Persistent< v8::Value > containsVisStruct, void *otherArg)
 Should be auto-called by v8 when the last emerson object with a reference to this struct has been garbage collected.

Private Member Functions

 JSVisibleStruct (EmersonScript *parent, JSAggregateVisibleDataPtr jspd, JSCtx *ctx)

Friends

class JSVisibleManager

Constructor & Destructor Documentation

Sirikata::JS::JSVisibleStruct::~JSVisibleStruct ( ) [virtual]
Sirikata::JS::JSVisibleStruct::JSVisibleStruct ( EmersonScript parent,
JSAggregateVisibleDataPtr  jspd,
JSCtx ctx 
) [private]

Member Function Documentation

JSVisibleStruct * Sirikata::JS::JSVisibleStruct::decodeVisible ( v8::Handle< v8::Value >  senderVal,
std::string &  errorMessage 
) [static]
v8::Handle< v8::Value > Sirikata::JS::JSVisibleStruct::printData ( )
v8::Handle< v8::Value > Sirikata::JS::JSVisibleStruct::toString ( )
void Sirikata::JS::JSVisibleStruct::visibleWeakReferenceCleanup ( v8::Persistent< v8::Value >  containsVisStruct,
void *  otherArg 
) [static]

Should be auto-called by v8 when the last emerson object with a reference to this struct has been garbage collected.

Frees memory associated with visStruct field in containsVisStruct. otherArg should be null.

References CHECK_INTERNAL_FIELD_COUNT, decodeVisible(), DEL_TYPEID_AND_CHECK, Sirikata::Logging::error, Sirikata::Logging::insane, JSLOG, TYPEID_FIELD, VISIBLE_FIELD_COUNT, VISIBLE_JSVISIBLESTRUCT_FIELD, and VISIBLE_TYPEID_STRING.

Referenced by Sirikata::JS::EmersonScript::createVisibleWeakPersistent().


Friends And Related Function Documentation

friend class JSVisibleManager [friend]

The documentation for this struct was generated from the following files: