UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::TOPtr< ObjectType > Class Template Reference

#include <ObserverPointer.h>

Public Member Functions

ULANG_FORCEINLINE TOPtr ()
 
ULANG_FORCEINLINE TOPtr (const TOPtr &Other)
 
template<class OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr (const TOPtr< OtherObjectType > &Other)
 
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr (const TSPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &SharedPtr)
 
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr (const TUPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &UniquePtr)
 
ULANG_FORCEINLINE TOPtroperator= (const TOPtr &Other)
 
template<class OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtroperator= (const TOPtr< OtherObjectType > &Other)
 
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtroperator= (const TSPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &SharedPtr)
 
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtroperator= (const TUPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &UniquePtr)
 
ULANG_FORCEINLINE operator ObjectType * () const
 
ULANG_FORCEINLINE ObjectType & operator* () const
 
ULANG_FORCEINLINE ObjectType * operator-> () const
 
ULANG_FORCEINLINE ObjectType * Get () const
 
ULANG_FORCEINLINE void Reset ()
 
ULANG_FORCEINLINE bool operator== (const TOPtr &Other) const
 
ULANG_FORCEINLINE bool operator!= (const TOPtr &Other) const
 
template<class OtherObjectType >
ULANG_FORCEINLINE bool operator== (const TOPtr< OtherObjectType > &Other) const
 
template<class OtherObjectType >
ULANG_FORCEINLINE bool operator!= (const TOPtr< OtherObjectType > &Other) const
 
ULANG_FORCEINLINE bool operator== (const ObjectType *Object) const
 
ULANG_FORCEINLINE bool operator!= (const ObjectType *Object) const
 
ULANG_FORCEINLINE bool IsValid () const
 
ULANG_FORCEINLINE bool IsStale () const
 
ULANG_FORCEINLINE bool IsNull () const
 
ULANG_FORCEINLINE bool IsSet () const
 
ULANG_FORCEINLINE operator bool () const
 
ULANG_FORCEINLINE bool operator! () const
 

Protected Attributes

ObjectType * _Object
 Direct pointer to actual object.
 

Friends

template<class OtherObjectType >
class TOPtr
 

Detailed Description

template<class ObjectType>
class uLang::TOPtr< ObjectType >

Non-checked version of TOPtr

Constructor & Destructor Documentation

◆ TOPtr() [1/5]

template<class ObjectType >
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::TOPtr ( )
inline

◆ TOPtr() [2/5]

template<class ObjectType >
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::TOPtr ( const TOPtr< ObjectType > &  Other)
inline

◆ TOPtr() [3/5]

template<class ObjectType >
template<class OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::TOPtr ( const TOPtr< OtherObjectType > &  Other)
inline

◆ TOPtr() [4/5]

template<class ObjectType >
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::TOPtr ( const TSPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &  SharedPtr)
inline

◆ TOPtr() [5/5]

template<class ObjectType >
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::TOPtr ( const TUPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &  UniquePtr)
inline

Member Function Documentation

◆ Get()

template<class ObjectType >
ULANG_FORCEINLINE ObjectType * uLang::TOPtr< ObjectType >::Get ( ) const
inline

◆ IsNull()

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::IsNull ( ) const
inline

◆ IsSet()

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::IsSet ( ) const
inline

◆ IsStale()

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::IsStale ( ) const
inline

◆ IsValid()

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::IsValid ( ) const
inline

◆ operator bool()

template<class ObjectType >
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::operator bool ( ) const
inline

◆ operator ObjectType *()

template<class ObjectType >
ULANG_FORCEINLINE uLang::TOPtr< ObjectType >::operator ObjectType * ( ) const
inline

◆ operator!()

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator! ( ) const
inline

◆ operator!=() [1/3]

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator!= ( const ObjectType *  Object) const
inline

◆ operator!=() [2/3]

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator!= ( const TOPtr< ObjectType > &  Other) const
inline

◆ operator!=() [3/3]

template<class ObjectType >
template<class OtherObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator!= ( const TOPtr< OtherObjectType > &  Other) const
inline

◆ operator*()

template<class ObjectType >
ULANG_FORCEINLINE ObjectType & uLang::TOPtr< ObjectType >::operator* ( ) const
inline

◆ operator->()

template<class ObjectType >
ULANG_FORCEINLINE ObjectType * uLang::TOPtr< ObjectType >::operator-> ( ) const
inline

◆ operator=() [1/4]

template<class ObjectType >
ULANG_FORCEINLINE TOPtr & uLang::TOPtr< ObjectType >::operator= ( const TOPtr< ObjectType > &  Other)
inline

◆ operator=() [2/4]

template<class ObjectType >
template<class OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr & uLang::TOPtr< ObjectType >::operator= ( const TOPtr< OtherObjectType > &  Other)
inline

◆ operator=() [3/4]

template<class ObjectType >
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr & uLang::TOPtr< ObjectType >::operator= ( const TSPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &  SharedPtr)
inline

◆ operator=() [4/4]

template<class ObjectType >
template<class OtherObjectType , bool OtherAllowNull, class AllocatorType , typename... AllocatorArgsType, typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
ULANG_FORCEINLINE TOPtr & uLang::TOPtr< ObjectType >::operator= ( const TUPtrG< OtherObjectType, OtherAllowNull, AllocatorType, AllocatorArgsType... > &  UniquePtr)
inline

◆ operator==() [1/3]

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator== ( const ObjectType *  Object) const
inline

◆ operator==() [2/3]

template<class ObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator== ( const TOPtr< ObjectType > &  Other) const
inline

◆ operator==() [3/3]

template<class ObjectType >
template<class OtherObjectType >
ULANG_FORCEINLINE bool uLang::TOPtr< ObjectType >::operator== ( const TOPtr< OtherObjectType > &  Other) const
inline

◆ Reset()

template<class ObjectType >
ULANG_FORCEINLINE void uLang::TOPtr< ObjectType >::Reset ( )
inline

Friends And Related Symbol Documentation

◆ TOPtr

template<class ObjectType >
template<class OtherObjectType >
friend class TOPtr
friend

Member Data Documentation

◆ _Object

template<class ObjectType >
ObjectType* uLang::TOPtr< ObjectType >::_Object
protected

Direct pointer to actual object.


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