Yate
Public Member Functions
JsFunction Class Reference

Javascript Function. More...

#include <yatescript.h>

Inheritance diagram for JsFunction:
JsObject ScriptContext RefObject ExpExtender GenObject

List of all members.

Public Member Functions

 JsFunction (Mutex *mtx=0)
virtual bool runDefined (ObjList &stack, const ExpOperation &oper, GenObject *context)

Detailed Description

Javascript Function.

Javascript Function class, implements user defined functions


Constructor & Destructor Documentation

JsFunction ( Mutex mtx = 0) [inline]

Constructor

Parameters:
mtxPointer to the mutex that serializes this object

Member Function Documentation

virtual bool runDefined ( ObjList stack,
const ExpOperation oper,
GenObject context 
) [virtual]

Try to evaluate a single user defined method

Parameters:
stackEvaluation stack in use, parameters are popped off this stack and results are pushed back on stack
operFunction to evaluate
contextPointer to arbitrary object passed from evaluation methods
Returns:
True if evaluation succeeded

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