UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CrashReportUtil.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
8
12template <class FunctorType>
14{
15public:
22 virtual bool Visit(const TCHAR* FilenameOrDirectory, bool bIsDirectory) override
23 {
24 return Functor(FilenameOrDirectory, bIsDirectory);
25 }
26
31 : Functor(MoveTemp(FunctorInstance))
32 {
33 }
34
35private:
37 FunctorType Functor;
38};
39
45template <class Functor>
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FunctorDirectoryVisitor< Functor > MakeDirectoryVisitor(Functor &&FunctorInstance)
Definition CrashReportUtil.h:46
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition CrashReportUtil.h:14
virtual bool Visit(const TCHAR *FilenameOrDirectory, bool bIsDirectory) override
Definition CrashReportUtil.h:22
FunctorDirectoryVisitor(FunctorType &&FunctorInstance)
Definition CrashReportUtil.h:30
Definition GenericPlatformFile.h:576