#include <ReflectContext.h>
Inherited by AZ::AttributeData< T >, AZ::AttributeFunction< R(Args...)>, and AZ::AttributeInvocable< Invocable >.
|
using | ContextDeleter = void(*)(void *contextData) |
|
|
| 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 ([[maybe_unused]] const AZ::Dom::Value &arguments) const |
|
virtual AZ::Dom::Value | DomInvoke ([[maybe_unused]] void *instance, [[maybe_unused]] const AZ::Dom::Value &arguments) |
|
virtual AZ::Dom::Value | GetAsDomValue ([[maybe_unused]] void *instance) |
|
|
static const char * | GetTypeName () |
|
static AZ::Name | GetTypeField () |
|
static AZ::Name | GetInstanceField () |
|
static AZ::Name | GetAttributeField () |
|
|
bool | m_describesChildren = false |
|
bool | m_childClassOwned = false |
|
Base abstract class for all attributes. Use azrtti to get the appropriate version. Of course if NULL there is a data mismatch of attributes.
virtual bool AZ::Attribute::CanDomInvoke |
( |
[[maybe_unused] ] const AZ::Dom::Value & |
arguments | ) |
const |
|
inlinevirtual |
Attempts to execute this attribute given an array of Dom::Values as parameters.
- Parameters
-
arguments | A Dom::Value that must contain an Array of arguments for this invokable attribute. |
- Returns
- A Dom::Value containing the marshalled result of the function call (null if the call returned void)
virtual AZ::Dom::Value AZ::Attribute::GetAsDomValue |
( |
[[maybe_unused] ] void * |
instance | ) |
|
|
inlinevirtual |
Gets a marshaleld Dom::Value representation of this attribute bound to a given instance. By default this just serializes a pointer to the instance and this attribute, but for non-invokable attributes this is just abbreviated to a marshalled version of the data stored in the attribute.
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/RTTI/ReflectContext.h