Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/FPCGDataTypeRegistry
Description
Returns the data type for the union of all the identifiers passed as input. It is the common ancestor of all of them.
Goal: From a list of identifiers, aggregate all the types, and find the common ancestor of them all Algorithm overview:
- Gather all the unique types
- Initialize result to the first unique type and for the rest find the common ancestor with result. The common ancestor becomes the result and we continue.
- If we ever find Any, we can stop and return it.
| Name | GetIdentifiersUnion |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/Registry/PCGDataTypeRegistry.h |
| Include Path | #include "Data/Registry/PCGDataTypeRegistry.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Data/Registry/PCGDataTypeRegistry.cpp |
FPCGDataTypeIdentifier GetIdentifiersUnion
(
TConstArrayView< FPCGDataTypeIdentifier > Identifiers
) const