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>
|
| 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. 更多...
|
| |
|
| 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 >
Standard constructor.
- 参数
-
| SourceObject | a pointer to a UObject that implements the InterfaceType native interface class. |
◆ operator bool()
template<class InterfaceType >
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.
- 参数
-
| SourceObject | a pointer to a UObject that implements the InterfaceType native interface class. |
该类的文档由以下文件生成: