FPackageIndex

Wrapper for index into a ULnker's ImportMap or ExportMap.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectResource.h

Include

#include "UObject/ObjectResource.h"

Syntax

class FPackageIndex

Remarks

Wrapper for index into a ULnker's ImportMap or ExportMap. Values greater than zero indicate that this is an index into the ExportMap. The actual array index will be (FPackageIndex - 1).

Values less than zero indicate that this is an index into the ImportMap. The actual array index will be (-FPackageIndex - 1)

Constructors

Name Description

Public function

FPackageIndex()

Constructor, sets the value to null

Functions

Name Description

Public function Const

int32

 

ForDebugging()

Return the raw value, for debugging purposes

Public function Static

FPackageInde...

 

FromExport

(
    int32 ExportIndex
)

Create a FPackageIndex from an export index

Public function Static

FPackageInde...

 

FromImport

(
    int32 ImportIndex
)

Create a FPackageIndex from an import index

Public function Const

bool

 

IsExport()

Return true if this is an index into the export map

Public function Const

bool

 

IsImport()

Return true if this is an index into the import map

Public function Const

bool

 

IsNull()

Return true if this null (i.e. neither an import nor an export)

Public function Const

int32

 

ToExport()

Check that this is an export and return the index into the export map

Public function Const

int32

 

ToImport()

Check that this is an import and return the index into the import map

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FPackageIndex& Other
)

Compare package indecies for inequality

Public function Const

bool

 

operator<

(
    const FPackageIndex& Other
)

Compare package indecies

Public function Const

bool

 

operator<=

(
    const FPackageIndex& Other
)

Public function Const

bool

 

operator==

(
    const FPackageIndex& Other
)

Compare package indecies for equality

Public function Const

bool

 

operator>

(
    const FPackageIndex& Other
)

Public function Const

bool

 

operator>=

(
    const FPackageIndex& Other
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss