Inherits AZ::Attribute.
Inherited by AZ::AttributeMemberFunction< R(C::*)(Args...) const >, and AZ::AttributeMemberFunction< R(C::*)(Args...)>.
Public Types | |
typedef R(* | FunctionPtr) (Args...) |
Public Types inherited from AZ::Attribute | |
using | ContextDeleter = void(*)(void *contextData) |
Public Member Functions | |
AZ_RTTI ((AttributeFunction, "{EE535A42-940C-42DE-848D-9C6CE57D8A62}", R(Args...)), Attribute) | |
AZ_CLASS_ALLOCATOR (AttributeFunction< R(Args...)>, SystemAllocator) | |
AttributeFunction (FunctionPtr f) | |
virtual R | Invoke (void *instance, const Args &... args) |
virtual AZ::Uuid | GetInstanceType () const |
virtual bool | IsInvokable () const |
Returns true if this attribute is an invokable function or method. | |
virtual bool | CanDomInvoke (const AZ::Dom::Value &arguments) const |
virtual AZ::Dom::Value | DomInvoke (void *instance, const AZ::Dom::Value &arguments) |
Public Member Functions inherited from AZ::Attribute | |
AZ_TYPE_INFO_WITH_NAME_DECL (Attribute) | |
AZ_RTTI_NO_TYPE_INFO_DECL () | |
void | SetContextData (void *contextData, ContextDeleter destroyer) |
void * | GetContextData () const |
virtual bool | IsInvokable () const |
Returns true if this attribute is an invokable function or method. | |
virtual AttributeUniquePtr | GetVoidInstanceAttributeInvocable () |
virtual bool | CanDomInvoke (const AZ::Dom::Value &arguments) const |
virtual AZ::Dom::Value | DomInvoke (void *instance, const AZ::Dom::Value &arguments) |
virtual AZ::Dom::Value | GetAsDomValue (void *instance) |
Public Attributes | |
FunctionPtr | m_function |
Public Attributes inherited from AZ::Attribute | |
bool | m_describesChildren = false |
bool | m_childClassOwned = false |
Additional Inherited Members | |
Static Public Member Functions inherited from AZ::Attribute | |
static const char * | GetTypeName () |
static AZ::Name | GetTypeField () |
static AZ::Name | GetInstanceField () |
static AZ::Name | GetAttributeField () |
Static Protected Attributes inherited from AZ::Attribute | |
static const AZ::Name | s_typeField |
static const AZ::Name | s_instanceField |
static const AZ::Name | s_attributeField |
|
inlinevirtual |
Returns true if this attribute is invokable, given a set of arguments.
arguments | A Dom::Value that must contain an Array of arguments for this invokable attribute. |
Reimplemented from AZ::Attribute.
Reimplemented in AZ::AttributeMemberFunction< R(C::*)(Args...)>.
|
inlinevirtual |
Attempts to execute this attribute given an array of Dom::Values as parameters.
arguments | A Dom::Value that must contain an Array of arguments for this invokable attribute. |
Reimplemented from AZ::Attribute.
Reimplemented in AZ::AttributeMemberFunction< R(C::*)(Args...)>.
|
inlinevirtual |
Returns true if this attribute is an invokable function or method.
Reimplemented from AZ::Attribute.
Reimplemented in AZ::AttributeMemberFunction< R(C::*)(Args...)>.