Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
NoopCounter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
7/** Fake Thread safe counter, used to avoid cluttering code with ifdefs when counters are only used for debugging. */
9{
10public:
11
13 FNoopCounter( const FNoopCounter& Other ) { }
14 FNoopCounter( int32 Value ) { }
15
16 int32 Increment()
17 {
18 return 0;
19 }
20
21 int32 Add( int32 Amount )
22 {
23 return 0;
24 }
25
26 int32 Decrement()
27 {
28 return 0;
29 }
30
31 int32 Subtract( int32 Amount )
32 {
33 return 0;
34 }
35
36 int32 Set( int32 Value )
37 {
38 return 0;
39 }
40
41 int32 Reset()
42 {
43 return 0;
44 }
45
46 int32 GetValue() const
47 {
48 return 0;
49 }
50};
int32 Decrement()
Definition NoopCounter.h:26
int32 GetValue() const
Definition NoopCounter.h:46
FNoopCounter(int32 Value)
Definition NoopCounter.h:14
FNoopCounter(const FNoopCounter &Other)
Definition NoopCounter.h:13
int32 Subtract(int32 Amount)
Definition NoopCounter.h:31
int32 Add(int32 Amount)
Definition NoopCounter.h:21
int32 Set(int32 Value)
Definition NoopCounter.h:36
int32 Increment()
Definition NoopCounter.h:16
int32 Reset()
Definition NoopCounter.h:41