FNoopCounter

Fake Thread safe counter, used to avoid cluttering code with ifdefs when counters are only used for debugging.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/NoopCounter.h

Include

#include "Misc/NoopCounter.h"

Syntax

class FNoopCounter

Remarks

Fake Thread safe counter, used to avoid cluttering code with ifdefs when counters are only used for debugging.

Constructors

Name Description

Public function

FNoopCounter()

Public function

FNoopCounter

(
    const FNoopCounter& Other
)

Public function

FNoopCounter

(
    int32 Value
)

Functions

Name Description

Public function

int32

 

Add

(
    int32 Amount
)

Public function

int32

 

Decrement()

Public function Const

int32

 

GetValue()

Public function

int32

 

Increment()

Public function

int32

 

Reset()

Public function

int32

 

Set

(
    int32 Value
)

Public function

int32

 

Subtract

(
    int32 Amount
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss