![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetStatsUtils.h>
Inheritance diagram for UE::Net::TSampleProducer< ConsumerType >:Public Member Functions | |
| void | SetConsumer (ConsumerType *InConsumer) |
Protected Member Functions | |
| void | OutputSample (double Value) |
| template<typename InnerConsumerType = ConsumerType, typename = typename TEnableIf<TModels_V<CPeekMeasurements, InnerConsumerType>>::Type> | |
| void | PeekMeasurement (double TimeVal, double Value) |
| template<typename InnerConsumerType = ConsumerType, typename = typename TEnableIf<!TModels_V<CPeekMeasurements, InnerConsumerType>>::Type, int32 UnusedParamForODR = 0> | |
| void | PeekMeasurement (double TimeVal, double Value) |
Inherited class for a sample producer, which outputs samples to a consumer of the specified class.
The consumer must implement: void AddSample(double Val)
If the consumer wants to peek at each individual measurement that makes up the sample (for e.g. determining Min/Max measurements), then the consumer must implement: void PeekMeasurement(double TimeVal, double Val)
| ConsumerType | The type which will be used for consuming samples. |
|
inlineprotected |
Called by subclasses to output a sample to the consumer.
| Value | The sample value being output |
|
inlineprotected |
Called by subclasses to let the consumer peek at individual measurements
| Value | The measurement value being collected for sampling |
|
inlineprotected |
|
inline |
Sets the consumer object to output samples to.
| InConsumer | The consumer object |