FAssetDataTagMapSharedView

Wrapper of shared pointer to a map

Windows
MacOS
Linux

References

Module

AssetRegistry

Header

/Engine/Source/Runtime/AssetRegistry/Public/AssetDataTagMap.h

Include

#include "AssetDataTagMap.h"

Syntax

class FAssetDataTagMapSharedView

Remarks

Wrapper of shared pointer to a map

Constructors

Name Description

Public function

FAssetDataTagMapSharedView()

Default constructor - empty map

Public function

FAssetDataTagMapSharedView

(
    TSharedPtr< FAssetDataTagMap > InMa...
)

Constructor from an existing map pointer

Public function

FAssetDataTagMapSharedView

(
    FAssetDataTagMap&& InMap
)

Constructor from an existing map pointer

Functions

Name Description

Public function Const

FAssetDataTa...

 

begin()

Range for iterator access - DO NOT USE DIRECTLY

Public function Const

bool

 

Contains

Determine whether a key is present in the map

Public function Const

bool

 

ContainsKeyValue

(
    FName Tag,
    const FString& Value
)

Return true if this map contains a specific key value pair.

Public function Const

FAssetDataTa...

 

CreateConstIterator()

Iterate all key-value pairs

Public function Const

FAssetDataTa...

 

end()

Range for iterator access - DO NOT USE DIRECTLY

Public function Const

const FStrin...

 

FindChecked

Find a value by key (abort if not found)

Public function Const

FString

 

FindRef

Find a value by key (default value if not found)

Public function Const

FFindTagResu...

 

FindTag

(
    FName Tag
)

Find a value by key and return an option indicating if it was found, and if so, what the value is.

Public function Const

void

 

GenerateKeyArray

(
    TArray< FName, FAllocator >& OutKe...
)

Populate an array with all the map's keys

Public function Const

void

 

GenerateValueArray

(
    TArray< FName, FAllocator >& OutVa...
)

Populate an array with all the map's values

Public function Const

uint32

 

GetAllocatedSize()

Returns amount of extra memory used by this structure, including shared ptr overhead

Public function Const

int32

 

GetKeys

(
    TArray< FName, FAllocator >& OutKe...
)

Populate an array with all the map's keys

Public function Const

const FAsset...

 

GetMap()

Const access to the underlying map, mainly for taking a copy

Public function Const

int32

 

Num()

Retrieve size of map

Public function

void

 

Shrink()

Shrinks the contained map

Classes

Name

Description

Public struct

FFindTagResult

Deprecated Functions

Name Description

Public function Const

const FStrin...

 

Find

FAssetDataTagMapSharedView::Find is not compatible with USE_COMPACT_ASSET_REGISTRY, use FindTag instead.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback