Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
Inheritance Hierarchy
- FSharedFromThisBase
- TSharedFromThis
- FPathPermissionList
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/NamePermissionList.h |
Include | #include "Misc/NamePermissionList.h" |
Syntax
class FPathPermissionList : public TSharedFromThis< FPathPermissionList >
Remarks
Set of paths that are allowd and/or denied for certain use cases. A permission list may contain
- Blanket denial
- Specifically denied paths
- Specifically allowed paths In decreasing order of priority. When performing prefix checks, if a a path matches a denied path, it cannot be allowed again by a more specific allowed path. If any paths are specifically allowed, paths which do NOT match something in the allow list are implicitly denied.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TDirectoryTree< FPermissionListOwners > | AllowTree | Compiled path tree produced from AllowList |
![]() |
bool | bSuppressOnFilterChanged | Temporarily prevent delegate from being triggered |
![]() |
FPermissionListOwners | DenyListAll | List of owner names that requested all items to be filtered out |
![]() |
TDirectoryTree< FPermissionListOwners > | DenyTree | Compiled path tree produced from DenyList |
![]() |
EPathPermissionListType | ListType | Type of paths this list represent |
![]() |
FSimpleMulticastDelegate | OnFilterChangedDelegate | Triggered when filter changes |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FPathPermissionList
(
EPathPermissionListType InType |
||
![]() |
FPathPermissionList
(
const FPathPermissionList& |
||
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | AddAllowListItem
(
const FName OwnerName, |
Add item to allowlist after which all items not in the allowlist will be filtered out. |
![]() |
bool | AddAllowListItem
(
const FName OwnerName, |
Add item to allowlist after which all items not in the allowlist will be filtered out. |
![]() |
bool | AddAllowListItem
(
const FName OwnerName, |
Add item to allowlist after which all items not in the allowlist will be filtered out. |
![]() |
bool | AddDenyListAll
(
const FName OwnerName |
Set to filter out all items. |
![]() |
bool | AddDenyListItem
(
const FName OwnerName, |
Add item to DenyList, this specific item will be filtered out. |
![]() |
bool | AddDenyListItem
(
const FName OwnerName, |
Add item to DenyList, this specific item will be filtered out. |
![]() |
bool | AddDenyListItem
(
const FName OwnerName, |
Add item to DenyList, this specific item will be filtered out. |
![]() |
bool | Append
(
const FPathPermissionList& Other |
Add the specified filters to this one. Rules are not applied, direct append lists. |
![]() ![]() |
FPathPermissionList | CombinePathFilters
(
const FPathPermissionList& OtherFilter |
Combine two filters. |
![]() ![]() |
bool | ContainsDenyListItem
(
FStringView Item |
Returns whether the given path has been denied explicitly with a call to AddDenyListItem. |
![]() ![]() |
const TMap< FString, FPermissionListOwners > & | GetAllowList () |
Get raw allowlist |
![]() ![]() |
TArray< FString > | Returns a copy of the paths explicity allowed in this list | |
![]() ![]() |
const TMap< FString, FPermissionListOwners > & | GetDenyList () |
Get raw DenyList |
![]() ![]() |
TArray< FString > | Get a copy of the paths explicity denied in this list. | |
![]() ![]() |
TArray< FName > | Gathers the names of all the owners in this DenyList. | |
![]() ![]() |
bool | Returns whether this list has any explicitly allowed paths, which will lead to it denying access to any paths not listed. | |
![]() ![]() |
bool | Returns whether this list has any explicitly denied paths. | |
![]() ![]() |
bool | HasFiltering () |
True if has filters active |
![]() ![]() |
bool | Are all items set to be filtered out | |
![]() |
FSimpleMulticastDelegate & | Triggered when filter changes | |
![]() ![]() |
bool | PassesFilter
(
const FStringView Item |
Returns true if passes filter restrictions using exact match |
![]() ![]() |
bool | PassesFilter
(
const FName Item |
Returns true if passes filter restrictions using exact match |
![]() ![]() |
bool | PassesFilter
(
const TCHAR* Item |
Returns true if passes filter restrictions using exact match |
![]() ![]() |
bool | PassesStartsWithFilter
(
const TCHAR* Item, |
Returns true if passes filter restrictions for path |
![]() ![]() |
bool | PassesStartsWithFilter
(
const FName Item, |
Returns true if passes filter restrictions for path |
![]() ![]() |
bool | PassesStartsWithFilter
(
const FStringView Item, |
Returns true if passes filter restrictions for path |
![]() ![]() |
EPathPermissionPrefixResult | PassesStartsWithFilterRecursive
(
const FStringView Item, |
Checks the given path against the restrictions and return whether it's possible for any child paths to succeed or fail as well. |
![]() |
bool | RemoveAllowListItem
(
const FName OwnerName, |
Remove item from the AllowList |
![]() |
bool | RemoveAllowListItem
(
const FName OwnerName, |
Remove item from the AllowList |
![]() |
bool | RemoveAllowListItem
(
const FName OwnerName, |
Remove item from the AllowList |
![]() |
bool | RemoveDenyListItem
(
const FName OwnerName, |
Remove item from the DenyList |
![]() |
bool | RemoveDenyListItem
(
const FName OwnerName, |
Remove item from the DenyList |
![]() |
bool | RemoveDenyListItem
(
const FName OwnerName, |
Remove item from the DenyList |
![]() |
FPermissionListOwners | Removes an item from the deny list and returns a list of all the owners of that item so that the item can be re-introduced. | |
![]() ![]() |
FString | ToString () |
Dumps the path permission list details into a multi-line string |
![]() |
bool | UnregisterOwner
(
const FName OwnerName |
Removes all filtering changes associated with a specific owner name. |
![]() |
bool | UnregisterOwners
(
const TArray< FName >& OwnerNames |
Removes all filtering changes associated with the specified list of owner names. |
![]() |
bool | UnregisterOwnersAndAppend
(
const TArray< FName >& OwnerNamesToRemove, |
Unregisters specified owners then adds specified filters in one operation (to avoid multiple filters changed events). |
![]() ![]() |
void | VerifyItemMatchesListType
(
const FStringView Item |
Checks if an item is of a valid format for this list |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FPathPermissionList & | operator=
(
FPathPermissionList&& |
|
![]() |
FPathPermissionList & | operator=
(
const FPathPermissionList& |