UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TCFRef< CFRefType > Class Template Reference

#include <CFRef.h>

Public Member Functions

 TCFRef ()
 
 TCFRef (CFRefType InRef)
 
 TCFRef (const TCFRef &Other)
 
 TCFRef (TCFRef &&Other)
 
 ~TCFRef ()
 
TCFRefoperator= (const TCFRef &Other)
 
TCFRefoperator= (TCFRef &&Other)
 
CFRefTypeGetForAssignment ()
 
 operator bool () const
 
 operator CFRefType () const
 
template<typename T = CFRefType, typename = typename UE4CFRef_Private::TTollFreeBridgeType<T>::Type>
 operator typename UE4CFRef_Private::TTollFreeBridgeType< T >::Type () const
 

Constructor & Destructor Documentation

◆ TCFRef() [1/4]

template<class CFRefType >
TCFRef< CFRefType >::TCFRef ( )
inline

Default constructor (initialized to null).

◆ TCFRef() [2/4]

template<class CFRefType >
TCFRef< CFRefType >::TCFRef ( CFRefType  InRef)
inline

Take ownership of a Core Foundation Ref without increasing its reference count.

Parameters
InRefThe Ref to take ownership of.

◆ TCFRef() [3/4]

template<class CFRefType >
TCFRef< CFRefType >::TCFRef ( const TCFRef< CFRefType > &  Other)
inline

Copy constructor.

Parameters
OtherThe instance to copy.

◆ TCFRef() [4/4]

template<class CFRefType >
TCFRef< CFRefType >::TCFRef ( TCFRef< CFRefType > &&  Other)
inline

Move constructor.

Parameters
OtherThe instance to move.

◆ ~TCFRef()

template<class CFRefType >
TCFRef< CFRefType >::~TCFRef ( )
inline

Destructor.

Member Function Documentation

◆ GetForAssignment()

template<class CFRefType >
CFRefType * TCFRef< CFRefType >::GetForAssignment ( )
inline

Return a pointer to the Core Foundation Ref to allow it to be passed into a function that will reassign it.

Returns
A pointer to the Core Foundation Ref.

◆ operator bool()

template<class CFRefType >
TCFRef< CFRefType >::operator bool ( ) const
inlineexplicit

Check to see if the Ref is non-null.

Returns
True if the Ref is non-null.

◆ operator CFRefType()

template<class CFRefType >
TCFRef< CFRefType >::operator CFRefType ( ) const
inline

Core Foundation Type conversion operator.

Returns
The Core Foundation Ref.

◆ operator typename UE4CFRef_Private::TTollFreeBridgeType< T >::Type()

template<class CFRefType >
template<typename T = CFRefType, typename = typename UE4CFRef_Private::TTollFreeBridgeType<T>::Type>
TCFRef< CFRefType >::operator typename UE4CFRef_Private::TTollFreeBridgeType< T >::Type ( ) const
inline

Foundation Type conversion operator if toll-free bridging exists for the Core Foundation Type.

Returns
The Core Foundation Ref cast to its Foundation equivalent.

◆ operator=() [1/2]

template<class CFRefType >
TCFRef & TCFRef< CFRefType >::operator= ( const TCFRef< CFRefType > &  Other)
inline

Copy assignment operator.

Parameters
OtherThe instance to copy.

◆ operator=() [2/2]

template<class CFRefType >
TCFRef & TCFRef< CFRefType >::operator= ( TCFRef< CFRefType > &&  Other)
inline

Move assignment operator.

Parameters
OtherThe instance to move.

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