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, true > Struct Template Reference

Default instance for abstract classes. We can't instantiate abstract classes, but we have this function for assert! 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>
struct AZ::Serialize::InstanceFactory< T, U, true >

Default instance for abstract classes. We can't instantiate abstract classes, but we have this function for assert!

Member Function Documentation

◆ Create()

template<class T , bool U>
void * AZ::Serialize::InstanceFactory< T, U, true >::Create ( const char *  name)
inlineoverridevirtual

Called to create an instance of an object.

Implements AZ::Serialize::IObjectFactory.

◆ Destroy()

template<class T , bool U>
void AZ::Serialize::InstanceFactory< T, U, true >::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: