|
Public Member Functions |
| virtual FUSION_EXPORT Object * | newObject () |
| virtual FUSION_EXPORT ResultType | initializeClass () |
| | Initialize this class.
|
| virtual FUSION_EXPORT ResultType | finalizeClass () |
| | Finalize this class before it is destroyed.
|
| virtual FUSION_EXPORT ResultType | initialize () |
| | Initialize this instance.
|
| virtual FUSION_EXPORT ResultType | finalize () |
| | Finalize this instance before it is destroyed.
|
| virtual FUSION_EXPORT ResultType | getProperty (const Id &id, Value &val) const |
| | Get a property of this object and place it in the passed value. Id can be a string or numeric property.
|
| virtual FUSION_EXPORT ResultType | setProperty (const Id &id, const Value &val) |
| | Set a property of this object to the passed value. Id can be a string or numeric property.
|
| virtual FUSION_EXPORT ResultType | callProperty (const Id &id, Value &retval) const |
| | Call the passed property of this object, which is assumed to be a function or callable object.
|
| virtual FUSION_EXPORT ResultType | callProperty (const Id &id, Value &retval, const Value &val) const |
| | Call the passed property of this object, which is assumed to be a function or callable object.
|
| virtual FUSION_EXPORT ResultType | callProperty (const Id &id, Value &retval, Args &args, int32_t nargs) const |
| | Call the passed property of this object, which is assumed to be a function or callable object.
|
| virtual FUSION_EXPORT Fusion::ResultType | preInitialize () |
| virtual FUSION_EXPORT ResultType | getValue (Value &s, HintType=HINT_NONE) const |
| | Get the value of this object.
|
| virtual FUSION_EXPORT ResultType | setValue (const Value &val) |
| | Set the value of this object to the passed value, if possible.
|
| virtual FUSION_EXPORT ResultType | toString (UTF8String &s) const |
| | Convert this object to a string.
|
| virtual FUSION_EXPORT double | getDouble () const |
| | Convert this object to a string.
|
| virtual FUSION_EXPORT IObject * | create () |
| virtual FUSION_EXPORT IObject * | create (const Value &val) |
| virtual FUSION_EXPORT IObject * | create (Args &args, int32_t nargs) |
| virtual FUSION_EXPORT UTF8String | getName () const |
| | Return a string representing the name of this object. The meaning of this name is object dependent.
|
| virtual FUSION_EXPORT uint32_t | getElementSize () const |
| virtual FUSION_EXPORT float * | getFloatV () |
virtual FUSION_EXPORT const
float * | getFloatV () const |
| virtual FUSION_EXPORT int32_t * | getInt32V () |
virtual FUSION_EXPORT const
int32_t * | getInt32V () const |
| virtual FUSION_EXPORT Value | valueOf () const |
| | Convert this object to a primitive value.
|
| virtual FUSION_EXPORT bool | isPrototypeOf (IObject *obj) const |
| virtual FUSION_EXPORT UTF8String | toString () const |
| virtual FUSION_EXPORT bool | isBoolean () const |
| | Return true if this object represents a primitive boolean value.
|
| virtual FUSION_EXPORT bool | isNumber () const |
| | Return true if this object represents a primitive numeric value.
|
| virtual FUSION_EXPORT bool | isString () const |
| | Return true if this object represents a primitive string value.
|
| virtual FUSION_EXPORT bool | isNode () const |
| virtual FUSION_EXPORT bool | isProtoNode () const |
| FUSION_EXPORT bool | isProto () const |
| FUSION_EXPORT void | setProto (bool b) |
| virtual FUSION_EXPORT UTF8String | getFileBase () const |
| virtual FUSION_EXPORT void | ref () |
| | Remove a reference from an object, when this object has no more refs, it is subject to GC.
|
| virtual FUSION_EXPORT void | unref () |
| | Add a reference to this object to prevent it from being removed by the garbage collector.
|
| virtual FUSION_EXPORT int32_t | getRefCount () const |
| FUSION_EXPORT void | setPrototype (const char *name) |
| FUSION_EXPORT void | setPrototype (IObject *obj) |
| FUSION_EXPORT Object * | getPrototype () const |
| virtual FUSION_EXPORT void | registerInterface (const UTF8String &name, const Value &iface, const UTF8String &imp) |
| | Register an interface for this object.
|
| virtual FUSION_EXPORT IObject * | queryInterface (const UTF8String &name) |
| | Return the object that implements the passed interface.
|
| FUSION_EXPORT void | assimilate (IObject *obj) |
| virtual FUSION_EXPORT int | getIndex (lua_State *l) |
| virtual FUSION_EXPORT int | setIndex (lua_State *l) |
| virtual FUSION_EXPORT int | call (lua_State *l) |
| virtual FUSION_EXPORT bool | hasProperty (Args &args, bool &inProto) |
| virtual FUSION_EXPORT bool | hasOwnProperty (const UTF8String &prop) |
| FUSION_EXPORT Value | getautofenv () |
| FUSION_EXPORT Value | eval (const UTF8String &s) |
| | eval(expression)
Returns the value of the string expression evaluated as a lua expression.
|
| virtual FUSION_EXPORT Fusion::UTF8String | join (const Fusion::UTF8String &sep) const |
| | join all elements in an array from 0 to length-1.
|
| virtual FUSION_EXPORT int | push (Args &args) |
| | place all passed arguments at the end of an array, starting at length.
|
| virtual FUSION_EXPORT void | insert (const Value &src, int32_t at) |
| | insert the passed items before the item at the passed index.
|
| virtual FUSION_EXPORT void | remove (int32_t at, double num) |
| | remove num items at the passed index.
|
| virtual FUSION_EXPORT int | splice (Args &args) |
| | Insert the passed items before the item at start after deleting deleteCount items from start.
|
| FUSION_EXPORT void | shuffle (const Value &src, int32_t srcStart, int32_t srcCount, int32_t srcSkip, int32_t dstStart, int32_t dstDeleteCount, int32_t dstSkip, int32_t repeatCount) |
| | shuffle the passed src elements into the current array:
|
| FUSION_EXPORT Engine * | getEngine () const |
Static Public Member Functions |
| static FUSION_EXPORT Object * | newClassObject () |
| static FUSION_EXPORT bool | isObject (Args &args, int32_t i) |
| static FUSION_EXPORT int | pushautofenv (Args &args) |
Protected Member Functions |
| FUSION_EXPORT | Object () |
| virtual FUSION_EXPORT | ~Object () |
| virtual FUSION_EXPORT bool | concat (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | add (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | sub (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | mul (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | div (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | pow (const Value &val, Value &result, bool isop1) const |
| virtual FUSION_EXPORT bool | unm (Value &result) const |
| virtual FUSION_EXPORT bool | lt (const Value &val, bool isop1) const |
| virtual FUSION_EXPORT bool | le (const Value &val, bool isop1) const |
| virtual FUSION_EXPORT bool | eq (const Value &val, bool isop1) const |
| template<typename Callee> |
| FUSION_EXPORT void | registerFunction (const char *name, int(Callee::*func)(Args &args)) |
| template<typename Callee> |
| FUSION_EXPORT void | registerFunction (const char *name, int(Callee::*func)(Args &args) const) |
| FUSION_EXPORT void | registerStaticFunction (const char *name, int(*func)(Args &args)) |
| template<typename Callee> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)()) |
| template<typename Callee> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)() const) |
| template<typename Callee, typename RT> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)()) |
| template<typename Callee, typename RT> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)() const) |
| template<typename RT> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)()) |
| template<typename Callee, typename P1> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1)) |
| template<typename Callee, typename P1> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1) const) |
| template<typename P1> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1)) |
| template<typename Callee, typename RT, typename P1> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1)) |
| template<typename Callee, typename RT, typename P1> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1) const) |
| template<typename RT, typename P1> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1)) |
| template<typename Callee, typename P1, typename P2> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2)) |
| template<typename Callee, typename P1, typename P2> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2) const) |
| template<typename P1, typename P2> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2)) |
| template<typename Callee, typename RT, typename P1, typename P2> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2)) |
| template<typename Callee, typename RT, typename P1, typename P2> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2) const) |
| template<typename RT, typename P1, typename P2> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2)) |
| template<typename Callee, typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3)) |
| template<typename Callee, typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3) const) |
| template<typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3) const) |
| template<typename RT, typename P1, typename P2, typename P3> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4) const) |
| template<typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4) const) |
| template<typename RT, typename P1, typename P2, typename P3, typename P4> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5) const) |
| template<typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5) const) |
| template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6) const) |
| template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6) const) |
| template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7) const) |
| template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6, P7)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7) const) |
| template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6, P7)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8)) |
| template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8) const) |
| template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6, P7, P8)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8)) |
| template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8) const) |
| template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> |
| FUSION_EXPORT void | registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6, P7, P8)) |
| FUSION_EXPORT void | pushPrototype (Args &args) const |
| FUSION_EXPORT void * | getUserData () const |
Static Protected Member Functions |
| static FUSION_EXPORT Object * | _createClassObject (Object *obj, const char *name, const char *parent) |
| static FUSION_EXPORT void | reportNotFusionObjectError () |
| template<typename Callee> |
| static int | thunk (lua_State *s) |
| template<typename Callee> |
| static int | constthunk (lua_State *s) |
| static int | staticargsthunk (lua_State *s) |
| static FUSION_EXPORT int | push (IObject *obj, Args &args) |
| static FUSION_EXPORT int | __index (lua_State *l) |
| static FUSION_EXPORT int | __newindex (lua_State *l) |
| static FUSION_EXPORT int | __call (lua_State *l) |
| static FUSION_EXPORT int | __gc (lua_State *l) |
| static FUSION_EXPORT int | __tostring (lua_State *l) |
| static FUSION_EXPORT int | __concat (lua_State *l) |
| static FUSION_EXPORT int | __add (lua_State *l) |
| static FUSION_EXPORT int | __sub (lua_State *l) |
| static FUSION_EXPORT int | __mul (lua_State *l) |
| static FUSION_EXPORT int | __div (lua_State *l) |
| static FUSION_EXPORT int | __pow (lua_State *l) |
| static FUSION_EXPORT int | __unm (lua_State *l) |
| static FUSION_EXPORT int | __eq (lua_State *l) |
| static FUSION_EXPORT int | __lt (lua_State *l) |
| static FUSION_EXPORT int | __le (lua_State *l) |
Friends |
| class | Args |
Classes |
| class | PropertyIter |
| | Property iterator class Handy class for iterating over all of the properties of an object. More...
|
It contains string-named properties which can hold values of any type.