Apparatus Version 1.23
ECS data-oriented workflow for Unreal Engine.
Loading...
Searching...
No Matches
Functions
SmartCast.h File Reference
#include "Subjective.h"
#include "UnsafeSubjectHandle.h"
Include dependency graph for SmartCast.h:
This graph shows which files directly or indirectly include this file:

Functions

template<EParadigm Paradigm, class To = UObject*, class From = UObject*, typename std::enable_if<!IsSubjectHandleType< typename more::flatten< From >::type >(), int >::type = 0>
auto SmartCast (From Src)
 Cast the entity within paradigm.
 
template<EParadigm Paradigm, class To = UObject*, class From = FSubjectHandle, typename std::enable_if< IsSubjectHandleType< From >(), int >::type = 0>
auto SmartCast (const From &Src)
 Cast the entity within paradigm.
 
template<class To , EParadigm Paradigm = EParadigm::Default, class From = UObject*>
auto SmartCast (From Src)
 Cast the entity within paradigm.
 
template<class To , class From , EParadigm Paradigm = EParadigm::Default>
TSmartCastImpl< Paradigm, From, To >::ToType SmartCastChecked (From Src)
 Cast the solidity state of an entity while checking the result within paradigm.
 

Function Documentation

◆ SmartCast() [1/3]

template<EParadigm Paradigm, class To = UObject*, class From = FSubjectHandle, typename std::enable_if< IsSubjectHandleType< From >(), int >::type = 0>
auto SmartCast ( const From &  Src)
inline

Cast the entity within paradigm.

Subject handle reference to UObject version.

Supports solidity casting.

◆ SmartCast() [2/3]

template<EParadigm Paradigm, class To = UObject*, class From = UObject*, typename std::enable_if<!IsSubjectHandleType< typename more::flatten< From >::type >(), int >::type = 0>
auto SmartCast ( From  Src)
inline

Cast the entity within paradigm.

UObject/Interface version.

Supports solidity casting.

◆ SmartCast() [3/3]

template<class To , EParadigm Paradigm = EParadigm::Default, class From = UObject*>
auto SmartCast ( From  Src)
inline

Cast the entity within paradigm.

Argument reordering version.

Supports solidity casting.

◆ SmartCastChecked()

template<class To , class From , EParadigm Paradigm = EParadigm::Default>
TSmartCastImpl< Paradigm, From, To >::ToType SmartCastChecked ( From  Src)
inline

Cast the solidity state of an entity while checking the result within paradigm.

Argument reordering version.