Public Member Functions | |
Miscellaneous | |
virtual asIScriptEngine * | GetEngine ()=0 |
Returns a pointer to the script engine. | |
virtual int | GetFunctionId ()=0 |
Returns the function id of the called function. | |
Object | |
virtual void * | GetObject ()=0 |
Returns the object pointer if this is a class method, or null if it not. | |
virtual int | GetObjectTypeId ()=0 |
Returns the type id of the object if this is a class method. | |
Arguments | |
virtual int | GetArgCount ()=0 |
Returns the number of arguments. | |
virtual int | GetArgTypeId (asUINT arg)=0 |
Returns the type id of the argument. | |
virtual asBYTE | GetArgByte (asUINT arg)=0 |
Returns the value of an 8-bit argument. | |
virtual asWORD | GetArgWord (asUINT arg)=0 |
Returns the value of a 16-bit argument. | |
virtual asDWORD | GetArgDWord (asUINT arg)=0 |
Returns the value of a 32-bit integer argument. | |
virtual asQWORD | GetArgQWord (asUINT arg)=0 |
Returns the value of a 64-bit integer argument. | |
virtual float | GetArgFloat (asUINT arg)=0 |
Returns the value of a float argument. | |
virtual double | GetArgDouble (asUINT arg)=0 |
Returns the value of a double argument. | |
virtual void * | GetArgAddress (asUINT arg)=0 |
Returns the address held in a reference or handle argument. | |
virtual void * | GetArgObject (asUINT arg)=0 |
Returns a pointer to the object in a object argument. | |
virtual void * | GetAddressOfArg (asUINT arg)=0 |
Returns a pointer to the argument value. | |
Return value | |
virtual int | GetReturnTypeId ()=0 |
Gets the type id of the return value. | |
virtual int | SetReturnByte (asBYTE val)=0 |
Sets the 8-bit return value. | |
virtual int | SetReturnWord (asWORD val)=0 |
Sets the 16-bit return value. | |
virtual int | SetReturnDWord (asDWORD val)=0 |
Sets the 32-bit integer return value. | |
virtual int | SetReturnQWord (asQWORD val)=0 |
Sets the 64-bit integer return value. | |
virtual int | SetReturnFloat (float val)=0 |
Sets the float return value. | |
virtual int | SetReturnDouble (double val)=0 |
Sets the double return value. | |
virtual int | SetReturnAddress (void *addr)=0 |
Sets the address return value when the return is a reference or handle. | |
virtual int | SetReturnObject (void *obj)=0 |
Sets the object return value. | |
virtual void * | GetAddressOfReturnLocation ()=0 |
Gets the address to the memory where the return value should be placed. |
virtual void* asIScriptGeneric::GetAddressOfArg | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
virtual void* asIScriptGeneric::GetAddressOfReturnLocation | ( | ) | [pure virtual] |
new(gen->GetAddressOfReturnLocation()) std::string(myRetValue);
The placement new operator works for primitive types too, so this method is ideal for writing automatically generated functions that works the same way for all types.
virtual void* asIScriptGeneric::GetArgAddress | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
[in] | arg | The argument index. |
virtual int asIScriptGeneric::GetArgCount | ( | ) | [pure virtual] |
virtual double asIScriptGeneric::GetArgDouble | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
[in] | arg | The argument index. |
virtual float asIScriptGeneric::GetArgFloat | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
virtual void* asIScriptGeneric::GetArgObject | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
[in] | arg | The argument index. |
virtual int asIScriptGeneric::GetArgTypeId | ( | asUINT | arg | ) | [pure virtual] |
[in] | arg | The argument index. |
[in] | arg | The argument index. |
virtual asIScriptEngine* asIScriptGeneric::GetEngine | ( | ) | [pure virtual] |
virtual int asIScriptGeneric::GetFunctionId | ( | ) | [pure virtual] |
virtual void* asIScriptGeneric::GetObject | ( | ) | [pure virtual] |
virtual int asIScriptGeneric::GetObjectTypeId | ( | ) | [pure virtual] |
virtual int asIScriptGeneric::GetReturnTypeId | ( | ) | [pure virtual] |
virtual int asIScriptGeneric::SetReturnAddress | ( | void * | addr | ) | [pure virtual] |
[in] | addr | The return value, which is an address. |
asINVALID_TYPE | The return type is not a reference or handle. |
virtual int asIScriptGeneric::SetReturnByte | ( | asBYTE | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not an 8-bit value. Sets the 1 byte return value. |
virtual int asIScriptGeneric::SetReturnDouble | ( | double | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not a 64-bit value. Sets the double return value. |
virtual int asIScriptGeneric::SetReturnDWord | ( | asDWORD | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not a 32-bit value. Sets the 4 byte return value. |
virtual int asIScriptGeneric::SetReturnFloat | ( | float | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not a 32-bit value. Sets the float return value. |
virtual int asIScriptGeneric::SetReturnObject | ( | void * | obj | ) | [pure virtual] |
[in] | obj | A pointer to the object return value. |
asINVALID_TYPE | The return type is not an object value or handle. |
virtual int asIScriptGeneric::SetReturnQWord | ( | asQWORD | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not a 64-bit value. Sets the 8 byte return value. |
virtual int asIScriptGeneric::SetReturnWord | ( | asWORD | val | ) | [pure virtual] |
[in] | val | The return value. |
asINVALID_TYPE | The return type is not a 16-bit value. Sets the 2 byte return value. |