Public Member Functions | |
Miscellaneous | |
virtual asIScriptEngine * | GetEngine () const =0 |
Returns a pointer to the script engine. | |
virtual const char * | GetConfigGroup () const =0 |
Returns the config group in which the type was registered. | |
Memory management | |
virtual int | AddRef ()=0 |
Increases the reference counter. | |
virtual int | Release ()=0 |
Decrease reference counter. | |
Type info | |
virtual const char * | GetName () const =0 |
Returns a temporary pointer to the name of the datatype. | |
virtual asIObjectType * | GetBaseType () const =0 |
Returns the object type that this type derives from. | |
virtual asDWORD | GetFlags () const =0 |
Returns the object type flags. | |
virtual asUINT | GetSize () const =0 |
Returns the size of the object type. | |
virtual int | GetTypeId () const =0 |
Returns the type id for the object type. | |
virtual int | GetSubTypeId () const =0 |
Returns the type id of the template sub type. | |
Interfaces | |
virtual int | GetInterfaceCount () const =0 |
Returns the number of interfaces implemented. | |
virtual asIObjectType * | GetInterface (asUINT index) const =0 |
Returns a temporary pointer to the specified interface or null if none are found. | |
Factories | |
virtual int | GetFactoryCount () const =0 |
Returns the number of factory functions for the object type. | |
virtual int | GetFactoryIdByIndex (int index) const =0 |
Returns the factory id by index. | |
virtual int | GetFactoryIdByDecl (const char *decl) const =0 |
Returns the factory id by declaration. | |
Methods | |
virtual int | GetMethodCount () const =0 |
Returns the number of methods for the object type. | |
virtual int | GetMethodIdByIndex (int index) const =0 |
Returns the method id by index. | |
virtual int | GetMethodIdByName (const char *name) const =0 |
Returns the method id by name. | |
virtual int | GetMethodIdByDecl (const char *decl) const =0 |
Returns the method id by declaration. | |
virtual asIScriptFunction * | GetMethodDescriptorByIndex (int index) const =0 |
Returns the function descriptor for the script method. | |
Properties | |
virtual int | GetPropertyCount () const =0 |
Returns the number of properties that the object contains. | |
virtual int | GetPropertyTypeId (asUINT prop) const =0 |
Returns the type id of the property referenced by prop. | |
virtual const char * | GetPropertyName (asUINT prop) const =0 |
Returns the name of the property referenced by prop. | |
virtual int | GetPropertyOffset (asUINT prop) const =0 |
Returns the offset of the property in the memory layout. | |
Behaviours | |
virtual int | GetBehaviourCount () const =0 |
Returns the number of behaviours. | |
virtual int | GetBehaviourByIndex (asUINT index, asEBehaviours *outBehaviour) const =0 |
Returns the function id and type of the behaviour. |
virtual int asIObjectType::AddRef | ( | ) | [pure virtual] |
virtual asIObjectType* asIObjectType::GetBaseType | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetBehaviourByIndex | ( | asUINT | index, | |
asEBehaviours * | outBehaviour | |||
) | const [pure virtual] |
[in] | index | The index of the behaviour. |
[out] | outBehaviour | Receives the type of the behaviour. |
asINVALID_ARG | The index is too large. |
virtual int asIObjectType::GetBehaviourCount | ( | ) | const [pure virtual] |
virtual const char* asIObjectType::GetConfigGroup | ( | ) | const [pure virtual] |
virtual asIScriptEngine* asIObjectType::GetEngine | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetFactoryCount | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetFactoryIdByDecl | ( | const char * | decl | ) | const [pure virtual] |
[in] | decl | The factory signature. |
asNO_FUNCTION | Didn't find any matching functions. | |
asINVALID_DECLARATION | decl is not a valid declaration. | |
asERROR | The module for the type was not built successfully. |
id = type->GetFactoryIdByDecl("object@ object(int arg1, int arg2)");
virtual int asIObjectType::GetFactoryIdByIndex | ( | int | index | ) | const [pure virtual] |
[in] | index | The index of the factory function. |
asINVALID_ARG | index is out of bounds. |
virtual asDWORD asIObjectType::GetFlags | ( | ) | const [pure virtual] |
virtual asIObjectType* asIObjectType::GetInterface | ( | asUINT | index | ) | const [pure virtual] |
[in] | index | The interface index. |
virtual int asIObjectType::GetInterfaceCount | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetMethodCount | ( | ) | const [pure virtual] |
virtual asIScriptFunction* asIObjectType::GetMethodDescriptorByIndex | ( | int | index | ) | const [pure virtual] |
[in] | index | The index of the method. |
virtual int asIObjectType::GetMethodIdByDecl | ( | const char * | decl | ) | const [pure virtual] |
[in] | decl | The method signature. |
asMULTIPLE_FUNCTIONS | Found multiple matching methods. | |
asNO_FUNCTION | Didn't find any matching method. | |
asINVALID_DECLARATION | decl is not a valid declaration. | |
asERROR | The module for the type was not built successfully. |
The method will find the script method with the exact same declaration.
virtual int asIObjectType::GetMethodIdByIndex | ( | int | index | ) | const [pure virtual] |
[in] | index | The index of the method. |
asINVALID_ARG | index is out of bounds. |
virtual int asIObjectType::GetMethodIdByName | ( | const char * | name | ) | const [pure virtual] |
[in] | name | The name of the method. |
asMULTIPLE_FUNCTIONS | Found multiple matching methods. | |
asNO_FUNCTION | Didn't find any matching method. |
virtual const char* asIObjectType::GetName | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetPropertyCount | ( | ) | const [pure virtual] |
virtual const char* asIObjectType::GetPropertyName | ( | asUINT | prop | ) | const [pure virtual] |
[in] | prop | The property index. |
virtual int asIObjectType::GetPropertyOffset | ( | asUINT | prop | ) | const [pure virtual] |
[in] | prop | The property index. |
virtual int asIObjectType::GetPropertyTypeId | ( | asUINT | prop | ) | const [pure virtual] |
[in] | prop | The property index. |
asINVALID_ARG | prop is too large |
virtual asUINT asIObjectType::GetSize | ( | ) | const [pure virtual] |
virtual int asIObjectType::GetSubTypeId | ( | ) | const [pure virtual] |
asERROR | The type is not a template type. |
virtual int asIObjectType::GetTypeId | ( | ) | const [pure virtual] |
virtual int asIObjectType::Release | ( | ) | [pure virtual] |