FConstSharedStruct

[FConstSharedStruct](API\Plugins\StructUtils\FConstSharedStruct) is the same as the [FSharedStruct](API\Plugins\StructUtils\FSharedStruct) but restrict the API to return const struct type.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FConstSharedStruct

FSharedStruct

References

Module

StructUtils

Header

/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/SharedStruct.h

Include

#include "SharedStruct.h"

Syntax

USTRUCT()
struct FConstSharedStruct

Remarks

FConstSharedStruct is the same as the FSharedStruct but restrict the API to return const struct type.

See FSharedStruct for more information.

Variables

Name Description

Protected variable

TSharedPtr< con...

 

StructMemoryPtr

Constructors

Name Description

Public function

FConstSharedStruct()

Public function

FConstSharedStruct

(
    const FConstSharedStruct& InOther
)

Copy constructors

Public function

FConstSharedStruct

(
    FConstSharedStruct&& InOther
)

Functions

Name Description

Public function

void

 

AddStructReferencedObjects

(
    FReferenceCollector& Collector
)

Public function Const

const T &

 

Get()

Returns const reference to the struct, this getter assumes that all data is valid.

Public function Const

const uint8 ...

 

GetMemory()

Returns const pointer to struct memory.

Public function Const

const T *...

 

GetPtr()

Returns const pointer to the struct, or nullptr if cast is not valid.

Public function Const

const UScrip...

 

GetScriptStruct()

Returns struct type.

Public function Const

bool

 

Identical

(
    const FConstSharedStruct* Othe...,
    uint32 PortFlags
)

For StructOpsTypeTraits

Public function Const

bool

 

IsValid()

Returns True if the struct is valid.

Public function

void

 

Reset()

Reset to empty.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const OtherType& Other
)

Public function

FConstShared...

 

operator=

(
    const FConstSharedStruct& InOther
)

Assignment operators

Public function

FConstShared...

 

operator=

(
    FConstSharedStruct&& InOther
)

Public function Const

bool

 

operator==

(
    const OtherType& Other
)

Comparison operators.

it does not compare the internal structure itself