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::Serialize::InstanceFactory< T, U, A > Struct Template Reference

Default instance factory to create/destroy a classes (when a factory is not provided) More...

#include <SerializeContext.h>

Inherits AZ::Serialize::IObjectFactory.

Public Member Functions

void * Create (const char *name) override
 Called to create an instance of an object.
 
void Destroy (void *ptr) override
 Called to destroy an instance of an object.
 
- Public Member Functions inherited from AZ::Serialize::IObjectFactory
virtual void * Create (const char *name)=0
 Called to create an instance of an object.
 
virtual void Destroy (void *ptr)=0
 Called to destroy an instance of an object.
 
void Destroy (const void *ptr)
 

Detailed Description

template<class T, bool U = HasAZClassAllocator<T>::value, bool A = AZStd::is_abstract<T>::value>
struct AZ::Serialize::InstanceFactory< T, U, A >

Default instance factory to create/destroy a classes (when a factory is not provided)

Member Function Documentation

◆ Create()

template<class T , bool U = HasAZClassAllocator<T>::value, bool A = AZStd::is_abstract<T>::value>
void * AZ::Serialize::InstanceFactory< T, U, A >::Create ( const char *  name)
inlineoverridevirtual

Called to create an instance of an object.

Implements AZ::Serialize::IObjectFactory.

◆ Destroy()

template<class T , bool U = HasAZClassAllocator<T>::value, bool A = AZStd::is_abstract<T>::value>
void AZ::Serialize::InstanceFactory< T, U, A >::Destroy ( void *  ptr)
inlineoverridevirtual

Called to destroy an instance of an object.

Implements AZ::Serialize::IObjectFactory.


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