IceReportSkipper Class Reference

#include <ArmarXCore/core/util/IceReportSkipper.h>

Public Member Functions

bool checkFrequency (const Ice::Current &c, const std::optional< float > &frequency=std::nullopt)
 checks the frequency and returns true if the minimum required time for the frequency has passed. More...
 
bool checkFrequency (const std::string &operationName, const std::optional< float > &frequency=std::nullopt)
 
 IceReportSkipper (float maxFrequency)
 

Detailed Description

Definition at line 36 of file IceReportSkipper.h.

Constructor & Destructor Documentation

◆ IceReportSkipper()

IceReportSkipper ( float  maxFrequency)

Definition at line 32 of file IceReportSkipper.cpp.

Member Function Documentation

◆ checkFrequency() [1/2]

bool checkFrequency ( const Ice::Current &  c,
const std::optional< float > &  frequency = std::nullopt 
)

checks the frequency and returns true if the minimum required time for the frequency has passed.

Usage:

if(!skipper.checkFrequency())
{
// skip
return;
}
// do your calculations
Parameters
c
frequency
Returns

Definition at line 37 of file IceReportSkipper.cpp.

◆ checkFrequency() [2/2]

bool checkFrequency ( const std::string &  operationName,
const std::optional< float > &  frequency = std::nullopt 
)

Definition at line 42 of file IceReportSkipper.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: