engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TScriptInterface< InterfaceType > 模板类 参考

Templated version of FScriptInterface, which provides accessors and operators for referencing the interface portion of a UObject that implements a native interface. 更多...

#include <ScriptInterface.h>

+ 类 TScriptInterface< InterfaceType > 继承关系图:

Public 成员函数

FORCEINLINE operator bool () const
 Boolean operator. 更多...
 
FORCEINLINE InterfaceType & operator* () const
 Dereference operator. 更多...
 
FORCEINLINE InterfaceType * operator-> () const
 Member access operator. 更多...
 
void operator= (TYPE_OF_NULLPTR)
 Assignment from nullptr
 
template<class UObjectType >
InterfaceType & operator= (UObjectType *SourceObject)
 Assignment operator. 更多...
 
FORCEINLINE bool operator== (const InterfaceType *Other) const
 Comparison operator, taking a pointer to InterfaceType
 
FORCEINLINE bool operator== (const TScriptInterface &Other) const
 Comparison operator, taking a reference to another TScriptInterface
 
 TScriptInterface ()
 Default constructor
 
 TScriptInterface (const TScriptInterface &Other)
 Copy constructor
 
 TScriptInterface (TYPE_OF_NULLPTR)
 Construction from nullptr
 
template<class UObjectType >
 TScriptInterface (UObjectType *SourceObject)
 Standard constructor. 更多...
 
- Public 成员函数 继承自 FScriptInterface
 FScriptInterface (UObject *InObjectPointer=NULL, void *InInterfacePointer=NULL)
 Default constructor
 
FORCEINLINE void * GetInterface () const
 Returns the pointer to the interface
 
FORCEINLINE UObject * GetObject () const
 Returns the ObjectPointer contained by this FScriptInterface
 
FORCEINLINE UObject *& GetObjectRef ()
 Returns the ObjectPointer contained by this FScriptInterface
 
FORCEINLINE bool operator== (const FScriptInterface &Other) const
 Comparison operator, taking a reference to another FScriptInterface
 
FORCEINLINE void SetInterface (void *InInterfacePointer)
 Sets the value of the InterfacePointer for this FScriptInterface
 
FORCEINLINE void SetObject (UObject *InObjectPointer)
 Sets the value of the ObjectPointer for this FScriptInterface
 

详细描述

template<class InterfaceType>
class TScriptInterface< InterfaceType >

Templated version of FScriptInterface, which provides accessors and operators for referencing the interface portion of a UObject that implements a native interface.

构造及析构函数说明

◆ TScriptInterface()

template<class InterfaceType >
template<class UObjectType >
TScriptInterface< InterfaceType >::TScriptInterface ( UObjectType *  SourceObject)
inline

Standard constructor.

参数
SourceObjecta pointer to a UObject that implements the InterfaceType native interface class.

成员函数说明

◆ operator bool()

template<class InterfaceType >
FORCEINLINE TScriptInterface< InterfaceType >::operator bool ( ) const
inlineexplicit

Boolean operator.

Provides transparent access to the interface pointer contained by this TScriptInterface.

返回
true if InterfacePointer is non-NULL.

◆ operator*()

template<class InterfaceType >
FORCEINLINE InterfaceType & TScriptInterface< InterfaceType >::operator* ( ) const
inline

Dereference operator.

Provides transparent access to the interface pointer contained by this TScriptInterface

返回
a reference (of type InterfaceType) to the object pointed to by InterfacePointer

◆ operator->()

template<class InterfaceType >
FORCEINLINE InterfaceType * TScriptInterface< InterfaceType >::operator-> ( ) const
inline

Member access operator.

Provides transparent access to the interface pointer contained by this TScriptInterface

◆ operator=()

template<class InterfaceType >
template<class UObjectType >
InterfaceType & TScriptInterface< InterfaceType >::operator= ( UObjectType *  SourceObject)
inline

Assignment operator.

参数
SourceObjecta pointer to a UObject that implements the InterfaceType native interface class.

该类的文档由以下文件生成: