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::AzTypeInfo< T > Struct Template Reference

#include <TypeInfoSimple.h>

Static Public Member Functions

static AZ::TypeId Uuid ()
 
static AZ::TypeId GetCanonicalTypeId ()
 
static AZ::TypeId GetPointeeTypeId ()
 
static AZ::TemplateId GetTemplateId ()
 
static const char * Name ()
 
static constexpr TypeTraits GetTypeTraits ()
 
static constexpr size_t Size ()
 

Detailed Description

template<class T>
struct AZ::AzTypeInfo< T >

Since O3DE fully support cross shared libraries (DLL) operation, it does not rely on typeid, static templates, etc. to generate the same result in different compilations. A unique ID for each type is required. By default the code will try to access to a static GetO3deTypeName/GetO3deTypeId functions inside a class the type info metadata. For types when intrusive is not an option(fundamental types such as int, float or enums), the class will need to specialize the AzTypeInfo.

Member Function Documentation

◆ Uuid()

template<class T >
static AZ::TypeId AZ::AzTypeInfo< T >::Uuid ( )
inlinestatic

Used for aggregation of TypeIds when part of a template argument Returns the canonical type id of the actual type when a value type such as int or AZStd::string

When type T is a pointer Calls the PointeeTypeId function to retrieve the TypeId of for type T instead of T* This is different from the other AzTypeInfo T types Required for maintaining backwards compatibility with code that expects AzTypeInfo<int*>::Uuid() == AzTypeInfo<int>::Uuid()


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