UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TIndexMap< IntType > Struct Template Reference

#include <GeometryTypes.h>

Public Member Functions

 TIndexMap ()
 
void Reset ()
 
constexpr IntType UnmappedID () const
 
TMap< IntType, IntType > & GetForwardMap ()
 
const TMap< IntType, IntType > & GetForwardMap () const
 
TMap< IntType, IntType > & GetReverseMap ()
 
const TMap< IntType, IntType > & GetReverseMap () const
 
void Add (IntType FromID, IntType ToID)
 
bool ContainsFrom (IntType FromID) const
 
bool ContainsTo (IntType ToID) const
 
IntType GetTo (IntType FromID) const
 
IntType GetFrom (IntType ToID) const
 
const IntType * FindTo (IntType FromID) const
 
const IntType * FindFrom (IntType ToID) const
 
void Reserve (int NumElements)
 
SIZE_T GetAllocatedSize () const
 

Protected Attributes

TMap< IntType, IntType > ForwardMap
 
TMap< IntType, IntType > ReverseMap
 
bool bWantForward
 
bool bWantReverse
 

Detailed Description

template<typename IntType>
struct UE::Geometry::TIndexMap< IntType >

TIndexMap stores mappings between indices, which are assumed to be an integer type. Both forward and backward mapping are stored

Constructor & Destructor Documentation

◆ TIndexMap()

template<typename IntType >
UE::Geometry::TIndexMap< IntType >::TIndexMap ( )
inline

Member Function Documentation

◆ Add()

template<typename IntType >
void UE::Geometry::TIndexMap< IntType >::Add ( IntType  FromID,
IntType  ToID 
)
inline

add mapping from one index to another

◆ ContainsFrom()

template<typename IntType >
bool UE::Geometry::TIndexMap< IntType >::ContainsFrom ( IntType  FromID) const
inline
Returns
true if we can map forward from this value

◆ ContainsTo()

template<typename IntType >
bool UE::Geometry::TIndexMap< IntType >::ContainsTo ( IntType  ToID) const
inline
Returns
true if we can reverse-map from this value

◆ FindFrom()

template<typename IntType >
const IntType * UE::Geometry::TIndexMap< IntType >::FindFrom ( IntType  ToID) const
inline
Returns
reverse-map of input value or null if not found

◆ FindTo()

template<typename IntType >
const IntType * UE::Geometry::TIndexMap< IntType >::FindTo ( IntType  FromID) const
inline
Returns
forward-map of input value or null if not found

◆ GetAllocatedSize()

template<typename IntType >
SIZE_T UE::Geometry::TIndexMap< IntType >::GetAllocatedSize ( ) const
inline

◆ GetForwardMap() [1/2]

template<typename IntType >
TMap< IntType, IntType > & UE::Geometry::TIndexMap< IntType >::GetForwardMap ( )
inline

◆ GetForwardMap() [2/2]

template<typename IntType >
const TMap< IntType, IntType > & UE::Geometry::TIndexMap< IntType >::GetForwardMap ( ) const
inline

◆ GetFrom()

template<typename IntType >
IntType UE::Geometry::TIndexMap< IntType >::GetFrom ( IntType  ToID) const
inline
Returns
reverse-map of input value

◆ GetReverseMap() [1/2]

template<typename IntType >
TMap< IntType, IntType > & UE::Geometry::TIndexMap< IntType >::GetReverseMap ( )
inline

◆ GetReverseMap() [2/2]

template<typename IntType >
const TMap< IntType, IntType > & UE::Geometry::TIndexMap< IntType >::GetReverseMap ( ) const
inline

◆ GetTo()

template<typename IntType >
IntType UE::Geometry::TIndexMap< IntType >::GetTo ( IntType  FromID) const
inline
Returns
forward-map of input value

◆ Reserve()

template<typename IntType >
void UE::Geometry::TIndexMap< IntType >::Reserve ( int  NumElements)
inline

◆ Reset()

template<typename IntType >
void UE::Geometry::TIndexMap< IntType >::Reset ( )
inline

◆ UnmappedID()

template<typename IntType >
constexpr IntType UE::Geometry::TIndexMap< IntType >::UnmappedID ( ) const
inlineconstexpr
Returns
the value used to indicate an ID is not present in the mapping

Member Data Documentation

◆ bWantForward

template<typename IntType >
bool UE::Geometry::TIndexMap< IntType >::bWantForward
protected

◆ bWantReverse

template<typename IntType >
bool UE::Geometry::TIndexMap< IntType >::bWantReverse
protected

◆ ForwardMap

template<typename IntType >
TMap<IntType, IntType> UE::Geometry::TIndexMap< IntType >::ForwardMap
protected

◆ ReverseMap

template<typename IntType >
TMap<IntType, IntType> UE::Geometry::TIndexMap< IntType >::ReverseMap
protected

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