Navigation
API > API/Runtime > API/Runtime/CoreUObject
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)
| Name | FPackageIndex |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectResource.h |
| Include Path | #include "UObject/ObjectResource.h" |
Syntax
class FPackageIndex
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor, sets the value to null | UObject/ObjectResource.h | ||
FPackageIndex
(
int32 InIndex |
Internal constructor, sets the index directly | UObject/ObjectResource.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Index | int32 | Values greater than zero indicate that this is an index into the ExportMap. | UObject/ObjectResource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 ForDebugging() |
Return the raw value, for debugging purposes | UObject/ObjectResource.h | |
bool IsExport() |
Return true if this is an index into the export map | UObject/ObjectResource.h | |
bool IsImport() |
Return true if this is an index into the import map | UObject/ObjectResource.h | |
bool IsNull() |
Return true if this null (i.e. neither an import nor an export) | UObject/ObjectResource.h | |
int32 ToExport() |
Check that this is an export and return the index into the export map | UObject/ObjectResource.h | |
int32 ToImport() |
Check that this is an import and return the index into the import map | UObject/ObjectResource.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPackageIndex FromExport
(
int32 ExportIndex |
Create a FPackageIndex from an export index | UObject/ObjectResource.h | |
static FPackageIndex FromImport
(
int32 ImportIndex |
Create a FPackageIndex from an import index | UObject/ObjectResource.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FPackageIndex& Other |
Compare package indecies for inequality | UObject/ObjectResource.h | |
bool operator==
(
const FPackageIndex& Other |
Compare package indecies for equality | UObject/ObjectResource.h | |
bool operator>
(
const FPackageIndex& Other |
UObject/ObjectResource.h | ||
bool operator>=
(
const FPackageIndex& Other |
UObject/ObjectResource.h |