UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ImportantLogScope.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Trace/Config.h"
6
7namespace UE {
8namespace Trace {
9namespace Private {
10
11#if TRACE_PRIVATE_MINIMAL_ENABLED && TRACE_PRIVATE_ALLOW_IMPORTANTS
12
14class FImportantLogScope
15{
16public:
17 template <typename EventType>
18 static FImportantLogScope Enter();
19 template <typename EventType>
20 static FImportantLogScope Enter(uint32 ArrayDataSize);
21 void operator += (const FImportantLogScope&) const;
22 const FImportantLogScope& operator << (bool) const { return *this; }
23 constexpr explicit operator bool () const { return true; }
24
25 template <typename FieldMeta, typename Type>
26 struct FFieldSet;
27
28private:
29 static FImportantLogScope EnterImpl(uint32 Uid, uint32 Size);
30 uint8* Ptr;
31 int32 BufferOffset;
33};
34
35#else
36
38{
39public:
40 template <typename EventType>
42 template <typename EventType>
44 void operator += (const FImportantLogScope&) const;
45 const FImportantLogScope& operator << (bool) const { return *this; }
46 constexpr explicit operator bool () const { return true; }
47
48 template <typename FieldMeta, typename Type>
49 struct FFieldSet;
50};
51
52#endif // TRACE_PRIVATE_MINIMAL_ENABLED && TRACE_PRIVATE_ALLOW_IMPORTANTS
53
54} // namespace Private
55} // namespace Trace
56} // namespace UE
57
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
uint32 Size
Definition VulkanMemory.cpp:4034
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition ImportantLogScope.h:38
const FImportantLogScope & operator<<(bool) const
Definition ImportantLogScope.h:45
static FImportantLogScope Enter(uint32 ArrayDataSize)
Definition ImportantLogScope.h:43
void operator+=(const FImportantLogScope &) const
static FImportantLogScope Enter()
Definition ImportantLogScope.h:41
@ Trace
Definition NetTraceConfig.h:23
Definition OverriddenPropertySet.cpp:45
Definition AdvancedWidgetsModule.cpp:13