UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TTwoWayMap< ClassT, FirstType, SecondType > Struct Template Reference

#include <TwoWayMap.h>

Public Types

typedef TArray< TPair< FirstType, SecondType > > InitListType
 

Static Public Member Functions

static const TMap< FirstType, SecondType > & GetFirstToSecond ()
 
static const TMap< SecondType, FirstType > & GetSecondToFirst ()
 
static void InitIfNeeded ()
 

Static Protected Attributes

static TMap< FirstType, SecondTypeFirstToSecond = TMap<FirstType, SecondType>()
 
static TMap< SecondType, FirstType > SecondToFirst = TMap<SecondType, FirstType>()
 

Detailed Description

template<typename ClassT, typename FirstType, typename SecondType>
struct TTwoWayMap< ClassT, FirstType, SecondType >

Statically allocates two maps from the same array of pairs

Member Typedef Documentation

◆ InitListType

template<typename ClassT , typename FirstType , typename SecondType >
typedef TArray<TPair<FirstType, SecondType> > TTwoWayMap< ClassT, FirstType, SecondType >::InitListType

Member Function Documentation

◆ GetFirstToSecond()

template<typename ClassT , typename FirstType , typename SecondType >
static const TMap< FirstType, SecondType > & TTwoWayMap< ClassT, FirstType, SecondType >::GetFirstToSecond ( )
inlinestatic

◆ GetSecondToFirst()

template<typename ClassT , typename FirstType , typename SecondType >
static const TMap< SecondType, FirstType > & TTwoWayMap< ClassT, FirstType, SecondType >::GetSecondToFirst ( )
inlinestatic

◆ InitIfNeeded()

template<typename ClassT , typename FirstType , typename SecondType >
static void TTwoWayMap< ClassT, FirstType, SecondType >::InitIfNeeded ( )
inlinestatic

Member Data Documentation

◆ FirstToSecond

template<typename ClassT , typename FirstType , typename SecondType >
TMap<FirstType, SecondType> TTwoWayMap< ClassT, FirstType, SecondType >::FirstToSecond = TMap<FirstType, SecondType>()
inlinestaticprotected

◆ SecondToFirst

template<typename ClassT , typename FirstType , typename SecondType >
TMap<SecondType, FirstType> TTwoWayMap< ClassT, FirstType, SecondType >::SecondToFirst = TMap<SecondType, FirstType>()
inlinestaticprotected

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