FContentBrowserVirtualPathTree

Tree of virtual paths ending where internal paths start.

Choose your operating system:

Windows

macOS

Linux

References

Module

ContentBrowserData

Header

/Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserVirtualPathTree.h

Include

#include "ContentBrowserVirtualPathTree.h"

Syntax

class FContentBrowserVirtualPathTree

Remarks

Tree of virtual paths ending where internal paths start. Used for conversion of paths and during enumerate.

Constructors

Functions

Name Description

Public function

bool

 

CachePath

(
    FName Path,
    FName InternalPath,
    TFunctionRef< void)> OnPathAd...
)

Adds the specified path to the tree, creating nodes as needed and calling OnPathAdded for any new paths added.

Public function Const

void

 

EnumerateAllPaths

(
    TFunctionRef< bool)> Callback
)

Enumerate all of the paths we know about

Public function Const

bool

 

EnumerateSubPaths

(
    FName BasePath,
    TFunctionRef< bool, FName)> C...,
    bool bRecurse
)

Recursively enumerates all child paths from the specified base path relative to this node

Public function Const

uint32

 

GetAllocatedSize()

Public function Const

bool

 

GetAllPaths

(
    TSet< FName >& OutPaths
)

Get all of the paths we know about

Public function Static

FStringView

 

GetMountPointFromPath

(
    const FStringView InPath,
    bool& bOutHadClassesPrefix
)

Returns name of the first folder in a path Removes starting forward slash and Classes_ prefix Example: "/Classes_A/Textures" returns "A" and sets bOutHadClassesPrefix=true

Public function Const

FName

 

GetParentPath

(
    FName Path
)

Returns name of parent virtual path when given a virtual path

Public function Const

bool

 

GetSubPaths

(
    FName BasePath,
    TSet< FName >& OutPaths,
    bool bRecurse
)

Recursively gathers all child paths from the specified base path relative to this node

Public function Const

const TMap< ...

 

GetVirtualToInternalMounts()

Returns reference to map that allows looking up an internal path when given a virtual path

Public function Const

int32

 

NumPaths()

Returns number of paths in total

Public function Const

bool

 

PathExists

(
    FName Path
)

Checks whether the given path is one that we know about

Public function Const

bool

 

PathExists

(
    FName Path,
    bool& bIsFullyVirtual
)

Checks whether the given path is one that we know about

Public function

bool

 

RemovePath

(
    FName Path,
    TFunctionRef< void)> OnPathRe...
)

Removes the specified path from the tree, calling OnPathRemoved for any existing paths removed.

Public function

void

 

Reset()

Clears all paths

Public function Const

EContentBrow...

 

TryConvertVirtualPathToInternal

(
    FStringView InPath,
    FStringBuilderBase& OutPath
)

Tries to converts virtual path into an internal path.

Public function Const

EContentBrow...

 

TryConvertVirtualPathToInternal

(
    FStringView InPath,
    FString& OutPath
)

Tries to converts virtual path into an internal path.

Public function Const

EContentBrow...

 

TryConvertVirtualPathToInternal

(
    FName InPath,
    FName& OutPath
)

Tries to converts virtual path into an internal path.