ScummVM API documentation
asIScriptEngine Class Referenceabstract
Inheritance diagram for asIScriptEngine:
asCScriptEngine

Public Member Functions

virtual int AddRef () const =0
 
virtual int Release () const =0
 
virtual int ShutDownAndRelease ()=0
 
virtual int SetEngineProperty (asEEngineProp property, asPWORD value)=0
 
virtual asPWORD GetEngineProperty (asEEngineProp property) const =0
 
virtual int SetMessageCallback (const asSFuncPtr &callback, void *obj, asDWORD callConv)=0
 
virtual int ClearMessageCallback ()=0
 
virtual int WriteMessage (const char *section, int row, int col, asEMsgType type, const char *message)=0
 
virtual int SetJITCompiler (asIJITCompiler *compiler)=0
 
virtual asIJITCompilerGetJITCompiler () const =0
 
virtual int RegisterGlobalFunction (const char *declaration, const asSFuncPtr &funcPointer, asDWORD callConv, void *auxiliary=0)=0
 
virtual asUINT GetGlobalFunctionCount () const =0
 
virtual asIScriptFunctionGetGlobalFunctionByIndex (asUINT index) const =0
 
virtual asIScriptFunctionGetGlobalFunctionByDecl (const char *declaration) const =0
 
virtual int RegisterGlobalProperty (const char *declaration, void *pointer)=0
 
virtual asUINT GetGlobalPropertyCount () const =0
 
virtual int GetGlobalPropertyByIndex (asUINT index, const char **name, const char **nameSpace=0, int *typeId=0, bool *isConst=0, const char **configGroup=0, void **pointer=0, asDWORD *accessMask=0) const =0
 
virtual int GetGlobalPropertyIndexByName (const char *name) const =0
 
virtual int GetGlobalPropertyIndexByDecl (const char *decl) const =0
 
virtual int RegisterObjectType (const char *obj, int byteSize, asDWORD flags)=0
 
virtual int RegisterObjectProperty (const char *obj, const char *declaration, int byteOffset, int compositeOffset=0, bool isCompositeIndirect=false)=0
 
virtual int RegisterObjectMethod (const char *obj, const char *declaration, const asSFuncPtr &funcPointer, asDWORD callConv, void *auxiliary=0, int compositeOffset=0, bool isCompositeIndirect=false)=0
 
virtual int RegisterObjectBehaviour (const char *obj, asEBehaviours behaviour, const char *declaration, const asSFuncPtr &funcPointer, asDWORD callConv, void *auxiliary=0, int compositeOffset=0, bool isCompositeIndirect=false)=0
 
virtual int RegisterInterface (const char *name)=0
 
virtual int RegisterInterfaceMethod (const char *intf, const char *declaration)=0
 
virtual asUINT GetObjectTypeCount () const =0
 
virtual asITypeInfoGetObjectTypeByIndex (asUINT index) const =0
 
virtual int RegisterStringFactory (const char *datatype, asIStringFactory *factory)=0
 
virtual int GetStringFactoryReturnTypeId (asDWORD *flags=0) const =0
 
virtual int RegisterDefaultArrayType (const char *type)=0
 
virtual int GetDefaultArrayTypeId () const =0
 
virtual int RegisterEnum (const char *type)=0
 
virtual int RegisterEnumValue (const char *type, const char *name, int value)=0
 
virtual asUINT GetEnumCount () const =0
 
virtual asITypeInfoGetEnumByIndex (asUINT index) const =0
 
virtual int RegisterFuncdef (const char *decl)=0
 
virtual asUINT GetFuncdefCount () const =0
 
virtual asITypeInfoGetFuncdefByIndex (asUINT index) const =0
 
virtual int RegisterTypedef (const char *type, const char *decl)=0
 
virtual asUINT GetTypedefCount () const =0
 
virtual asITypeInfoGetTypedefByIndex (asUINT index) const =0
 
virtual int BeginConfigGroup (const char *groupName)=0
 
virtual int EndConfigGroup ()=0
 
virtual int RemoveConfigGroup (const char *groupName)=0
 
virtual asDWORD SetDefaultAccessMask (asDWORD defaultMask)=0
 
virtual int SetDefaultNamespace (const char *nameSpace)=0
 
virtual const char * GetDefaultNamespace () const =0
 
virtual asIScriptModuleGetModule (const char *module, asEGMFlags flag=asGM_ONLY_IF_EXISTS)=0
 
virtual int DiscardModule (const char *module)=0
 
virtual asUINT GetModuleCount () const =0
 
virtual asIScriptModuleGetModuleByIndex (asUINT index) const =0
 
virtual asIScriptFunctionGetFunctionById (int funcId) const =0
 
virtual int GetTypeIdByDecl (const char *decl) const =0
 
virtual const char * GetTypeDeclaration (int typeId, bool includeNamespace=false) const =0
 
virtual int GetSizeOfPrimitiveType (int typeId) const =0
 
virtual asITypeInfoGetTypeInfoById (int typeId) const =0
 
virtual asITypeInfoGetTypeInfoByName (const char *name) const =0
 
virtual asITypeInfoGetTypeInfoByDecl (const char *decl) const =0
 
virtual asIScriptContextCreateContext ()=0
 
virtual void * CreateScriptObject (const asITypeInfo *type)=0
 
virtual void * CreateScriptObjectCopy (void *obj, const asITypeInfo *type)=0
 
virtual void * CreateUninitializedScriptObject (const asITypeInfo *type)=0
 
virtual asIScriptFunctionCreateDelegate (asIScriptFunction *func, void *obj)=0
 
virtual int AssignScriptObject (void *dstObj, void *srcObj, const asITypeInfo *type)=0
 
virtual void ReleaseScriptObject (void *obj, const asITypeInfo *type)=0
 
virtual void AddRefScriptObject (void *obj, const asITypeInfo *type)=0
 
virtual int RefCastObject (void *obj, asITypeInfo *fromType, asITypeInfo *toType, void **newPtr, bool useOnlyImplicitCast=false)=0
 
virtual asILockableSharedBoolGetWeakRefFlagOfScriptObject (void *obj, const asITypeInfo *type) const =0
 
virtual asIScriptContextRequestContext ()=0
 
virtual void ReturnContext (asIScriptContext *ctx)=0
 
virtual int SetContextCallbacks (asREQUESTCONTEXTFUNC_t requestCtx, asRETURNCONTEXTFUNC_t returnCtx, void *param=0)=0
 
virtual asETokenClass ParseToken (const char *string, size_t stringLength=0, asUINT *tokenLength=0) const =0
 
virtual int GarbageCollect (asDWORD flags=asGC_FULL_CYCLE, asUINT numIterations=1)=0
 
virtual void GetGCStatistics (asUINT *currentSize, asUINT *totalDestroyed=0, asUINT *totalDetected=0, asUINT *newObjects=0, asUINT *totalNewDestroyed=0) const =0
 
virtual int NotifyGarbageCollectorOfNewObject (void *obj, asITypeInfo *type)=0
 
virtual int GetObjectInGC (asUINT idx, asUINT *seqNbr=0, void **obj=0, asITypeInfo **type=0)=0
 
virtual void GCEnumCallback (void *reference)=0
 
virtual void ForwardGCEnumReferences (void *ref, asITypeInfo *type)=0
 
virtual void ForwardGCReleaseReferences (void *ref, asITypeInfo *type)=0
 
virtual void SetCircularRefDetectedCallback (asCIRCULARREFFUNC_t callback, void *param=0)=0
 
virtual void * SetUserData (void *data, asPWORD type=0)=0
 
virtual void * GetUserData (asPWORD type=0) const =0
 
virtual void SetEngineUserDataCleanupCallback (asCLEANENGINEFUNC_t callback, asPWORD type=0)=0
 
virtual void SetModuleUserDataCleanupCallback (asCLEANMODULEFUNC_t callback, asPWORD type=0)=0
 
virtual void SetContextUserDataCleanupCallback (asCLEANCONTEXTFUNC_t callback, asPWORD type=0)=0
 
virtual void SetFunctionUserDataCleanupCallback (asCLEANFUNCTIONFUNC_t callback, asPWORD type=0)=0
 
virtual void SetTypeInfoUserDataCleanupCallback (asCLEANTYPEINFOFUNC_t callback, asPWORD type=0)=0
 
virtual void SetScriptObjectUserDataCleanupCallback (asCLEANSCRIPTOBJECTFUNC_t callback, asPWORD type=0)=0
 
virtual int SetTranslateAppExceptionCallback (asSFuncPtr callback, void *param, int callConv)=0
 

The documentation for this class was generated from the following file: