Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::SerializeGenericTypeInfo< Data::Asset< T > >::DataConverter Class Reference

Inherits AZ::Serialize::IDataConverter.

Public Member Functions

bool CanConvertFromType (const TypeId &convertibleTypeId, const SerializeContext::ClassData &classData, SerializeContext &) override
 
bool ConvertFromType (void *&convertibleTypePtr, const TypeId &convertibleTypeId, void *classPtr, const SerializeContext::ClassData &classData, SerializeContext &serializeContext) override
 
- Public Member Functions inherited from AZ::Serialize::IDataConverter
virtual ~IDataConverter ()=default
 
virtual bool CanConvertFromType (const TypeId &convertibleTypeId, const SerializeContext::ClassData &classData, SerializeContext &)
 
virtual bool ConvertFromType (void *&convertibleTypePtr, const TypeId &convertibleTypeId, void *classPtr, const SerializeContext::ClassData &classData, SerializeContext &)
 

Member Function Documentation

◆ CanConvertFromType()

template<typename T >
bool AZ::SerializeGenericTypeInfo< Data::Asset< T > >::DataConverter::CanConvertFromType ( const TypeId convertibleTypeId,
const SerializeContext::ClassData classData,
SerializeContext  
)
inlineoverridevirtual

Callback that can be used to retrieve a memory address in which to store an element of the supplied convertible type

Parameters
convertibleTypePtrresult pointer that should be populated with an address that can store an element of the convertible type
convertibleTypeIdtype to check to determine if it can converted to an element of class represent by this Class Data
classPtrmemory address of the class represented by the @classData type
classDatareference to the metadata representing the type stored in classPtr
Returns
true if a non-null memory address has been returned that can store the convertible type

Reimplemented from AZ::Serialize::IDataConverter.

◆ ConvertFromType()

template<typename T >
bool AZ::SerializeGenericTypeInfo< Data::Asset< T > >::DataConverter::ConvertFromType ( void *&  convertibleTypePtr,
const TypeId convertibleTypeId,
void *  classPtr,
const SerializeContext::ClassData classData,
SerializeContext serializeContext 
)
inlineoverridevirtual

Reimplemented from AZ::Serialize::IDataConverter.


The documentation for this class was generated from the following file: